Home: Other Programming Languages: Javascript:
call a javascrpt inside perl script??



tsangwa
newbie

Jul 10, 2001, 8:31 AM


Views: 14861
call a javascrpt inside perl script??

Just wondering if there is a way to call a javascript without using the so-called "event-handlers", ie. I want to plainly call a javascript without the need to, say, click a button??

Thx.



Jasmine
Administrator

Jul 10, 2001, 10:11 AM


Views: 14854
Re: call a javascrpt inside perl script??

[Moved from the Perl Intermediate Forum to the Javacript Forum]



sleuth
Enthusiast

Jul 13, 2001, 11:44 AM


Views: 14845
Re: call a javascrpt inside perl script??

 
The only interaction perl provides for JavaScript is to plainly print it in html where it likes it best.

Though JavaScript and Perl go hand & hand in internet programming, most of the programs I write are operated and manipulated with the use of javascript.

So in perl, you must print your javascript and until the program is finished running and all the output has been sent will the javascript be able to run through the browser.

print qq~
<script>
alert("Some Javascript Stuff");
</script>
~;

Tony