[Javascript]Passive,Javascript-callable,in-line(PHP)codereferences wit

Hassan Schroeder hassan at webtuitive.com
Sat Apr 12 15:04:21 CDT 2003


David Lovering wrote:
> Paul, et al:
> 
> Well, we're almost there.
> 
> I discovered that the older Netscapes (4.75-6.0) actually would take the
> following constructs:

? Netscape 4 doesn't support <IFRAME> at all, and I don't have
a copy of Netscape 6 any longer, but this simplified version of
your example works fine in Moz 1.3b/Win as well as IE 5.5. Does
not seem to work at all in Opera, not much surprise there, but
I didn't spend much time on it, either.

<html>
<head>
<title>bogus_91.html</title>
<script type="text/javascript">
var theSrc;
function invoke(theSrc)
{
	frames["program"].location.href = theSrc;
}
</script>
<style type="text/css">
#program {
	display: none;
	}
</style>
</head>
<body>
<form name="theForm" action="javascript:void(null)">
	<input type="button" id="myButton1" name="myButton1"
		onClick="invoke('/tmp/bogus.jsp');"  value="howdy">
	<input name="myText" value="" type="text" size="30">
		<br />
	<iframe id="program" name="program" src=""></iframe>
</form>
</body>
</html>

Very slick way to fetch data from the server without a page reload!

-- 
Hassan Schroeder ----------------------------- hassan at webtuitive.com
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com

                           dream.  code.





More information about the Javascript mailing list