Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsIFrameIFrameIssue with Iframe srcIssue with Iframe src
Previous
 
Next
New Post
8/11/2008 4:36 PM
 

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!!!

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsIFrameIFrameIssue with Iframe srcIssue with Iframe src


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out