Well, in general, to to target a FORM's result to an iframe, you would do this:
Give your IFRAME a NAME attribute, such as:
Code:
<IFRAME NAME="myframe" ...>
Then use that as the FORM's TARGET:
Code:
<FORM TARGET="myframe" ...>
Having said that, the key to targeting a FORM's content to a DHTML window widget that's an iframe is to know the name of this iframe. Assuming you've opened a DHTML window using the below code:
Code:
var googlewin=dhtmlwindow.open("googlebox", "iframe", "http://images.google.com/", "#1: Google Web site", "width=590px,height=350px", "recal")
The IFRAME's name then will always be "_iframe-googlebox". Note the "_iframe-" prefix to the first parameter.
So to answer your question, a FORM that submits its contents to the above window widget would look like this:
Code:
<form target="_iframe-googlebox" action="http://www.mysite.com/submit.php">
<input type="submit" />
</form>
Bookmarks