|
#1
|
|||
|
|||
|
I have sharepoint portal page that has a web part page. The page has a code
to find window.document.body.offsetHeight It returns valid value the first time. When i go to a different page and come back to this page the above code returns 0 instead of the actual offsetHeight. Why is it not returning the correct value. When i debug i get the following properties for the body of the document ?window.document.body {...} className: "" id: "" tagName: "BODY" parentElement: {...} style: {...} onhelp: null onclick: null ondblclick: null onkeydown: null onkeyup: null onkeypress: null onmouseout: null onmouseover: null onmousemove: null onmousedown: null onmouseup: null document: {...} title: "" language: "javascript" onselectstart: null sourceIndex: 0x5 recordNumber: null lang: "" offsetLeft: 0x0 offsetTop: 0x0 offsetWidth: 0x0 offsetHeight: 0x0 offsetParent: null .... Any ideas? |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| The Find Command returns nothing | Sam Bryan | Outlook Express | 7 | 01-05-2006 04:41 PM |
| One-way connection: networked XP/2000 PC's | Cheryl | Windows XP Network Web | 22 | 01-05-2006 04:11 AM |
| mouse freezes after computer returns from standby | lewisglenn | Windows XP General | 1 | 01-05-2006 02:31 AM |