473,508 Members | 2,295 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

slow selectbox rendering

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
2 3648
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
2613
by: Neil | last post by:
I previously posted re. this, but thought I'd try again with a summary of facts. I have an Access 2000 MDB with a SQL Server 7 back end. There is a view that is linked to the database via ODBC...
7
1956
by: Erwin Moller | last post by:
Hi, situation: I have a long list of options in multiple selectbox. The selectbox gets a scrollbar in that situation. Does anybody know if it is possible to scroll through the options with...
3
2652
by: Stefan Richter | last post by:
I would like to fill a Selectbox dynamically. I am taking all values from a db, and fill them into a selectbox. I guess the best way was to use some kind of a dynamical array, where you don't have...
3
2186
by: UJ | last post by:
I had somebody (who was an idiot) tell me that tables are slow in rendering? That you shouldn't do things like tables inside of tables. Is that true? I think she didn't know what she was...
4
1733
by: shankwheat | last post by:
I'm passing a string like 'Div3,Div4' to use as options in a selectbox but I need the text the user sees in the box different from the values. My code populates the values in the selectbox...
1
1954
by: giloosh | last post by:
i would like to dynamically output such a selectbox below using php and mysql: <select> <option< 100 </option> <option100 to 150 </option> <option150 to 200 </option> <option200 to 250...
4
6533
by: rubyhcurry | last post by:
Hello, I have a small application which acts like a wizard with 5 steps. I use a tab control, and 'back' and 'next' buttons to switch between the 5 tabs (1 tab page for each step). The...
3
22279
by: =?iso-8859-1?q?Jesper_R=F8nn-Jensen?= | last post by:
I'm working with a requirement to make a selectbox the same height as normal text input elements. (at least for IE7) But in IE the selectbox reacts strangely to the CSS rules. Normally, there...
0
7225
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7123
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7383
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7498
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5053
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3194
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1557
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
766
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
418
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.