jQWidgets Forums

jQuery UI Widgets Forums Dialogs and Notifications Window Working with jqxWindow

This topic contains 3 replies, has 3 voices, and was last updated by  zenmiami 11 years, 11 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • Working with jqxWindow #17802

    alexl
    Participant

    This is more of a general inquiry rather than a request for help with a specific problem.

    What are the internal differences, and, consequently, best practices to use, of things like:

    ‘close’ vs ‘closeWindow’ vs ‘destroy’?

    Also, what are the limitations (there are some, it seems to me) of the ‘setContent’ method vs using the ‘initContent’ property?

    Also, are there any side effects in using some DOM manipulations (namely, hiding) on the jqxWindow anchor div instead of
    calling the ‘close’ method on the widget itself?

    And finally, my wireframes call for some ‘on the fly’ generations and dismissals of dialog style interactions.
    I’m experimenting with jqxWindow as a container for such dialogs. Is it a flawed approach to begin with? Should I switch to plain jqxPanel instead?

    Many thanks!

    Working with jqxWindow #17884

    Dimitar
    Participant

    Hello alexl,

    1) The closeWindow method is deprecated and is used only for backward compatibility. Use the close method instead. It closes (hides) the window and it can be opened again via the open method. The destroy method removes the window’s div from the DOM. The window cannot be opened again.

    2) There are no limitations to the content that can be set with either methods.

    3) You may use whichever method you wish.

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

    Working with jqxWindow #23269

    zenmiami
    Member

    What if you want to re-show the ‘window’. Such as an error information window. A user checks a check box, you perform some ajax post and get a result status, if error, show some error information prompting the user to make some corrections and retry… It works on the first call but the not the subsequent calls… Now I know why… How to overcome this ?

    Thanks

    Working with jqxWindow #23270

    zenmiami
    Member

    use the ‘hide’ method…

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

You must be logged in to reply to this topic.