[CLOSED] Open URL after MessageBox OK

  1. #1

    [CLOSED] Open URL after MessageBox OK

    Hi, How Can I Do to stop of the Complete property in DirectEvent Click?, becasuse I want to fire a message with MessageBox and I want the user to set click in the button "OK" when fire of "Complete" script.

            <ext:Button ID="Button1" runat="server" Text="Submit">
                <DirectEvents>
                    <Click OnEvent="Button1_Click" Complete="window.location = 'http://www.ext.net'" />
                </DirectEvents>
            </ext:Button>
            protected void Button1_Click(object sender, DirectEventArgs e)
            {
                X.Msg.Alert("Importar Usuario", "El usuario OESPARZA ha sido importado para utilizar SigloLab con el perfil Perfil01.").Show();
            }
    Last edited by Daniil; Apr 04, 2014 at 5:43 PM. Reason: [CLOSED]
  2. #2
    Hi @osef,

    There is no way to do exactly what you are asking, but you should use an Alert's callback.
    X.Msg.Alert("title", "message", >> a JFunction here <<).Show();
    It triggers when a user closes an alert window.

Similar Threads

  1. Replies: 13
    Last Post: Feb 05, 2014, 3:59 AM
  2. [CLOSED] MessageBox bug
    By Akpenob in forum 2.x Premium Help
    Replies: 1
    Last Post: Aug 29, 2013, 1:54 PM
  3. [OPEN] [#170] Direct2DBug and MessageBox Confirm
    By jchau in forum 2.x Premium Help
    Replies: 5
    Last Post: Mar 14, 2013, 12:46 AM
  4. MessageBox Example Not working
    By Tbaseflug in forum 1.x Help
    Replies: 5
    Last Post: Jun 18, 2009, 4:48 PM
  5. Ext.MessageBox
    By dbassett74 in forum 1.x Help
    Replies: 3
    Last Post: May 26, 2009, 7:13 PM

Tags for this Thread

Posting Permissions