Sad, sad day.

Well, silver lining time: Lets add a new toy to replace the old JS one! Here is what I am thinking: PM-code already scans through a node looking for [ and ] and <code> tags and such. Why not start a library of user defined PM tags. These tags would call a predefined function that does something. (This is like a specialized Server side include, which is not the same as the client side JavaScript) This library would be under the direct control of either Vroom or a few high level monks. (Either another clan or just the saints or something.) Anyway, the idea being that when you come up with something cute you would like to have on your node you submit it to the maintainer of the library who then tells you the tag to use. (or not if the idea is rejected.) Other users can then incorporate these new ideas as they choose by using the same tags. And of course, a few data points will be made available to this library (visitor's name, level, and maybe XP for example)

So, an example:

sub SetRandomBGColor { my @colorset = qw( aqua white yellow lime ); my $color = $colorset[rand(@colorset)]; print "<style><!-- body { background-color:$color;} --></style>"; } # This could then be used to do something like: # # <PM SetRandomBGColor> #

In reply to RE: RE: On JavaScript, mt2k, and security risks by Adam
in thread On JavaScript, mt2k, and security risks by jcwren

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.