Welcome to WebmasterWorld Guest from 54.162.151.77

Forum Moderators: ocean10000

Message Too Old, No Replies

iFrame and .aspx with postback

     
1:54 pm on Jul 15, 2008 (gmt 0)

Full Member

10+ Year Member

joined:July 27, 2005
posts:329
votes: 0


I have an iFrame which contains an .aspx file (over which I have no control). The .aspx does a calendar control postback, which works fine. The problem I'm experiencing is that when one submits the form the iFrame is loaded within the iFrame section, however it should replace the parent window.

I had recommended the third party to add

target="_self"
to the form tag, but this broke the postback.

Some example code:

<iframe id="iFrameSearch" src="http://example.com/search.aspx" scrolling="no" frameborder="0" height="200px" width="200px" margin="0" padding="0"></iframe>

and here's the form tag in the .aspx page:

<form name="formSearch" method="post" action="searchaction.aspx" id="formSearch">

Any advice as to what could solve this?

10:18 am on July 16, 2008 (gmt 0)

Full Member

10+ Year Member

joined:July 27, 2005
posts:329
votes: 0


Is this at all possible?