...

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



ajoros
07-24-2012, 11:23 PM
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!

rannmann
07-24-2012, 11:56 PM
This is what Chrome's console tells me when I click the one which doesn't work:

Uncaught ReferenceError: newPopup is not defined archive.php:1
(anonymous function) archive.php:1

It's not an answer, but a place to start.

ajoros
07-24-2012, 11:56 PM
Thanks rannmann, I'll check into it, but how can I replicate what Chrome tells you?

rannmann
07-25-2012, 12:01 AM
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:


for(var b in window) {
if(window.hasOwnProperty(b)) console.log(b);
}

And you'll see that newPopup is missing from archive.php.

jbjoker
07-26-2012, 12:39 AM
I'll assume that you fixed it, because both links opening feedback works fine for me. I'm using FF 14.0.1



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum