I have a jQuery dialog that loads its content via Ajax.
The view that has been loaded into the dialog then needs to attach methods to the jQuery dialog object's events.
Im not sure how to go about this though. I tried using $("#myelement").closest("div.ui-dialog")
(which does work) but it doesn't permit me to hook into its close
or resize
events.
Is there a way (given the ID of the div that the dialog was originally created from) to access the original jQuery dialog object?
If i understand your issue: