I'll start out saying that this works perfectly in Chrome and Firefox but not IE (IE9).
Desired behavior: I have a Partial View on my page that contains a hyperlink. When you click on the hyperlink it uses a jQuery function to pop up a dialog to enter a new note. When you close the dialog, it should refresh the Partial View with the new count.
In IE, it works on the first pass, but not subsequent.
I'm using jQuery 1.6.1 and jQuery UI 1.8.13 for the dialog.
Here is my function that is getting called by the hyperlink, and I have confirmed that it is hitting this function every time, just not making it to the controller when .load is called (or it's losing sight of the close function):
function showNoteDialog(id) {
//alert(id);
var dialogOpts = {
title: 'Add Note',
modal: true,
autoOpen: false,
height: 600,
width: 600,
closeOnEscape: true,
open: function (event, ui) {
jQuery.ajaxSetup({ cache: false });
//display correct dialog content
$('#noteDialog).load('<%= Url.Action("ModalNoteEdit","Notes")%>', { id: id });
}
,
// refresh the partial view
close: function (event, ui) {
$('#noteList).load('<%= Url.Action("NoteList","Notes")%>');
}
};
$('#noteDialog).dialog(dialogOpts);
$('#noteDialog).dialog('open');
//end dialog
return false;
}