Ramesh,
Take a look at http://www.kryogenix.org/code/browser/sorttable/. This is
a javascript only solution to your question. This saves calls to the
server and is very fast.
Larry
[EMAIL PROTECTED] wrote:
Hi,
I have following task:
1. An html page with a table of data displayed according to default
sorting based on a column data.
2. I should have a collection of html form buttons, one for each above
table columns, displayed on the top of this page. The user would click on
any of these column buttons.
3. Once any of the buttons is clicked, this same html page should be
displayed back but with results sorted as per the chosen column through
the button.
I have following questions in this regard:
Q1. I want to know how do I catch the button click response from the user
and then call a JavaScript handler using JavaScript.pm module functions?
Q2. If we use JavaScript.pm module within .cgi files, how do we convert
the Perl data structures into JavaScript?
Q3. Do we still need to install WDDX module or not?
Important. All the above would happen from an initial cgi script and the
button click response also should execute from the same cgi script if
possible. This is because, I have lot of Perl Hash data structures to
store the table data displayed on the html page. I need to use the same
data structures for sorting and displaying this data.
If anyone has answers to these questions, please reply immediately.
Thanks in advance .
Regards
Ramesh
This electronic message transmission contains information from Lewan &
Associates, which may be confidential or privileged. This information is intended
for the use of the individual or entity named above. If you are not the intended
recipient, be aware that any disclosure, copying, distribution, or use of the
contents of this information is prohibited. If you have received this electronic
transmission in error, please notify us immediately by telephone at 303-759-5440 or
by electronic mail at [EMAIL PROTECTED]