Is getElementByTagName available for use in IE4? I need to make everything
compliant to that.
Dave
-----Original Message-----
From: Joe Fawcett [mailto:joefawcett@h...]
Sent: Tuesday, September 17, 2002 11:30 AM
To: javascript
Subject: [javascript] RE: Javascript Menu
If you only need select boxes and 'fstP' is set to document.all or
equivalent then try setting it to: 'document.getElementByTagName("select")'
initially. This will retrieve a
collection of select boxes. You can then dispense with the test: if
(fstP[y].tagName.toUpperCase() == "SELECT"). Hope this helps. Joe
>From: "Debreceni, David" <david_debreceni@r...>
>Reply-To: "javascript" <javascript@p...>
>To: "javascript" <javascript@p...>
>Subject: [javascript] RE: Javascript Menu
>Date: Tue, 17 Sep 2002 11:14:06 -0400
>
>Since I posted I have found the error, but still need help. The
>problem resides in the way we are trying to hide the select boxes. We
>use this function. It loops through everything, so obviously more
>data, more time needed. Any suggestions on how to improve this?
>
>for (y=0; y<fstP.length;y++) {
> if (fstP[y].tagName.toUpperCase() == "SELECT"){
>
> if (task == "hide")
>fstP[y].style.visibility="hidden";
> else
> fstP[y].style.visibility="visible";
>
> }
> }
>
>Dave
>
>-----Original Message-----
>From: Debreceni, David
>Sent: Tuesday, September 17, 2002 10:56 AM
>To: javascript
>Subject: [javascript] Javascript Menu
>
>
>Hello all,
> We have a JavaScript menu that was written in house here. All
>works fine until there is a lot of data returned in the browser. We
>have some quarterly reports that are shrunk to all fit on the page, now
>these are regular htm reports, using asp to generate them. But on
>these pages, we find that the on mouse over event seems to freeze. It
>takes almost 2 seconds for the menu to be displayed. Could this be
>because of having to move the div tag to the appropriate location? I
>am not sure how to fix this. Any suggestions would be helpful.
>Thanks.
>
>Dave
>
>
>
>---
>
>Improve your web design skills with these new books from Glasshaus.
>
>Usable Web Menus
>http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramm
>e
>r-20
>Constructing Accessible Web Sites
>http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
>r-20
>Practical JavaScript for the Usable Web
>http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
>r-20
>
>
>
>---
>
>Improve your web design skills with these new books from Glasshaus.
>
>Usable Web Menus
>http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramm
>e
>r-20
>Constructing Accessible Web Sites
>http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
>r-20
>Practical JavaScript for the Usable Web
>http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
>r-20
_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com
---
Improve your web design skills with these new books from Glasshaus.
Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20