开发者

Javascript Syntax Error only in IE 6 and IE 7

开发者 https://www.devze.com 2023-02-18 06:19 出处:网络
I\'m ge开发者_开发知识库tting the error below in IE6 and IE7 only Line 1 Char: 6 Error: Syntax error

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&param2=Parameter Name&param3=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+ "&param2=" + paramname+ "&param3=" + 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+ "&param2=" + paramname+ "&param3=" + param3);
     return false;
}
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号