Hi all, I have a form with few fields inside an iframe. yet, i wish to put my submit button outside the iframe (parent window) let say, i have a form in mydetail.asp In parent.asp file, i write <iframe name="myframe" id="frame1" src="mydetail.asp"></iframe> in parent.asp file. And, i put the submit button in parent.asp file. Now, i would like to press the button and submit the form data of the iframe and display my result in mydetail.asp(in iframe). How to do that? Any ideas or tutorials that can be refered? Thanks alot!!
I believe you use javascript to emulate a form click in an iframe, but I'm not sure if you retrieve the data back into your parent. Actually, I bet if you did an onload event of the posted-to page in the iframe - that set the parent window it would be possible.
I would suggest you not to use the iframe, use some styling and do what I have done for www.hay.am, its almost like the iframe thing but it functions on one and the same page. also if you don't need scrolling for your iframe, you could just include your mydetail.asp file into parent.asp
Hi, you can do what you are trying to achieve by giving the attribute 'name' to your iframe. And then put that name as a target on your submit button. example: <iframe name="myframe" id="frame1" src="mydetail.asp"></iframe> <form action="../mydetail.asp" method="post" target="myframe"> <input type="submit" name="DoIt" value="DoIt"> </form> HTML: Well at least I think that's what you want. Grtz, RT