Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Zimlets

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-22-2010, 03:48 PM
Starter Member
 
Posts: 1
Default DwtSelect with many options is very slow

I use a DwtSelect that contains roughly 60 DwtSelectOptions (user is selecting their age). There is a very distinct delay (a few seconds) before the popup for the options will appear.

It seems to be equally slow on both Firefox and IE (7).

Is this a characteristic of DwtSelectOption, or am I doing something wrong/inefficient??

Code fragment below:

Code:
var options = [];
var firstYear = (new Date()).getFullYear()-12;
if (select_one) {
	options[options.length] = new DwtSelectOption("", true, "Select one");
}
for (var i=60; i > 0; i--) {
      options[options.length] = new DwtSelectOption(firstYear + "", false, firstYear + "");
	firstYear = firstYear -1 ;
}
options[options.length] = new DwtSelectOption(firstYear + "", false, firstYear + " or before");
return new DwtSelect({parent:parent.getShell(), options:options});
Reply With Quote
  #2 (permalink)  
Old 01-07-2011, 07:21 AM
Senior Member
 
Posts: 53
Default

Hi , i am also trying to have a DwtSelect where at moment there is "notes" field in contact panel.
Could you tell me how to go about it ? thanks a lot
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.