私が使用しているjquery-uiモーダルコードは次のとおりです。
//jQuery form dialog modal popup and submit
$(function() {
$("#facilitiesForm").validate();
$("#facilityForm").dialog({
autoOpen: false,
height: 470,
width: 650,
modal: true,
buttons: {
"Send To The Facilities Manager": function() {
$("#facilitiesForm").submit();
},
"Cancel": function() {
$( this ).dialog( "close" );
},
},
close: function() {
allFields.val( "" ).removeClass( "ui-state-error" );
}
});
$("#helpForm").validate();
$("#helpdeskForm").dialog({
autoOpen: false,
height: 570,
width: 650,
modal: true,
buttons: {
"Send To The Helpdesk": function() {
$("#helpForm").submit();
},
"Cancel": function() {
$( this ).dialog( "close" );
},
},
close: function() {
allFields.val( "" ).removeClass( "ui-state-error" );
}
});
$("#adminForm").validate();
$("#adminTasksForm").dialog({
autoOpen: false,
height: 470,
width: 650,
modal: true,
buttons: {
"Send To The Admin": function() {
$("#adminForm").submit();
},
"Cancel": function() {
$( this ).dialog( "close" );
},
},
close: function() {
allFields.val( "" ).removeClass( "ui-state-error" );
}
});
$("#contactFacilityManager")
//.button()
.click(function() {
$( "#facilityForm" ).dialog( "open" );
});
$("#contactHelpdesk")
//.button()
.click(function() {
$( "#helpdeskForm" ).dialog( "open" );
});
$("#contactAdminTasks")
//.button()
.click(function() {
$( "#adminTasksForm" ).dialog( "open" );
});
});
バグに気付き始めたばかりで、IE でポップアップ ボックスが機能しません。私が得るエラーは次のとおりです。
Webpage error details
Message: Expected identifier, string or number
Line: 16
Char: 6
Code: 0
URI: http://newintranet/js/script.js
これが IE で動作しない理由 (Chrome と FF で正常に動作する) のアイデアはありますか?