Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2254
Nested web dialogs (popup over popup) in separate iFrames?
posted

Hello,

Please see the attached file. How can I use the WebDialog window to achieve this functionality ?

I would like to open each web dialog in a separate iFrame.

Thank you very much, any help is appreciated.

  • 2254
    posted

    Hello,

    I've done some exercises related to this subject

    This effect can be achieved using Infragistics WebDialogWindows

    Given this configuration: MainPage.aspx, Popup1.aspx, Popup2.aspx where

    MainPage.aspx opens  Popup1.aspx and

    Popup1.aspx  opens Popup2.aspx

    The idea is to place both WebDialogWindows controls within MainPage.aspx

    In MainPage.aspx we shall have the JavaScript code to open both popup1 and popup2 (simplified code)

    function LaunchFirstPopup()

    {

    w1 = $find('<% =WebDialogWindow1.ClientID %>');

    w1.get_contentPane().set_contentUrl('Popup1.aspx');

    w1.show();

    }

     

    function LaunchSecondPopup()

    {

    w2 = $find('<% =WebDialogWindow2.ClientID %>');

     w2.get_contentPane().set_contentUrl('Popup2.aspx');

    w2.show();

    }

    In Popup1.aspx we shall open Popup2.aspx using  something like :

     

    function LaunchPopup2() { window.parent.LaunchSecondPopup(); return false;}

    One question I would have refers to the interaction beween the parent->child windows

    i.e. how to refer from within MainPage.aspx to html controls contained in the child  Popup1.aspx ?

    i.e. how to refer from within Popup1.aspx to html controls contained in the child Popup2.aspx ?

    Thank you