Hi ,
I have a flow which is as follows:
On-click of a button, i open POPUP1.jsp, passing some request parameters to it.
POPUP1.jsp has an IFRAME as follows:
<body>
<div>
<iframe name="frame1" width="100%" height="100%" frameborder="0" marginwidth="0" marginheight="0" onLoad="fnReloadParent();" src="/getPDF.do?Param1=<%=Param1%>&Param2=<%=Param2%>"/>
</div>
</body>
The action getPDF generates a PDF ,sets it as a bytearray in the session, and fwds to POPUP2.jsp
POPUP2.jsp has another iframe as follows:
<iframe name="frame2" width="100%" height="100%" frameborder="0" marginwidth="0" marginheight="0" src="showpdf.jsp"/>
Finally, showpdf.jsp retrieves the ByteArray of the PDF from the Session and displays it using an outputstream.
Once the PDF renders fully, the onload event , "fnReloadParent()" of the first Iframe is invoked.
The issue with the above flow is that the first time you hit the button, the getPDF.do action gets invoked twice.
On investigating using logs i found that the first time there is a call to getPDF.do, execution proceeds till loading of POPUP2.jsp, but after that getPDF.do is called again(instead of loading showpdf.jsp, which is the src of the second Iframe in POPUP2.jsp), the second call to getPDF.do ,however completes normally, i.e. showpdf.jsp is rendered with the PDF and the parent reloads at the end of this call.
Seems like the src of the first Iframe is called instead of the src of the second, when the flow is invoked for the first time.
This is happening in IE6 SP1, not happening in SP2 or IE 7, in the same environment(i.e. in the same deployed code base).
None of my buttons are of type Submit. Another point to note is that this has started occuring only recently, with absolutely no code change. Please Help! I know this is a Dot Net forum and my code uses JSPs, but this seems like a browser issue related to Iframes. Please Help!!!