에서 작동하지 않는 것은 내가 사용 된 JQuery와 - UI를 모달 코드 :JQuery와 모달 팝업이 IE
//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에서 제대로 작동)
명확히하기 : IE는 마침표 뒤에 쉼표를 사용합니다. 다른 브라우저는 상관하지 않습니다. – Kreegr
예, 게시 한 지 몇 분 후에 나타납니다. 발견 주셔서 감사합니다. .. 페이지의 아래의 더 약간의 것이 또한 있었다. .. 나는 jquery-ui 사이트에서 이것을 똑바로 베꼈다! – ClaytonDaniels