I'm using jquery-ui-1.8.2 to create a modal with form data that's populated using a $.load() initially and a $.post() subsequently.Essentially, I'm loading a form into the modal and then using one of the dialog buttons to post the form data to a server and get back results. The results come back fine and the content of the dialog get properly repopulated. The problem is that thereafter the dialog buttons don't seem to work and the only way I can even close the dialog is by using the "x" in the upper right corner. Before I pull my hair out trying to debug I just want to cover my bases and ask if this is expected behavior. Do the buttons "unbind" after being used once? How can I track the button's binding and when/how they are becoming unbound?
I'm going to go ahead and close this issue as it turns out that the problem isn't that the button events aren't firing -they are, but I seem to lose the handle to the dialog and can't grab it to close. Obtaining the div that encloses it doesn't seem to work, nor does obtaining the generic $(".ui-dialog") and calling .dialog('close') on that. If I could just figure out what the dialog's "X" button is using and reverse engineer that...
I'll open up a separate issue for tha problem.
Leave a comment on jakemonO's reply
Change topic type
Link this topic
Provide the permalink of a topic that is related to this topic