jQWidgets Forums

jQuery UI Widgets Forums Dialogs and Notifications Window Elements windows do not close

Tagged: 

This topic contains 3 replies, has 2 voices, and was last updated by  support 12 years, 2 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • Elements windows do not close #17648

    Hello,

    i have 3 point where to open different windows. When i close one window elements are not deleted from the page and interfer each other.

    How can i destroy all the elements with out loss the window ability for others.

    Thanks for hint.

    GM

    Elements windows do not close #17707

    support
    Participant

    Hi GabrieleMartino,

    In order to destroy elements from the jqxWindow, you can use the close event combined with the destroy method. In the following example, you can specify the event and the method for your needs.

    $('#window2').on('close', function (event) {
    //Some code here
    });

    Best Wishes,
    Mariya

    jQWidgets Team
    http://www.jqwidgets.com

    Elements windows do not close #17767

    The events on close is not intercepted.

    When i close the window the message “closing” not appear in the console

    $routine = '
    console.log(1);
    jQuery("#'.$id.'").on(\'close\', function (event) {
    //console.log("closing...");
    jQuery(".epx-destroyable").each(function(){
    var type = jQuery(this).data("epx-type");
    //console.log(type);
    jQuery(this)[type]("destroy");
    });
    jQuery("#'.$id.'").jqxWindow("destroy");
    });
    jQuery("body").append("<div id=\"'.$id.'\"><div></div> <div></div> </div>");
    console.log(2);
    jQuery("#'.$id.'").jqxWindow('.Easypbx_Html_JsonElement::create($properties).');
    console.log(3);
    jQuery("#'.$id.'").jqxWindow("setContent", "Loading...");
    console.log(4);
    (function(){
    jQuery.ajax({
    dataType: "html",
    url: "'.$url.'",
    success: function (data) {jQuery("#'.$id.'").jqxWindow("setContent", data);},
    error: function () {jQuery("#'.$id.'").jqxWindow("setContent", "Error");}
    });
    jQuery("#'.$id.'").jqxWindow("open");
    jQuery("#'.$id.'").jqxWindow("show");
    })();
    console.log(5);
    Elements windows do not close #17772

    support
    Participant

    Hi GabrieleMartino,

    The event ‘close’ is raised correctly. Here is a sample: http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxwindow/jquery-window-events.htm?classic. Btw. your ‘closing’ log in your code is commented.

    Best Wishes,
    Mariya

    jQWidgets Team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.