hi charles

i also tried

print qq(
<script type="text/javascript">
document.open();
document.write('<p>What ever you want to write FROM THE SCRIPT<\/p>');
document.writeln('<p>What ever you want to write FROM THE SCRIPT<\/p>');
document.close();
</script>);

in perl script instead of the regular print images noted below

and still no work ...

the script called directly, either with perl *print* of document.write
works. called from an html invocation everything works except the output
back to the browser...

thank you for your suggestion.


<quote who="Charles K. Clarkson">
> Mario R. Sanchez, Ph.D. wrote:
>
> : i have the following  script pl.pl (yes, ugly but it works...)
>
> [ snipped ugly code :) ]
>
> : ###displays graphic numbers
> : print "Content-type:text/html\n\n";
> : print "<html><head><title>COUNTERING OF
> : JS.PL</title></head><body>\n"; print "ALO\n";
> : print qq(<img border="0" src="0.gif" width="36" height="40"><img
> : border="0" src="7.gif" width="36" height="40"><img border="0"
> : src="6.gif" width="36" height="40">);
> : print "</body></html>\n";
> : exit;
> : --------------------
> :
> : this script works as i want it to - the counter adds and the
> : graphics display. verify if you like at;
> : http://www.dbiq.com/cgi-bin/mi/pl.pl
> :
> : ok. so i want to  call it this way (no, i cant use inline
> : frame, or the <img> thing or ssi)
>
>     Sounds like you need a better host.
>
>
> : <html>
> : <head>
> : </head>
> : <body>
> : hi
> : <div><SCRIPT LANGUAGE="Javascript"
> : SRC="http://www.dbiq.com/cgi-bin/mi/pl.pl";></SCRIPT></div>
>
>     You are asking the browser to run the output from the pl.pl
> script as Javascript, but the output from pl.pl is not valid
> Javascript. If the pl.pl were to generate valid Javascript, your
> problem might be solved.
>
>     <script></script> tags are not supposed to be in <div></div>
> tags. They also should be in the header, not the body of your
> HTML. You might return a Javascript function from the pl.pl script
> and then call that function in the appropriate spot in the HTML
> body.
>
>     Start smaller. Accomplish importing a plain Javascript file
> into an HTML file first. Once you have mastered that, try
> rewriting pl.pl to output valid Javascript. The idea is to start
> small, check the results, make sure things are working fine then
> rinse and repeat.
>
>
> HTH,
>
> Charles K. Clarkson
> --
> Mobile Homes Specialist
> Free Market Advocate
> Web Programmer
>
> 254 968-8328
>
> Don't tread on my bandwidth. Trim your posts.
>
> _______________________________________________
> ActivePerl mailing list
> [email protected]
> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
>


-- 
Mario R. Sanchez, Ph.D.
High Performance Database Research Center
NASA Regional Application Center
Florida International University
11200 SW 8th ST
Mail Stop ECS 243c
Miami, FL 33199
U.S.A.

_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to