【发布时间】:2012-08-21 12:47:39
【问题描述】:
我在 Firefox 中使用 JS 函数时遇到了一点问题。预期的结果(在 IE 和 Chrome 中相应地工作)是执行服务器端代码并在 LoadDetails 函数中返回一个数组。
function ShowEvent(index) {
PageMethods.LoadDetailsEvent(index, LoadDetails);
}
function LoadDetails(val) {
document.getElementById('lblName').innerText = val[0];
document.getElementById('lblDate').innerText = val[1];
document.getElementById('lblTime').innerText = val[2];
document.getElementById('lblPlace').innerText = val[3];
document.getElementById('lblDescription').innerText = val[4];
$find('mpeShowEvent').show();
}
在其他浏览器中,数据已正确加载到标签中,但在 Chrome 中,它们以默认值显示。
我在这里错过了什么?
【问题讨论】:
标签: javascript asp.net firefox cross-browser