In that perfect world where we all live together in perfect harmony, the sky is always blue, the grass is always green, and VB never came into being, yes, there is a JavaScript get() function.

In the really real world, though, such a thing would be considered a munition. Your browser could be commanded by a third-party to do whatever they choose, such as probe sites with IIS attacks, send files from your computer, or just cause general mayhem (i.e. DDOS).

There is no "get()" function, no.

With a little creativity, though, you can swap images in a clever way to simulate animation and/or server-side loads. Check your JavaScript reference on how to do this, because this is clearly not a Perl question at this point.

In reply to Re^3: Calling a perl function from within a javascript function by tadman
in thread Calling a perl function from within a javascript function by Baz

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.