Forum Moderators: open

Message Too Old, No Replies

iFrame and .aspx with postback

         

SilverLining

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

10+ Year Member



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?

SilverLining

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

10+ Year Member



Is this at all possible?