View Full Version : how do i place java scripts in perl?
keith_20
02-17-2003, 06:57 AM
Any idea how do i place java scripts in perl????
Any website to refernce?? or any technique to be done?
Roy Sinclair
02-17-2003, 05:18 PM
Perhaps if you explained a little further what you intend to accomplish we can give a little better advice but for what I've done is something like this:
print <<"--end--";
<script type="text/javascript">
alert('This is a javascript alert embedded into the output web page');
</script>
--end--
keith_20
02-18-2003, 05:49 AM
May i know is the below coding a customised coding or is it the latest version of how the perl is implementing the html form format??
input(
{
-name => 'course_id',
-type => 'hidden',
-value => $course->pk_string,
},
) . $course->course_id
:
input(
{
-name => 'course_id',
-type => 'SELECT',
#loop for placing the value into the select box
-option value =>#the courses available.
-MULTIPLE SIZE => 5,
},
)
Roy Sinclair
02-18-2003, 03:35 PM
You're obviously using a module to generate html, you need to look at the module's documentation to understand how (or if) you can do what you want using it.
What I posted was using PERL to directly generate the output html, which is my preferred way of handling html.
keith_20
02-24-2003, 01:17 AM
Oh thanks brother. that means I need a documentation from the previous perl engineer before I can move on is it?
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.