Hello,
The sortable libraries given at the following link are working when I load 
a simple html file containing a table display:
http://www.workingwith.me.uk/articles/scripting/standardista_table_sorting

But the same does not work when am using from a .cgi script. (Please look 
at below mail for my task description).
I suspect the addEvent() (given at the end of the file: 
standardista-table-sorting.js) function is not triggered and hence my html 
table is not getting the headers clickable.

Does someone have any solution for this?

Regards
Ramesh




Ramesh Kandula/Intl/Skyworks 
06/08/2006 07:05 PM

To
[email protected]
cc

Subject
Could someone help me on CGI-PERL-JAVASCRIPT problem ?





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

Reply via email to