如何摆脱我的网页中的脚本错误? [英] How to get away from the script error in my webpage?
本文介绍了如何摆脱我的网页中的脚本错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
亲爱的朋友们,
在我的.NET网页中,我使用模态对话框弹出窗口通过传递网址和标题来显示报告。当我在IE8浏览器中调用该对话框窗口时,我遇到了一个脚本错误,对象不支持此属性或方法。我使用的脚本如下,
Dear friends,
In my .NET webpage i m using a modal dialog popup window to show the report by passing url and title. I got a script error when i call that dialog window in my IE8 browser, "Object doesn't support this property or method". The script I m using as follows,
function openDialog(title,url) {
$('<div>').html('loading...').dialog({
modal: true,
open: function ()
{
$(this).load(url).dialog("open");
},
close: function(event, ui) {
$(this).dialog( "close" );
},
height: 500,
width: '80%',
title: title,
cache: false
});
}
推荐答案
(' < div>')。html(' loading ...')。dialog({
modal: true ,
open: function ()
{
('<div>').html('loading...').dialog({ modal: true, open: function () {
( this )。load(url).dialog( open);
},
close: function (event,ui){
(this).load(url).dialog("open"); }, close: function(event, ui) {
( this )。dialog( close);
},
height: 500 ,
宽度:' 80%',
title:title,
cac他: false
});
}
(this).dialog( "close" ); }, height: 500, width: '80%', title: title, cache: false }); }
这篇关于如何摆脱我的网页中的脚本错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文