Re: No output in calling HTML ?
From: Steve (googlespam_at_nastysoft.com)
Date: 11/17/04
- Next message: Tony Marston: "Re: can I "dispose" of an array?"
- Previous message: leegold2: "can I "dispose" of an array?"
- In reply to: Pjotr Wedersteers: "No output in calling HTML ?"
- Next in thread: Pjotr Wedersteers: "Re: No output in calling HTML ?"
- Reply: Pjotr Wedersteers: "Re: No output in calling HTML ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 17 Nov 2004 03:12:11 -0800
Pjotr:
Using this style, you are asking your client (the browser) to execute
the script locally, rather than the server. This is unlikely to work.
If you want the script to execute on the server and insert output into
an HTML document, one method would be:
myscript.php:
<?php
// send some javascript...
print "document.write( 'hello!' );";
?>
mypage.html:
<html>
<head>
<title>Just a page</title>
</head>
<body>
<script language="javascript"
src="http://www.anotherserver.com/myscript.php"></script>
</body>
</html>
--- Steve
- Next message: Tony Marston: "Re: can I "dispose" of an array?"
- Previous message: leegold2: "can I "dispose" of an array?"
- In reply to: Pjotr Wedersteers: "No output in calling HTML ?"
- Next in thread: Pjotr Wedersteers: "Re: No output in calling HTML ?"
- Reply: Pjotr Wedersteers: "Re: No output in calling HTML ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|