CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Advanced:
Can Perl work like JavaScript?

 



abelsgmx
Novice

Oct 9, 2002, 8:39 AM

Post #1 of 7 (3676 views)
Can Perl work like JavaScript? Can't Post

Can I execute a perl script like a JavaScript code (in the same HTML page)?, or can I call the cgi like a function, for execute code without do a post?

Thanks a lot!!!
Crazy


Melvosh
User

Oct 9, 2002, 8:53 AM

Post #2 of 7 (3666 views)
Re: [abelsgmx] Can Perl work like JavaScript? [In reply to] Can't Post

The only way I know of to do that is with [url="http://www.bignosebird.com/sdocs/execs.shtml"]Server Side Includes.
"...there's some good in this world, Mr. Frodo, and it's worth fighting for." - Samwise Gamgee, The Two Towers


abelsgmx
Novice

Oct 9, 2002, 11:57 AM

Post #3 of 7 (3660 views)
Re: [Melvosh] Can Perl work like JavaScript? [In reply to] Can't Post

thanks a lot for your help!!!
Smile


PerlKid
stranger

Oct 20, 2002, 10:10 AM

Post #4 of 7 (3629 views)
Re: [Melvosh] Can Perl work like JavaScript? [In reply to] Can't Post

You can use the <script> tag, but I believe the output from the script must done with JavaScript.
--Philip
FuzzyLogic at PerlMad dot com


thebitch
User

Oct 21, 2002, 1:01 PM

Post #5 of 7 (3623 views)
Re: [PerlKid] Can Perl work like JavaScript? [In reply to] Can't Post

ActiveState, the makers of ActivePerl, have created
PerlScript

Code
<HTML> 
<HEAD>
<TITLE>PerlScript Hello World!</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF">
<h2>PerlScript Hello world!</h2>
<SCRIPT LANGUAGE="PerlScript">
$window->document->write('Hello world!');
</SCRIPT>
</BODY>
</HTML>

I wouldn't even allow perlscript to run
(if i'm too paranoid to allow javascript, perlscript could be murder)


Cure
User

Nov 29, 2002, 8:46 AM

Post #6 of 7 (3601 views)
Re: [abelsgmx] Can Perl work like JavaScript? [In reply to] Can't Post

You need to use a template system.



Html::Mason is a great template system.



www.masonhq.com





Cure


abelsgmx
Novice

Dec 2, 2002, 7:31 AM

Post #7 of 7 (3589 views)
Re: [Cure] Can Perl work like JavaScript? [In reply to] Can't Post

ok, thanks a lot for you help!
Smile

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives