Forum Moderators: open

Message Too Old, No Replies

Iframe

Target=

         

gosman

4:32 pm on Oct 6, 2005 (gmt 0)

10+ Year Member



I have a form on a page when it is submitted the results are displayed in an iframe named MainFrame

<form name="package_search" action="http://widgets.com/Search.aspx" id="package_search" target=MainFrame>

This works fine however what I would like is the results to be displayed in an iframe on another page and this page open in the parent window. Is this possible?

gosman

6:04 pm on Oct 6, 2005 (gmt 0)

10+ Year Member



Anyone. This is drivimg me crazy.

Dijkgraaf

11:45 pm on Oct 6, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It probably is.
First off you would need to have something like

<form name="package_search" method="POST" action="http://widgets.com/NewPage.aspx" id="package_search" target="_top">

And then the NewPage.aspx would need to get read the POSTed values, and pass these onto the iframe.
e.g.
<iframe src="http://widgets.com/NewFramePage?value1=<%=value1%>&value2=<%=value2%>"></iframe>

Dijkgraaf

11:56 pm on Oct 6, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



P.S. This question should probably have been asked in
Microsoft Related - .NET and ASP [webmasterworld.com] as it isn't actually anything to do with JavaScript.