Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

form targets an iframe issue

Status
Not open for further replies.

johne417

Programmer
Sep 18, 2001
23
US
Hello. Here's a very shortened, simplified version of my question. I have a form with an iframe in it, and the code is sortof like:

<form name=&quot;testForm&quot; action=&quot; target=&quot;myIFrame&quot;>

.......

<input type=&quot;hidden&quot; name=&quot;var1&quot; value=&quot;foo&quot;>
<input type=&quot;hidden&quot; name=&quot;var2&quot; value=&quot;foo&quot;>
<input type=&quot;hidden&quot; name=&quot;var3&quot; value=&quot;foo&quot;>
<input type=&quot;hidden&quot; name=&quot;var4&quot; value=&quot;foo&quot;>
<input type=&quot;hidden&quot; name=&quot;var5&quot; value=&quot;foo&quot;>
<input type=&quot;hidden&quot; name=&quot;var6&quot; value=&quot;foo&quot;>
<input type=&quot;hidden&quot; name=&quot;var7&quot; value=&quot;foo&quot;>
<input type=&quot;hidden&quot; name=&quot;var8&quot; value=&quot;foo&quot;>
<input type=&quot;hidden&quot; name=&quot;var9&quot; value=&quot;foo&quot;>
<input type=&quot;hidden&quot; name=&quot;var10&quot; value=&quot;foo&quot;>

<iframe src=&quot; title=&quot;myIFrame&quot; id=&quot;myIFrame&quot; scrolling=&quot;yes&quot;></iframe>

..........

<input type=&quot;submit&quot; name=&quot;submit&quot; value=&quot;submit&quot;>

</form>


Now, when I click on the &quot;submit&quot; button the iframe (yahoo) pops up in a new window. Is there a way I can get it to refresh just the iframe section of the document? I really need to do a form submission (instead of building a link or whatever) because there are just too many variables I need to pass to the iframe. Gotta be some sort of a way to do this in JavaScript. Thanks in advance for any help.
~John
 
in your iframe, change
title=&quot;myIFrame&quot;

to
name=&quot;myIFrame&quot;


=========================================================
-jeff
try { succeed(); } catch(E) { tryAgain(); }
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top