slow selectbox rendering

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Tole

    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.di splay = 'none' during the adding, and still it is slow.

    anybody had similar problems? is there any speedup trick?

    tole


  • Hywel Jenkins

    #2
    Re: slow selectbox rendering

    In article <bemch5$6raq3$1 @ID-132821.news.uni-berlin.de>,
    tole_carOBRISIO VAJDIO@yahoo.co m says...[color=blue]
    > 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.di splay = 'none' during the adding, and still it is slow.
    >
    > anybody had similar problems? is there any speedup trick?[/color]

    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


    Comment

    • Tole

      #3
      Re: slow selectbox rendering

      Hywel Jenkins wrote:[color=blue]
      > In article <bemch5$6raq3$1 @ID-132821.news.uni-berlin.de>,
      > tole_carOBRISIO VAJDIO@yahoo.co m says...[color=green]
      >>
      >> anybody had similar problems? is there any speedup trick?[/color]
      >
      > 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?[/color]

      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





      Comment

      Working...