SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Member
    Join Date
    Jan 2005
    Location
    Russia
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Please. Very need help.

    Hello! First of all. My english is not so good, so please sorry for my
    broken english.

    I have a problem (very important for me) and searching for help. Im using mapserver to
    generate city maps. http://sitn.ne.ch/index.html have good javascripts
    for manipulating maps. It uses:
    x_core_nn4.js
    x_dom_nn4.js
    x_event_nn4.js
    x_sitn.js
    x_graphTools.js
    x_navTools.js

    Those scripts was downloaded and integrated to
    my php application. And its worked good BUT...if found there a great
    bug. For test purposes i compiled static DHTML application. You can
    see example of my application at the http://www.intera.ws/maps/test.html or
    you can download application archive from
    http://www.intera.ws/maps/test.zip .

    Guys, im not so good with JavaScript, but i will try to explain bug.

    There is file called x_navTools.js . There is function
    "dBox_mouseup(evt)" at the line 195 in this file. Looks like this
    function handle all MOUSE UP events. Ok now you should do some steps
    to understand/find bug:

    1) If you downloaded test.zip, then open 'js/x_navTools.js' file,
    then add 'alert();' inside this function ("dBox_mouseup(evt)" at
    line 195) .f.e

    function dBox_mouseup(evt) {
    alert();
    ...

    OR YOU CAN USE http://www.intera.ws/maps/test.html it is already have
    this.

    2) point your browser to the test.html (you may use http://www.intera.ws/maps/test.html)

    3) As you see ZOOM IN TOOL selected by the default. Click on the map
    with your LEFT button - ALERT box will appear. Close alert box (hit
    ok)

    4) Select any other tool, for example ZOOM OUT and then SELECT ZOOM IN
    tool again.

    5) Click again on the map. As you see now 2 ALERT boxes appear
    (instead 1). !!
    If you will again select ZOOM OUT (or any other tool) and
    then return/select ZOOM IN tool and then will click on the map then
    FOUR alert boxes will appear. Then 6, 8, 10 etc...
    I do not unserstand why it is happens but looks like javascript RECURSE itself
    and this is great bug.

    And f.e if i will put myform.submit() instead alert() them javasccript
    will submit 2,4,6 or 8 times!!

    Please, Help me to fix this bug....

  2. #2
    SitePoint Aficionado JVLB's Avatar
    Join Date
    Jan 2002
    Location
    N 44 56.537' W 123 3.683'
    Posts
    1,127
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm afraid, for me with Mozilla 1.7.5 on Win XP, no alert box appeared. With the pointer, which appeared as a crosshairs, over the map a left click initiated a click-and-drag box drawn over the map.

  3. #3
    SitePoint Member
    Join Date
    Jan 2005
    Location
    Russia
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hello again. Im very sorry for the alert box. I fixed this, so ALERT should appear now in the MOZILLA browsers. BUT! !!. I found that this bug only appear in the INTERNET EXPLORER. The script work fine with MOZILLA and OPERA browsers. I think that problem may be at the x_event_nn4.js . Or maybe I do something wrong with x_event_nn4.js ? Please help me...

  4. #4
    SitePoint Member
    Join Date
    Jan 2005
    Location
    Russia
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Problem was fixed by my friend...Thanx to all...

  5. #5
    I'll take mine raw silver trophy MikeFoster's Avatar
    Join Date
    Dec 2002
    Location
    Alabama, USA
    Posts
    2,560
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi igor82, sorry I didn't get a chance to look into it, but I'm glad you resolved the problem.

    A suggestion: I doubt that application would work in NN4, so you'd be better off using the latest version of the X library. I haven't been (and probably won't be) updating those nn4 files.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •