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
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.*
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
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
Code:
<Click Handler="#{Window3}.load({ url: '/Lists/StockEntrance.aspx', scripts: true }).show();" />
Hope this helps.
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