I am trying to use jqModal in my .net/mvc app to do simple jquery modal popups. I have a table where I list out records and have an "edit" button to popup a modal dialog to do the edits. When I submit, I hide the modal popup and refresh the table listing below using the .ajax() method.
However, now when I click on the "edit" page, jqModal isn't firing and instead it just goes to my edit page directly (rather than the modal popup).
I've tried to re-inject the jqModal scripts after the ajax callback but that doesn't work either. Any help appreciated!!!
$.ajax(
{
type: "GET",
url: "HomePage/ViewTimelineFeatures",
dataType: "html",
success: function(result) {
$("myDiv").html(result);
// Now re-initialize jqModals here doesn't work...
}
});