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.


In reply to Re: Talk with Javascript by Fastolfe
in thread Talk with Javascript by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.