.dialog()を呼び出すと、IE8とIE7でエラーメッセージが表示されます。
IEコンソールから表示されるエラーメッセージは次のとおりです。
SCRIPT438:オブジェクトはこのプロパティまたはメソッドをサポートしていません。
jquery-1.7.2.min.js、2行目文字21784
これが私のコードです:
// Add to cart button clicked
$tablePanel.on('click', '.AddToCartButton', function (e) {
$('#mdlPopup_backgroundElement').show();
var optionId = +e.target.getAttribute('optionid');
var categoryId = +e.target.getAttribute('categoryid');
// Get the product shoptCityId from previous <tr>
var $baseProdTr = $(e.target).closest('td.info_row').parent().prev();
var shopCityId = +$baseProdTr.attr('shopcityid');
// For Dev!
if (isNaN(shopCityId)) {
alert('Error:\nFailed to get the shopCityId value from the base product <tr>');
return;
}
// Close the product <tr> in the table
oTable.fnClose($baseProdTr[0]);
var shopDisplay = $baseProdTr.find('b.shopDisplay').text();
$.post(urlAddToCart, { productOptionId: optionId, shopCityId: shopCityId, shopDisplay: shopDisplay, categoryId: categoryId }, function (result) {
if (result === 'EmptyView') {
updateCartItemsCount();
$('#mdlPopup_backgroundElement').hide();
return;
}
var $input = $(result).filter('#hdnModalProps');
var className = $input.attr('classval');
var width = $input.attr('widthval');
var height = $input.attr('heightval');
// --------- the error occurred here: ------------------
$modalDialog = $(result).dialog({ modal: true, draggable: false, resizable: false, width: width,
dialogClass: className + 'noTitleDialog'
});
$('#mdlPopup_backgroundElement').hide();
});
});
私が使用しているのは:jquery-ui-1.8.11.min.js
あなたはこれをここでライブで見ることができます:
http://2send.co.il/Products/%D7%A2%D7%A4%D7%95%D7%9C%D7%94/%D7%A2%D7%A6%D7%99%D7%A6% D7%99%D7%9D
- 写真をクリックしてください。
- ピンクのボタンをクリックします
ありがとう。