we*******@imca-int.com wrote:
I am using two scripts (menus from milonic.com and a rotating news
script we have used successfully for many years) on our website
(www.imca-int.com) that independently work fine but together lead to
the following error:
Line: 20
Error: 'pageX' is null or not an object
While I can use scripts, I'm not tech-savvy enough to troubleshoot
them - can anyone assist?
Some strange stuff going on there. In the file mmenudom.js there's a
function called gMY which takes an object e as a parameter. Firstly,
it's being called with no parameter, so whatever it tries to do on the
object e is going to fail unless defensive coding first checks if e
exists (which it doesn't). The statement that's failing is doing
X_=e.pageX; which fails because e doesn't exist. Secondly, that
particular line of code should only be run if(ns6), which I assume means
if netscape6. That line was executing on my IE7. To stop the JS error I
could tell you to check if e exists, but there's more wrong than that.
Firstly, what's with the ns6 check, secondly, why is gMY being called
without an e object. I'm assuming it's meant to be an event that should
be passed.