Jump to content

Submitting form to Frame


hussainian

Recommended Posts

Hi! I have a page main.html, which has a frameset containing two frames. In one of the frames, there is an html page, which submits the page. The code may look alike-----MAIN.HTML--------------<html> <frameset border="1" cols="50%,50%"> <frame src="f1.html" name="frame1"/> <frame src="f2.html" name="frame2"/> </frameset></html>-------F1.HTML---------------<html> <head> </head> <body> <form name="myForm" action="https://www.some-link.com" method="post" target="_self"> <input type="hidden" name="EXTRA1" id="EXTRA1" value="EXTRA1" > <input type="hidden" name="EXTRA2" id="EXTRA2" value="EXTRA2" > <input type="hidden" name="EXTRA3" id="EXTRA3" value="EXTRA3" > <input type="hidden" name="EXTRA4" id="EXTRA4" value="EXTRA4" > </form> <script> myForm.submit(); </script> </body></html>Note that the action tag contains an HTTPS link which is using SSL3 or TLS1. When the page is submitted, instead of submitting to the same frame, another window opens, and in that the form is submitted. Setting the target to '_top' removes the frameset from MAIN.HTML and submits without opening the other window. But frameset removal is problem as f2.html is must required. Another point is that submitting to an HTTP page with target as _self works fine. Seems to be security issue of HTTPS. Is there any way to modify this behaviour?Thanks.AsadUllah.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...