Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Jun 2012
    Posts
    34
    Thanks
    0
    Thanked 0 Times in 0 Posts

    OFFICIALLY STUMPED: Identical code working on one page but not another.

    Hey all

    So I have to pages listed here that I have created:

    1. http://www.wrcc.dri.edu/monitor/WWDT/index.php

    AND

    2.http://www.wrcc.dri.edu/monitor/WWDT/archive.php

    The "Leave Feedback" link in the top left works on the CURRENT MAPS page but not the ARCHIVE MAPS page and I am officially stumped why... If anyone has any input please let me know. I didnt include my full code because it has some server side PHP and thus security reasons... but hopefully you can see what is going on by viewing the sources via FF or Chrome or Firebug...

    Thanks all!

  • #2
    New to the CF scene
    Join Date
    Jul 2012
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    This is what Chrome's console tells me when I click the one which doesn't work:
    Code:
    Uncaught ReferenceError: newPopup is not defined       archive.php:1
    (anonymous function)                                   archive.php:1
    It's not an answer, but a place to start.

  • #3
    New Coder
    Join Date
    Jun 2012
    Posts
    34
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks rannmann, I'll check into it, but how can I replicate what Chrome tells you?

  • #4
    New to the CF scene
    Join Date
    Jul 2012
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Ctrl+Shift+J opens the console. Alternatively you can right click anywhere on the page and select "Inspect Element". The console is the last tab in the developer frame.

    Once opened, just click the "Leave Feedback" button and you'll see the error.

    You can also see which variables are defined on the page by using:
    Code:
    for(var b in window) { 
      if(window.hasOwnProperty(b)) console.log(b); 
    }
    And you'll see that newPopup is missing from archive.php.
    Last edited by rannmann; 07-25-2012 at 12:06 AM.

  • #5
    New to the CF scene
    Join Date
    Jul 2012
    Posts
    5
    Thanks
    1
    Thanked 0 Times in 0 Posts
    I'll assume that you fixed it, because both links opening feedback works fine for me. I'm using FF 14.0.1


  •  

    Tags for this Thread

    Posting Permissions

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