EXT.NET v3.0 BETA RELEASED!
Now with Tablet Support!
Ext.NET v3.0 Beta is here with lots of new cool features and now with tablet support! Check Examples Explorer now to see it in action or download and test it yourself for free!
Results 1 to 6 of 6

Thread: Modal Window Open another Modal Window and Data return

  1. #1
    Member
    Join Date
    Jan 2009
    Location
    Posts
    16

    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
    Ext.NET - Dev Team geoffrey.mcgill's Avatar
    Join Date
    Jan 2008
    Location
    Canada
    Posts
    8,678

    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
    Ext.NET, Inc.
    Founder, and Dev Team

    Ext.NET Examples | Ext.NET API Docs | ExtJS API Docs | @extnet | Jobs

  3. #3
    Member
    Join Date
    Jan 2009
    Location
    Posts
    16

    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
    Ext.NET - Dev Team geoffrey.mcgill's Avatar
    Join Date
    Jan 2008
    Location
    Canada
    Posts
    8,678

    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.

    Geoffrey McGill
    Ext.NET, Inc.
    Founder, and Dev Team

    Ext.NET Examples | Ext.NET API Docs | ExtJS API Docs | @extnet | Jobs

  5. #5
    Member
    Join Date
    Jan 2009
    Location
    Posts
    16

    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
    Member
    Join Date
    Mar 2010
    Location
    Posts
    22
    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 Premium Help
    Replies: 1
    Last Post: Jul 24, 2012, 9:58 AM
  2. Replies: 3
    Last Post: Feb 07, 2012, 7:00 AM
  3. Replies: 5
    Last Post: Nov 08, 2011, 7:53 PM
  4. [CLOSED] X.Msg with Modal Window
    By jwf in forum 1.x Premium Help
    Replies: 4
    Last Post: Sep 20, 2011, 10:22 PM
  5. Modal Window
    By erey in forum 1.x Help
    Replies: 0
    Last Post: Mar 29, 2010, 1:06 PM

Posting Permissions