Re: Could someone help me on CGI-PERL-JAVASCRIPT problem ?
[email protected] ("Larry Holcombe") Thu, 08 Jun 2006 07:41:02 -0600
| Newsgroups | perl.javascript |
|---|---|
| Message-ID | <[email protected]> |
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=20 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=20 > 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=20 > any of these column buttons.=20 > 3. Once any of the buttons is clicked, this same html page should be=20 > displayed back but with results sorted as per the chosen column = through=20 > 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=20 > 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=20 > 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=20 > button click response also should execute from the same cgi script if=20 > possible. This is because, I have lot of Perl Hash data structures to=20 > store the table data displayed on the html page. I need to use the = same=20 > data structures for sorting and displaying this data. > > If anyone has answers to these questions, please reply immediately. > Thanks in advance . > > Regards > Ramesh > =20 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].