in reply to Talk with Javascript

For some non-Javascript alternatives, you can try looking into XML and XSL in conjunction with Internet Explorer 5 or some ActiveX or Java applets. XML and XSL were made to do stuff like this. You would basically send your data in XML form to the browser/applet and use XSLT or equivalent to format the data how the user wants it to appear. This would include sorting. IE5 is capable of doing all of this natively, and this type of functionality is pretty simple to code, and, indeed, is generally "textbook" XSLT, so you shouldn't want for examples.

I don't know how much this helps you, since you seem to be wanting to do this in Perl somehow (or else you wouldn't be here), but I wanted to throw the alternative out there.

Replies are listed 'Best First'.
RE (tilly) 2: Talk with Javascript
by tilly (Archbishop) on Sep 06, 2000 at 22:24 UTC
    Have you ever tried to have XSL put out JavaScript? It puts a lot of work into validating that you are putting out valid XML which just happens to be a problem if you really want to pump out a little JavaScript as well...

    Not to mention that IE (note Netscape does not support it) has a number of bugs involving XML manipulations. Joy.

      You don't necessarily have to spit out the entire page in XML, just the data that you want rendered. Use an <object> tag or something to embed the data in your document, or use an ActiveX control or Java applet to do the XML rendering, and have it request the data in XML form on its own.

      Anyways, I was just offering that as a possible alternative for anyone else that's looking at doing something similar. It may not be useful in this case but it might be for other potentials.