I'm ge开发者_开发知识库tting the error below in IE6 and IE7 only
Line 1
Char: 6
Error: Syntax error
Code: 0
URL: https://websitename.com/sublevel/page.aspx?param=123456¶m2=Parameter Name¶m3=4
in view source line 1 is empty
Any idea why is it happening only in IE6 and IE7
Here is my javascriptcode
function OpenChatForm(id, paramname, param3) {
$("#ChatForm").dialog("open");
$("#Iframe0").attr("src", "page.aspx?param=" + id+ "¶m2=" + paramname+ "¶m3=" + paramr3);
return false;
}
Get your code to pass the jslint and I'll bet you that the problem will be fixed.
Unless this was a typo when you entered it, the variable param3
is misspelled as paramr3
when used in your function. Should be:
function OpenChatForm(id, paramname, param3) {
$("#ChatForm").dialog("open");
$("#Iframe0").attr("src", "page.aspx?param=" + id+ "¶m2=" + paramname+ "¶m3=" + param3);
return false;
}
精彩评论