Results 1 to 3 of 3

Thread: _blank is not working in modal dialog

  1. #1
    Join Date
    Jun 2005
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default _blank is not working in modal dialog

    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

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    What script are you using? What browser?

    Warning: Please include a link to the DD script in question in your post. See this thread for the proper posting format for asking a question.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Jun 2005
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •