By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,809 Members | 1,999 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,809 IT Pros & Developers. It's quick & easy.

About Javascript in perl

P: 129
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
Share this Question
Share on Google+
2 Replies

Expert 2.5K+
P: 4,059
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

Expert 100+
P: 174
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.