Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[JavaScript] Simple Question


  • From: javascript@xxxxxxxxxx (Andrew Gibson)
  • Subject: [JavaScript] Simple Question
  • Date: Fri, 27 Jul 2001 19:14:24 +1200

Whats this to do with ASP?

Most probably theName is not making it through.

pop in   alert (theName)  and see what happens


function KB_keepItInIE(theName,theWantTop,theWantLeft)
{
 theRealTop=parseInt(document.body.scrollTop)
 theTrueTop=theWantTop+theRealTop
 document.all[theName].style.top=theTrueTop
 theRealLeft=parseInt(document.body.scrollLeft)
 theTrueLeft=theWantLeft+theRealLeft
 document.all[theName].style.left=theTrueLeft
}

Above is my JavaScript code segment, 
sometimes IE told me document.all[''].style not an object,
sometimes it seems OK!
I got confused and can't find out the problem!!
 
And, where can I find JavaScript Programming Reference for IE?
Thanks for your kindly help!!

Best Regards,
Brad Kao