aspose file tools*
The moose likes JSP and the fly likes performance enhament in combo re-loading Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "performance enhament in combo re-loading" Watch "performance enhament in combo re-loading" New topic
Author

performance enhament in combo re-loading

Gauravu Arorau
Greenhorn

Joined: Jan 10, 2007
Posts: 3
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

Joined: Jan 10, 2002
Posts: 60077
    
  65

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
Consider Paul's rocket mass heater.
 
subject: performance enhament in combo re-loading
 
Similar Threads
Getting a dropdwon value from a jsp page
implementing dynamism dropdown box
Handling Browser Back Button & Multiple Tabs
dropdown selection in Struts2
Using JSTL variables in a Javascript?