1. #1
    Sencha User
    Join Date
    Sep 2010
    Posts
    58
    Vote Rating
    0
    vijaypatil12 is on a distinguished road

      0  

    Post Answered: I am using ext-gwt and I want to close my browser window on ext-gwt button click

    Answered: I am using ext-gwt and I want to close my browser window on ext-gwt button click


    how I can achive that in ext-gwt, please help

  2. FF does not allow scripts to close the window.
    If you want to bypass this default setting, type about:config in ff.
    Then make sure the "dom.allow_scripts_to_close_windows" property is set to true

  3. #2
    Sencha User
    Join Date
    Nov 2008
    Location
    Vienna - Austria
    Posts
    870
    Vote Rating
    1
    Answers
    9
    micgala is on a distinguished road

      0  

    Default


    Hi.
    You cannot close the browser. You can close the window if your application is running on a popup.
    Try doing it via jsni:

    Code:
    private static native void closeWindow() /*-{
            $wnd.close();
        }-*/;

  4. #3
    Sencha User
    Join Date
    Sep 2010
    Posts
    58
    Vote Rating
    0
    vijaypatil12 is on a distinguished road

      0  

    Post Thanks for reply, it is working fine in IE, but not working in FF 3.5.3

    Thanks for reply, it is working fine in IE, but not working in FF 3.5.3


    Thanks for reply, it is working fine in IE, but not working in FF 3.5.3

    what i can do for ff

    Thanks
    vijay patil

  5. #4
    Sencha User
    Join Date
    Nov 2008
    Location
    Vienna - Austria
    Posts
    870
    Vote Rating
    1
    Answers
    9
    micgala is on a distinguished road

      0  

    Default


    FF does not allow scripts to close the window.
    If you want to bypass this default setting, type about:config in ff.
    Then make sure the "dom.allow_scripts_to_close_windows" property is set to true

  6. #5
    Sencha User
    Join Date
    Sep 2010
    Posts
    58
    Vote Rating
    0
    vijaypatil12 is on a distinguished road

      0  

    Default Thanks, it's working for me

    Thanks, it's working for me


    Thanks, it's working for me

Thread Participants: 1