Connecting Tech Pros Worldwide Forums | Help | Site Map

Object required error

Newbie
 
Join Date: Nov 2009
Posts: 4
#1: 3 Weeks Ago
Hi,

I am getting an object required error on IE6
Line: 1826
Char:3
Code:0

When I do view Source on my browser: here's what I see for line 1826:
Expand|Select|Wrap|Line Numbers
  1. function navBarGetMousePosition(e){
  2. /*************************************************************
  3. /    Function:    navBarGetMousePosition(e)
  4. /    Location Ran: CLIENT
  5. /    Type/Language : JavaScript
  6. /    Description: Return mouse position. 
  7. /    Inputs: e (object) mouse object
  8. /    Outputs: none
  9. /*************************************************************/    
  10.     if(isMinNS4){
  11.         mouseX=e.pageX;
  12.         mouseY=e.pageY;
  13.         }
  14.     if(isMinIE4){
  15.         mouseX=window.event.clientX+document.body.scrollLeft;
  16.         mouseY=window.event.clientY+document.body.scrollTop;
  17.         }
  18.     }
Line 1826: mouseX=window.event.clientX+document.body.scrollLe ft;

ANy help would be greatly appreciated! Thanks

GazMathias's Avatar
Expert
 
Join Date: Oct 2008
Location: Bristol, United Kingdom
Posts: 145
#2: 3 Weeks Ago

re: Object required error


Hi,

The space between Le & ft; would be a good place to start.
Also on the next line between To & p;

Gaz
Newbie
 
Join Date: Nov 2009
Posts: 4
#3: 3 Weeks Ago

re: Object required error


Thanks for your reply. I tried that but it didnt resolve the problem. Also, the error only comes up when the page is refreshed - the first time load of the page does not produce the error
Newbie
 
Join Date: Nov 2009
Posts: 4
#4: 2 Weeks Ago

re: Object required error


Please let me know if any further information is required to make this error a little more clear?
Frinavale's Avatar
Site Moderator
 
Join Date: Oct 2006
Location: The Great White North
Posts: 5,133
#5: 2 Weeks Ago

re: Object required error


I moved your question to the JavaScript forum since it is a JavaScript question.
You're more likely to get help on the problem here.
Newbie
 
Join Date: Nov 2009
Posts: 4
#6: 2 Weeks Ago

re: Object required error


Thank you! Hope to hear from someone soon :-)
Reply