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

Different form elements having different targets

Status
Not open for further replies.

emozley

Technical User
Joined
Jan 14, 2003
Messages
769
Location
GB
I have a form which I want to post to two separate IFRAMES on the same page. The idea is that if you type in the 'Author' box a list of possible matches is shown that gets shorter as you get closer to an exact match. I also want to have something similar for a 'Publisher' box.

So far I have:

<form method="post" name="form" action="suggestions.asp" target="suggestions">

<font face="verdana" size="2"><b>Author</b></font>
<input type="text" name="Author" value="<% = Author %>" onKeyPress="submit()">

</form>
 
you can potentially change the target of a form based on a javascript event, but that's a question for the javascript forum.

forms can only have one target, so this is the way you'll need to do this, unless you want to use two separate forms.



*cLFlaVA
----------------------------
[tt]mr. pibb + red vines = crazy delicious![/tt]

[URL unfurl="true"]http://www.coryarthus.com/[/url]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top