Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Inserting javascript into perl script

by Louis_Wu (Chaplain)
on Nov 18, 2002 at 00:41 UTC ( [id://213631]=note: print w/replies, xml ) Need Help??


in reply to Inserting javascript into perl script

Are you asking how to use CGI to transmit a webpage which contains Javascript? If so, use CGI as you normally would for your page, and have the JS embedded in the HTML you send.

That seems too obvious, I must be missing something. Could you give some more details and some code you've tried?

  • Comment on Re: Inserting javascript into perl script

Replies are listed 'Best First'.
Re: Re: Inserting javascript into perl script
by wolverina (Beadle) on Nov 18, 2002 at 01:31 UTC
    It's not an html page, it's a .pl script, with html code near the end. Was just wondering if javascript needs print statements in front of it below the http header.. i'm assuming i don't need print statements if it's placed above the http header. -Lisa
      Your absoltely right. The client web browser will utilize ESP::ThoughtTransfer to connect to the web server, download the script, look through it, find all the javascript code and magically execute it.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (2)
As of 2025-07-15 02:58 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.