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: Beginner:
How do I add this java code to a cgi script?

 



daniel_2000_au
Deleted

Mar 10, 2000, 1:58 AM

Post #1 of 2 (699 views)
How do I add this java code to a cgi script? Can't Post

How do I add this java code to a cgi script?


<!--
function open () {return true;}
//-->


japhy
Enthusiast

Mar 10, 2000, 4:05 AM

Post #2 of 2 (699 views)
Re: How do I add this java code to a cgi script? [In reply to] Can't Post

Any content you want to print as HTML (whether it be HTML content, or JavaScript) gets printed normally, like an HTML document.

<BLOCKQUOTE><font size="1" face="Arial,Helvetica,sans serif">code:</font><HR>


#!/usr/bin/perl

print << "END OF CONTENT";
Content-type: text/html

<html>
<head>
<title>Embedded JavaScript</title>

<script language="javascript">
<!--

function openWin (url) {
window.open(url,'newwin')
}

// -->
</script>

</head>
...
</pre><HR></BLOCKQUOTE>

Yadda yadda.

 
 


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

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