NodeReaper has asked for the wisdom of the Perl Monks concerning the following question:

This node was taken out by the NodeReaper on Mar 27, 2010 at 03:08 UTC
  • Comment on Reaped: Populate Perl array into Javscript dropdown

Replies are listed 'Best First'.
Re: Populate Perl array into Javscript dropdown
by marto (Cardinal) on Mar 26, 2010 at 12:40 UTC

    A drop down with 5000 entries? Sounds like a terrible UI you've got there. Why not that the advice you where given perviously and use a framework like jQuery to make your life (and those of your users) easier?

    Update:

    Fixed typo s/frame work/framework/

Re: Populate Perl array into Javscript dropdown
by Anonymous Monk on Mar 26, 2010 at 12:29 UTC
    Please check the following Javascript code snippet..

    *ahem* perlmonks :D

    If you really have 5000 entries, and its too slow, you can 1)throw up a splash screen that says "please wait, loading 5000 entries" or 2) page your entries ala Data::Page or 3) generate raw html then update a single item