Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

calling javascript file

Status
Not open for further replies.

gregaug

Programmer
Sep 9, 2005
61
US
hello,

How do I call a javascript file from perl? The file is purely javascript (.js), so it has syntax problems when read as a perl file. The perl file is in the same folder as the javascript file (called script01.js). Thanks for any help.
 
you probably shouldn't be calling a javascript file from a perl script, you should be calling the javascript file from the html document it's associated with. Why do you need to call a javascript from a perl script? Do you just want to print the javascript into some html output?
 
The javascript has a calendar function that I want to use to populate a date field. There is no html file associated with the javascript, only a perl file is used to generate html.
 
there are also many date functions/modules written in perl you could probably use instead of the javascript file.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top