[thelist] (FRAMES) Sending parameters to the QueryString of a child

Roger Ly rogerly at bareviking.com
Tue Jan 28 12:29:52 CST 2003


>Suppose I want to create a link to a frameset, (say, Default.html) and
>one of the child frames contains an ASP script (say, Child1.asp) to
>which I want to send parameters (say, foo=bar) via the QueryString.

If you want to pass the querystring passed to the frameset to its child
frames, you probably would have to do that with JavaScript.  I don't
know if there is any way to automatically propagate the querystring to
children frames.

<html>
<head>
<body>
<script type="text/javascript">
<!--
document.write('<frameset rows="50%,50%">\n');
document.write('<frame src="child.asp?'+querystring+'"/>\n');
document.write('<frame src="child2.asp"/>\n');
document.write('</fra'+'meset>');
//-->
</script>
</body>
</html>

(I broke up the </frameset> in the last line just to make sure NN 4.x
doesn't interpret it as a closing tag for <script> since NN 4.x is funky
like that...

Roger




More information about the thelist mailing list