我正在使用IE 8
在Windows Server 2003上工作我的网站在firefox和google chrome上工作得很好。
它也适用于IE,只需一想,
有一个链接,当我点击时,我在页面左下角got error on page
yello并且网站上没有任何变化,我的意思是只显示该消息并且网站内容仍然相同。
我现在可以在我的IE上运行java脚本程序。
链接存在于此处
<ItemTemplate>
<a href="javascript:void(0);" onclick="LoadDetails('<%#Eval("CustomerID")%>','<%#Eval("Telephone")%>',this)">View Details</a>
</ItemTemplate>
<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
<ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
</asp:TemplateField>
和正在使用的java脚本代码在这里:
function LoadDetails(memberID, mediaValue, el) {
alert("asdfasdf")
var listview1ToHide = document.getElementById('ListView1');
listview1ToHide.style.display = 'none';
if (!$(el).hasClass('disabledLink')) {
$('#copyPhoneBtn').css('display', 'none');
$('.disabledLink').each(function () {
$(this).removeClass('disabledLink');
});
$(el).addClass('disabledLink');
$('#subView').load('SubView.aspx?CustomerId=' + memberID + "&MediaValue=" + mediaValue + "&rand=" + Math.random());
$("#newButtonContainer").css("height", "300px");
} else {
//alert('disabled..');
}
}
注意,我使用的是asp.net
注意:警报正在运行
答案 0 :(得分:1)
双击警告消息以查看其内容,您应该能够找到错误的位置