Go Back   Technology Forums > Computer Forums > HTML and CSS

Share your knowledge and questions, related to HTML and CSS in this forum.


Internet Explorer - Slow Rendering of SELECT / OPTION tags


Reply
 
LinkBack Thread Tools Search this Thread
  #1 (permalink)  
Old 02-15-2007, 05:09 PM
Administrator
 
Join Date: Dec 2006
Posts: 304
shri has disabled reputation
Default Internet Explorer - Slow Rendering of SELECT / OPTION tags

Not sure if you folks have noticed this, but IE (tested with 6 and 7) is notoriously slow when you have an form with an option element or two, with few hundreds of choices.

Example: ( http://www.devlib.org/samples/select-form1.html )

Code:
<select name="countryFrom" style="font: 9px Verdana, Geneva, Arial, Helvetica, sans-serif; ">

<option value="0">Moving From</option>
<option value="1">Algeria</option>
<option value="2">Angola</option>
<option value="3">Argentina</option>
<option value="4">Australia</option>
<option value="5">Austria</option>
<option value="6">Bahamas</option>
<option value="7">Bahrain</option>
As you can see in the above form, a couple of hundred option elements exist within two select tags.

if the SELECT tag has an unstyled or unspecified width, IE in particular spends time calculating the width of each option element and then the width of each select drop down box. Add another delay if there are multiple select groups and they are within tables.

The solution is simple .. specify a width when you have large groups / selection choices.

Example: ( http://www.devlib.org/samples/select-form2.html )

Code:
<select name="countryFrom" style="font: 9px Verdana, Geneva, Arial, Helvetica, sans-serif; width:120px">
<option value="0">Moving From</option>
<option value="1">Algeria</option>
<option value="2">Angola</option>
<option value="3">Argentina</option>

<option value="4">Australia</option>
Reply With Quote
Reply





Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Slow Torrent Downloads? DVDGuy Hardware Forums 2 02-25-2007 08:41 PM
CSS Select Box / Border shri HTML and CSS 1 02-16-2007 12:50 AM
How to connect to a cable internet connection IRISHout'n'out Hardware Forums 2 06-07-2006 09:36 AM
Is Network bandwidth affected by Internet radio? alexwkobe Hardware Forums 1 10-11-2005 11:34 AM



Advanced Search

All times are GMT -6. The time now is 07:26 PM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.