Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: SV: RE: Javascript Menu


Message #1 by "Robert Nyman" <robert.nyman@c...> on Tue, 17 Sep 2002 18:51:56 +0200
Okay not sure if this is the best way, but I wait until the window finishes
loading and then a preload a new array with the elements that are select
tags.  This has sped up the menus considerably, I no longer have to wait,
however it is still noticeably slow.  Not as bad as it was though.  Thanks
for the help.

Dave

-----Original Message-----
From: Debreceni, David 
Sent: Tuesday, September 17, 2002 12:57 PM
To: javascript
Subject: [javascript] RE: SV: RE: Javascript Menu


Okay I have used that, it seems to be slightly faster than before, but there
is still a good second of hesitation.  Is there any other way to hide the
select box, or even make the div show over top of it?

Dave

-----Original Message-----
From: Robert Nyman [mailto:robert.nyman@c...] 
Sent: Tuesday, September 17, 2002 12:52 PM
To: javascript
Subject: [javascript] SV: RE: Javascript Menu


No, sorry.
But use document.all.tags("select") in IE 4 and
document.getElementsByTagName("select") in IE 5 and up...


/Robert


-----Ursprungligt meddelande-----
Från: Debreceni, David [mailto:david_debreceni@r...] 
Skickat: den 17 september 2002 18:47
Till: javascript
Ämne: [javascript] RE: Javascript Menu


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/theprogramm
e
>r-20
>Practical JavaScript for the Usable Web
>http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramm
e
>r-20
>---
>Change your mail options at http://p2p.wrox.com/manager.asp or to
>unsubscribe send a blank email to 
>
>
>
>---
>
>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/theprogramm
e
>r-20
>Practical JavaScript for the Usable Web
>http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramm
e
>r-20
>---
>Change your mail options at http://p2p.wrox.com/manager.asp or to
>unsubscribe send a blank email to 




_________________________________________________________________
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



---

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



---

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



---

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


  Return to Index