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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Form Button to Target iFrame? 1

Status
Not open for further replies.

Rougy

Programmer
Oct 15, 2001
249
US
I like the controls of the form button, but I can't figure out how to make it "target" an iframe within the page instead of callilng another page.

Does anybody know if this is possible?

Thanks.

-----
The death of dogma is the birth of reason.
 
Hi,

<FORM ACTION=&quot;page.html&quot; METHOD=&quot;POST&quot; TARGET=&quot;iframe_name&quot;>
<!-- form stuff here -->
</FORM>

Hope this helps!

relax.gif


Keep up to date with my 2003 NHL Playoffs Wallpaper
 
I appreciate it, but it isn't working for me. Thanks just the same for trying.

-----
The death of dogma is the birth of reason.
 
Hi,

What's not working? This works for me just fine in about 3 different browsers.

Here is the code you want:

<HTML>
<HEAD>
<TITLE>TEST</TITLE>
</HEAD>
<BODY>
<FORM NAME=&quot;form_name&quot; ACTION=&quot;page.php&quot; METHOD=&quot;POST&quot; TARGET=&quot;iframe&quot;>
<INPUT TYPE=&quot;text&quot; NAME=&quot;name&quot; VALUE=&quot;&quot;><BR>
<INPUT TYPE=&quot;SUBMIT&quot; NAME=&quot;SUBMIT&quot; VALUE=&quot;SUBMIT&quot;>
</FORM>

<IFRAME NAME=&quot;iframe&quot; SRC=&quot;blank.html&quot; STYLE=&quot;width: 250px; height: 250px;&quot;></IFRAME>
</BODY>
</HTML>

Hope this helps!

relax.gif


Keep up to date with my 2003 NHL Playoffs Wallpaper
 
That's weird...it's working now.

Thanks!!!!

-----
The death of dogma is the birth of reason.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top