Thank you for all your help. I got my scripts to work by using
-onChange=>'document.location..' and refreshing the page with a manually set query string. However, now, everytime the user selects a new pop-up menu, the page needs to be fetched afresh and more than the time to compute, it is the refresh time that makes the whole thing look really slow.
The only way I can see of speeding it up is by using Javascript as adviced in the previous posts. Trouble, though, is, my data structures are fairly complex and after looking at the documentations for Data::JavaScript and Data::JavaScript::LiteObject, I could not quite a figure out how I could transfer data and how I could be using them in JavaScript. In fact, I thought, Data::JavaScript::Anon was probably more suited to my needs. But the documentation isn't very explantory and I could not find any good tutorials or examples. I am new to Javascript as well; if any of the monks could help me by providing pointers to documentation, tutorials, examples or just advice, I would be extremely grateful.
Thanks,
Ashish
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.