jQuery UI Dialog with AJAX Tabs Problem -
Using the jQuery Tools tab (AJAX) with jQuery UI Dialog (Manually doing AJAX Loading I dialog). The problem is that the dialog is loading and specially set for the current tab (loaded on tab requests via AJAX with tab content). The jQuery UI, when creating a dialogue, removes the container from its original state, adds its markup, and adds it to the body
The problem is that the dialog is now outside the contents of the tab and later the tab Changes will not be replaced / removed. If the user clicks on another tab, or back button (there is an AJAX history using the tab URL hash, the page is not actually reloaded), the dialog has been broken, but it has not been deleted Because the jQuery UI dialogue has taken it out of the tab content it now appears in the lower part of the body. I wrote 'hack around' for it if the user physically closes Does not click, but it also has pressed the back button or load any other tabs through AJAX and jQuery UI, it is not removed. Body (Not sure how it does!) Any suggestions? And please tell me that I was not made clear on any of them. Thanks! (This is what I have now got, it successfully eliminates the users when they stop communicating physically)
$ ('OpenMyDialog'). Click (Create function dialogue $ ('body') .x $ ('# Model Container') for Div (function () {// div} ('& lt; div id = "modalContainer" & gt; ; / Div & gt; '); // Load dialog load (' loadMyAjaxContent.html ') .dialog ({modal: true, width: 850, open: function (type, data) {// remove from body bottom and It has the content of the tab put in $ (this) .Parent (). AppendTo ('.pan div: first');}, close: function ($ {$ (this) .dialog ('deleted'); $ ( '# ModalContainer'). Remove ();}});});