Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

performance enhament in combo re-loading

 
Gauravu Arorau
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

My page dropdown has around 3000 values. When i tried to reduce the number of values in page dropdown then it took around 25 seconds. Is there any optimize code to reduce that time?

My code snippet:

function show(x)
{
if(x==0)
{
document.jsp1.att_combo.options.length=3;
}

}
Initially, dropdown has 3000 values.
[ January 12, 2007: Message edited by: Gauravu Arorau ]
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65223
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There's no such thing as a "combo" on the web. I assume you mean a select element, sometimes called a dropdown.

That's far too many values to be inundating a user with in a dropdown. You should investigate other ways to present this to the user.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic