Fellow monks,

I was taken by surprise this week by a question asked this week in one of our email groups at Lockheed Martin by a perl savvy developer, and I couldn't understand why he would rule out Perl(Question posted below). Being that he wanted a daemon process updating an html page, I immediately figured Perl to be the best choice, but to my surprise there were people suggesting Flash for it. Now I'll agree Flash is great for movies and music, but for web programming also...I dunno. I replied that I would use Perl if I were him, but I couldn't find code on this site that would do what he wants. Also, talking with other people in my group, they said that he wanted it to be dynamic such that it doesn't have to refresh the page...can Perl be used if he wants a page to scroll without the page being refreshed? Or does he need to use a refresh call in the META tags to rerun a script every 30 seconds or a while(1) loop?

Question:

Does anyone know of a way to make vertically scrolling text on a web page that would be updated periodically from a file on the web server? I've seen plenty of scrollers out there but most of them are pretty static. Ideally I would like the update from the text file to just start appending the new text at the bottom of the previous scrolling message. This would make it appear to be "real-time", but in actuality would probably be updated every 30-60 seconds. The purpose is for a web based syslog monitor.

bW

Trying to solve the worlds problems with Perl!


In reply to Dynamic scroller by Willman023

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.