PDA

View Full Version : choose content for iframe


forestguy57
10-19-2006, 11:52 AM
Hello all,

I have a page with an iframe in which I wish to change content based upon users selection. I've tried to use a form shown below but unsuccessful. I'd appreciate any suggestions on ways to implement the changing of content in an iframe.

Thanks,

Randy

<form name="list" action="" method="get" target="repIframe" style="margin:0px;padding:0px">
<select name="zone">
<option value="./testadvisory.php?warnzone=UTZ019&warncounty=UTC053">St. George</option>
<option value="./testadvisory.php?warnzone=UTZ013&warncounty=UTC043">Cedar City</option>
</select>
</form>

This is iframe name="repIframe"<br>
<iframe name="repIframe" src="blank.html"></iframe>
</body>
</html>[/SIZE]

Lallo
10-19-2006, 12:30 PM
Hello all,

I have a page with an iframe in which I wish to change content based upon users selection. I've tried to use a form shown below but unsuccessful. I'd appreciate any suggestions on ways to implement the changing of content in an iframe.

Thanks,

Randy

<form name="list" action="" method="get" target="repIframe" style="margin:0px;padding:0px">
<select name="zone">
<option value="./testadvisory.php?warnzone=UTZ019&warncounty=UTC053">St. George</option>
<option value="./testadvisory.php?warnzone=UTZ013&warncounty=UTC043">Cedar City</option>
</select>
</form>

This is iframe name="repIframe"<br>
<iframe name="repIframe" src="blank.html"></iframe>
</body>
</html>[/size]


Try to set the method="post"
it is more logical because you post the data to the iframe!

If there is an problem we'll stay in touch!

forestguy57
10-20-2006, 01:48 AM
Try to set the method="post"
it is more logical because you post the data to the iframe!

If there is an problem we'll stay in touch!

Thanks for your response Dean.

I tried using POST but received error, "Post not allowed in document test.html"

It seems this should be so easy but it's got me stumped.
Thanks for your suggestion

Randy Whitney