hussainian Posted September 7, 2010 Share Posted September 7, 2010 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 More sharing options...
wirehopper Posted September 7, 2010 Share Posted September 7, 2010 You could try setting the target to 'frame1'http://www.w3schools.com/TAGS/att_form_target.asp Link to comment Share on other sites More sharing options...
hussainian Posted September 8, 2010 Author Share Posted September 8, 2010 You could try setting the target to 'frame1'http://www.w3schools.com/TAGS/att_form_target.asp Problem is the same i.e. Submitting HTTPS to frame. Link to comment Share on other sites More sharing options...
wirehopper Posted September 8, 2010 Share Posted September 8, 2010 You might want to switch from frames to divs and use AJAX. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.