Modal Window Open another Modal Window and Data return

  1. #1

    Modal Window Open another Modal Window and Data return

    Hi everybody,

    i have a modal window (let's call it window1) with a button.

    When the user clicks on that button, the idea is to open a new modal window (let's call it window2).
    Everything works fine: users clicks on the button, and the window2 is shown as a modal window, but the loading message doesn't disappear to show the contents of this page.


    Another question is how can i return data from window2 to its parent (window1).
    The contents of this window2 is a grid with some data. The goal is that, when the user selects a row on the grid window2 is closed, and the selected data is returned to window1.



    Probably this is a bit complicated to understand, so i configure one site where you can see:

    http://regula.mediafoundry.eu/page1.aspx

    and the code can be downloaded here:

    http://regula.mediafoundry.eu/code.zip


    Thanks,

    Nuno Santos
  2. #2

    RE: Modal Window Open another Modal Window and Data return

    Hi Nuno,

    In the second Window, it's attempting to load*http://regula.mediafoundry.eu/Lists/StockEntrance.aspx, although that url is returning a "404 not found" error.*


    Geoffrey McGill
    Founder
  3. #3

    RE: Modal Window Open another Modal Window and Data return

    Hi Geoffrey,


    sorry for the error, my bad.


    There is a new release with the corrected example and also the updated code.


    Thanks,
    Nuno Santos
  4. #4

    RE: Modal Window Open another Modal Window and Data return

    Hi Nuno,

    If you set "scripts: true" in the load config, the second window should load properly.

    Example

    <Click Handler="#{Window3}.load({ url: '/Lists/StockEntrance.aspx', scripts: true }).show();" />
    Hope this helps.

    Geoffrey McGill
    Founder
  5. #5

    RE: Modal Window Open another Modal Window and Data return

    Hi Geoffrey,



    thanks for fast reply, but with that change, i get an error: 'htmlfile: Unknown runtime error'.


    Did you see the page being rendered inside window2? And if so, how can i return value from that window to the parent window( ie window1).


    Thanks for your amazing fast reply and for your support.

    Nuno Santos
  6. #6
    Could you give me an example or fix above links , I have a same problem? Thanks alot!

Similar Threads

  1. [CLOSED] Open a modal popup from a modal popup
    By Aparna_B in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jul 24, 2012, 8:58 AM
  2. [CLOSED] Ext.Window: Question about clicking outside a modal Window
    By nhg_itd in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Feb 07, 2012, 6:00 AM
  3. [CLOSED] Modal Window does not open with the correct z-index in desktop
    By Labyrinth in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Nov 08, 2011, 6:53 PM
  4. [CLOSED] X.Msg with Modal Window
    By jwf in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Sep 20, 2011, 9:22 PM
  5. Modal Window
    By erey in forum 1.x Help
    Replies: 0
    Last Post: Mar 29, 2010, 12:06 PM

Posting Permissions