[thelist] vague document.body question...

Tom Dell'Aringa pixelmech at yahoo.com
Wed Mar 5 11:20:01 CST 2003


Hi all,

I've been forced to try and troubleshoot some JSP pages that are
blowing up. These pages use the Milonic DHTML menu, which is at:

http://www.milonic.co.uk/menu/

As you can imagine the source code for the menu is a mess (all run
together). Anyway, the error that is being thrown is:

_d.body has no properties (based on NN7 reporting)

This is merely his shorthand for document.body. I'm just wondering if
anyone can think of what might cause the document.body not to have
any properties..I know this is a long shot but I'm totally stuck, the
pages seem fine.

If you remove this menu from the pages there are simply no errors.

The block of code that is generating the error is:
-----------------
function
MScan(){sy=self.pageYOffset;sx=self.pageXOffset;if(opera){ww=window.innerWidth;wh=window.innerHeight}else
if(_d.all){sy=_d.body.scrollTop;sx=_d.body.scrollLeft;if(sy==0&&!ie4&&!mac)sy=_d.documentElement.scrollTop;if(_d.compatMode=="CSS1Compat"){ww=document.documentElement.clientWidth;wh=document.documentElement.clientHeight}else{ww=_d.body.clientWidth;wh=_d.body.clientHeight}}else{if(ns4){ww=self.innerWidth-16;wh=self.innerHeight-17}else{ww=_d.body.offsetWidth;if(!ww)ww=self.innerWidth-15;ww--;wh=self.innerHeight;}}if(opera&&(owh!=wh||oww!=ww)){if(MLoaded>1){location.reload()}MLoaded++;oww=ww;owh=wh;}if(sy!=osy)checs();if(!mac&&!opera&&MLoaded<2)sis();setpos();}
------------------
Lovely, I know. Not sure which property it can't find but I assume
the first one (scrollTop) since NN says 'has no properties'.

Any ideas on how I can troubleshoot this?

TIA

Tom

=====
>^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
http://www.pixelmech.com/
var me = tom.pixelmech.webDeveloper();

http://www.maccaws.com/
[Making A Commercial Case for Adopting Web Standards]

__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/



More information about the thelist mailing list