By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,382 Members | 1,623 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,382 IT Pros & Developers. It's quick & easy.

slow selectbox rendering

P: n/a
hi all,
i've got a selcetbox (multiple) which is filled by javascript. only problem
is that i have aprox 1000 options to add to that select, and that adding
lasts for 5-6 seconds. Even select.length = 0 (on filled element) lasts for
few seconds.

ok. i have large amount of data to preload, and i also do some operations on
that data, but it's all very fast.
so i thought it must be some IE rendering issue, and i tried to set
select.style.display = 'none' during the adding, and still it is slow.

anybody had similar problems? is there any speedup trick?

tole
Jul 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
In article <be************@ID-132821.news.uni-berlin.de>,
to*******************@yahoo.com says...
hi all,
i've got a selcetbox (multiple) which is filled by javascript. only problem
is that i have aprox 1000 options to add to that select, and that adding
lasts for 5-6 seconds. Even select.length = 0 (on filled element) lasts for
few seconds.

ok. i have large amount of data to preload, and i also do some operations on
that data, but it's all very fast.
so i thought it must be some IE rendering issue, and i tried to set
select.style.display = 'none' during the adding, and still it is slow.

anybody had similar problems? is there any speedup trick?


I reckon you just need to find another way of doing this. 1000 options
in a select is far too many - imagine havong to go through them to find
what you're after. Then imagine having to download the thing.

What does the select do?

--
Hywel Never knowingly understood
http://hyweljenkins.co.uk/
http://hyweljenkins.co.uk/mfaq.php
Jul 20 '05 #2

P: n/a
Hywel Jenkins wrote:
In article <be************@ID-132821.news.uni-berlin.de>,
to*******************@yahoo.com says...

anybody had similar problems? is there any speedup trick?


I reckon you just need to find another way of doing this. 1000
options in a select is far too many - imagine havong to go through
them to find what you're after. Then imagine having to download the
thing.

What does the select do?


Actualy i have 8 selectbox pairs on that page (selectbox pair -> on click
user moves option from left select to right select) and they all have
connection between (if you select something on first it changes content of
the others selectbox pairs)

The one with 1000 elements is last one, and it shows 1000 elements only if
in all other selectboxes all options are selected.
So mainly users will not see all of them, but in some cases they will have
to.
Also, problem is that default is (onload) all selected.

It's quit interseting matter, and i had lot of fun developing it, but at
last i found that that option adding is the slowest part, and i dont know
how to solve it.

i have posible solution to render all options in html, but then i will have
duplicate data loading (same data for js, and same for html), and i'll need
also to catch options references off all options, and that seems like no
good solution.
tole

Jul 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.