PDA

View Full Version : _blank is not working in modal dialog



kiran
06-16-2005, 10:03 AM
HI,
I have a problem with the modal dialog,i am using showModalDialog to open a modal pop up in IE.From this dialog i am submiting the form and trying to open a new window for printing purpose using target="_blank".

I am not using window.open or dialog,just i am setting target as "_blank",But it is not working fine,it is opening a new window but request is not passed to it,So i am unable to load the print page.

How do i resolve this?? this will work fine if i use window.open.it is giving problem only in showModalDialog.

can anybody ..please help me
thanks
kiran

jscheuer1
06-16-2005, 06:48 PM
What script are you using? What browser?

.

kiran
06-22-2005, 01:40 PM
Thanks John..
i am using IE only,So i am going for window.showModalDialog() to open a modal pop up.
If i set target to _self or frame name where i can load within the modal dialog ,evreything works fine,but my requirement is to submit the form content and open a new browser so that user can print that page.
The code follows here....

function printOperation()
{


parent.frames["result_pane"].document.forms["operationForm"].target="_blank"
parent.frames["result_pane"].document.forms["operationForm"].action="<%=URLRoot%>/PrintOperation.do";
parent.frames["result_pane"].document.forms["operationForm"].submit();
}

whats happening is it is opeing a new window..but request and session are newly created for this browser,,so i am not able to get the form content from which i submitted.
How do i do this...
regards,
Kiran