SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Enthusiast
    Join Date
    Jan 2010
    Posts
    89
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    JavaScript conflict, browser loads new page

    I'm stuck on a project that I've been working on for over 3 weeks.
    I've implemented a Jquery Map on my page, but when a node is clicked on the map the browser loads a new page.

    This is how the map should function:
    http://www.pcigeomatics.com/myInteractiveMap/

    Here is the broken map on my page:
    http://www.pcigeomatics.com/index.ph...d=48&Itemid=13

    I've tried deleting all other JS and also tried adding event.preventDefault(); but the browser still loads a new page when a node is clicked.

    I appreciate any help I can get.

    Thank you

  2. #2
    SitePoint Member
    Join Date
    Mar 2012
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi,

    I could see the below error. please resolve it...

    Code JavaScript:
    qmad is not defined

  3. #3
    SitePoint Enthusiast
    Join Date
    Jan 2010
    Posts
    89
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ok I've commented out the code with qmad, but still not working.

  4. #4
    SitePoint Guru
    Join Date
    Sep 2006
    Posts
    731
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    onPageUnload is not defined
    qmad is not defined


    ...ect=1;a.insertBefore(f,a.firstChild);a.hasrcorner=f;}var b=a.hasrcorner;if(b){if...

    quickmenu.js (line 4)
    qmad is not defined


    var a = qmad.qm0 = new Object();

    index....emid=13 (line 77)
    GetMap is not defined
    Find out why...
    Tab-indentation is a crime against humanity.

  5. #5
    SitePoint Enthusiast
    Join Date
    Jan 2010
    Posts
    89
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ok I've commented out every bit of JS except for the map, but it still not working

  6. #6
    SitePoint Member
    Join Date
    Mar 2012
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    still there is an error... please make sure there are no js errors...

    error: onPageLoad is not defined.


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
  •