jQuery UI Widgets Forums Dialogs and Notifications Window Reloading Windows after close not possible

Tagged: , ,

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 12 years, 1 month ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Hello,

    why is not possible to reload a window after closing it.

    When the window open it start a load Content from a page in html. But after closing the window the opening of the windows do not work as the first time it works.

    Query("#popup_create_user").jqxWindow({"width":"95%","height":"90%","isModal":"true","resizable":false,"maxHeight":"95%","maxWidth":"60%","theme":"metro","position":"center","closeButtonAction":"close"}); 
    console.log(3);
    jQuery("#popup_create_user").jqxWindow("setContent", "Loading...");
    console.log(4);
    (function(){
    jQuery.ajax({
    dataType: 'html',
    url: "/users/add",
    success: function (data) {
    console.log("success");
    jQuery("#popup_create_user").jqxWindow('setContent', data);},
    error: function () {
    console.log("error");
    jQuery("#popup_create_user").jqxWindow('setContent', "Error");}
    });
    jQuery("#popup_create_user").jqxWindow("open");
    jQuery("#popup_create_user").jqxWindow("show");
    })();

    Thanks


    Peter Stoev
    Keymaster

    Hi GabrieleMartino,

    “closeButtonAction”:”close” will remove the window from the DOM when the close button is pressed. As it is removed from the DOM, you will not be able to access it anymore.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.