Thank you so much for taking the time to reply. "You say you use the CGI module. Read the documentation of its header( +) method." I just went though it and I understand you can use these predefinted f +unctions to generate the header and footer info. Should I assume tha +t is a much more preferrable way to do it rather than, "print "<html> +<head></head><body>blah, blah...."; ? "The usage instructions for most Perl modules are embedded into the mo +dule, use http://search.cpan.org/ or the perldoc utility to read them +. " The problem is that since I'm just a newbie, I have a hard time unders +tanding what I'm reading. For example, I tried to read about the Jav +aScript::DataFormValidator but didn't really understand how to use it + in my program. "Placing huge loads of javascript into a variable in a module may seem + tempting, but consider placing the javascript into an external javas +cript file, and have the web server deliver it directly. Delivering c +ontent from a CGI script is SLOOOOOOOOOOOOOW. " I actually had an external JavaScript file I was using, but my main is +sue is that I'm unable to utilize it within my Perl file. When I hit + the submit button, my Javascript validation is not working (nothing +happens - should be an alert). What exactly do you mean by "Deliveri +ng content from a CGI script..." Thanks again for the help!

In reply to Re^4: Perl - calling javascript funciton by ax1lla
in thread Perl - calling javascript funciton by ax1lla

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.