469,330 Members | 1,219 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,330 developers. It's quick & easy.

About Javascript in perl

129 100+
Hi friends,
I have one small doubt that we can write the html code in perl program as saying by content-type: text/html but when i write javascript code that is printing on the browser not as javascript functionality.

My main doubt is how can we write javascript code in perl program?
Mar 23 '09 #1
2 1513
4,059 Expert 2GB
javascript is just text that perl outputs to a browser, so you just wrap it in the correct http headers and html tags and it will work when loaded in a web browser. Its impossible to say what you might have done wrong without seeing what you have tried.
Mar 23 '09 #2
174 Expert 100+
Post the code that your trying to work with and as Kevin Said, Perl just dumps the output to the browser, JavaScript runs off the browser plugin. so javascript will be read from the browser and run at the client end.
Mar 24 '09 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

5 posts views Thread by Jim Simpson | last post: by
6 posts views Thread by Richard Trahan | last post: by
10 posts views Thread by Alex | last post: by
3 posts views Thread by Nathan Gilbert | last post: by
2 posts views Thread by pleaseexplaintome | last post: by
21 posts views Thread by TonyV | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by Purva khokhar | last post: by
reply views Thread by haryvincent176 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.