HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
Help submiting form to iFrame.
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Form
View previous topic :: View next topic  
Author Message
shawnrgr



Joined: 15 Mar 2008
Posts: 2

PostPosted: Sat Mar 15, 2008 6:03 pm     Help submiting form to iFrame. Reply with quote

I had this working before, but something happened and its no longer working. I can't figure it out. Looking for some help! Thanks in advance!

Code:
<form target="ListFrame" name="selector">Meetings:<br>
<select class="selectInput" id="BildSelect">
<option value="lists/2007.html">55th - Istanbul, Turkey (2007)</option>
<option value="lists/2006.html">54th - Ottawa, Canada (2006)</option>
</select>
<input class="jbtn" value="Submit" onclick="go()" type="button">
</form>
<div class="img-default"><iframe id="ListFrame" src="lists/2007.html" frameborder="0" height="200" width="100%"></iframe></div>


When pressing submit, nothing happens at all. I know this can be accomplished with javascript but I would rather avoid that if I could. As I said above, I know this is possible because I was able to get this working before. Thanks!
ogsolution



Joined: 26 Dec 2007
Posts: 144

PostPosted: Sat Mar 15, 2008 8:32 pm     Reply with quote

Your form doesn't have an action. You can target the iframe to have the frame show the form submission but you still need the action to submit.

Code:
<form target="ListFrame" name="selector" action="lists/2007.html">
shawnrgr



Joined: 15 Mar 2008
Posts: 2

PostPosted: Sat Mar 15, 2008 8:47 pm     Reply with quote

I added the action part to the form, still nothing happens, could it be anything else?
ogsolution



Joined: 26 Dec 2007
Posts: 144

PostPosted: Sun Mar 16, 2008 12:17 am     Reply with quote

ya, your submit button should have type="submit"

Code:
<input class="jbtn" value="Submit" type="submit">
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Form All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial