Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: cgi form and javascript

by monarch (Priest)
on Jun 09, 2005 at 14:30 UTC ( [id://465145]=note: print w/replies, xml ) Need Help??


in reply to cgi form and javascript

Can I suggest that you put the closing angle bracket on the script tag? ie. change:
<script="javascript" src="demo.js"</script>
to
<script="javascript" src="demo.js"></script>

Personally I would change that entire line to read:

<script type=\"text/javascript\" src=\"demo.js\"></script>
Why, you ask? Well a tag name (such as script) should have a space before the first argument (type=\"text/javascript\"). Also the quote marks should be escaped within a Perl string as mentioned above.

update: reformatted mis-escaped <code> tag.

update: accidently pressed the update button twice.

Replies are listed 'Best First'.
Re^2: cgi form and javascript
by omega_monk (Scribe) on Jun 09, 2005 at 14:52 UTC
    Nice catch, I completely missed that one. Especially after the cutting, and pasting. ;)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://465145]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (2)
As of 2025-05-18 07:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.