jQuery UI Widgets › Forums › Dialogs and Notifications › Window › window reattaches the div node?!?
This topic contains 3 replies, has 2 voices, and was last updated by Peter Stoev 12 years, 5 months ago.
-
Author
-
Hello,
it seems to me that the jqxWindow() function removes the target div from its current location, and reattaches it at the top of the document – is this correct? if yes, is this a feature or a bug? if the former – can this be disabled?
the reason why this is really annoying for me is that I am dynamically changing partial pages – think “frame remains the same, inner part is replaced”; for this to work I need to know what is in the inner part because I have to clear it out / overload it. if some elements remove themselves this is a problem, because they linger on the page even after the page transition, which they should not…
Hi stefan,
jqxWindow’s parent HTML element should be the document’s body. That’s why it is detached from its container and appended to the body. This is by design and cannot be disabled.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comHi Peter,
thanks for the quick reply. So I cannot just take the window div and put it back where it belongs I suppose?
If this is by design – do you have some guidance / best practices on how to deal with this in an Ajax environment where only partial pages are replaced? To give you a flavor of why this is really an issue for me: I am loading the window inside a plugin, so the engine that turns the page does not really know what is inside the box – all it knows is that it should wipe a certain part of the document and put the new content in there. I suppose that I am not the only one who has run into this, so maybe there are already smart solutions out there?!?
Finally – are there any other JQWidgets that move themselves upwards in the document? I really like your library and I want to base my website on it, but this is a bit of a dealbreaker because the AJAX might just become too messy if I have to keep track of all those elements that detach themselves….
Hi stefan,
It is necessary the window to be attached to the document’s body because of its positioning, draggable and resizable behavior. All Popups are appended to the document’s body.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com -
AuthorPosts
You must be logged in to reply to this topic.