Hello. This is my first post in this section. If I did something wrong just give me to know;)
The description of the problem:
Recently I found this problem on JQuery 1.7.1 so I've downloaded v.1.7.2 and it has thrown up the same error on Line 613.
So, I've made a quick fix which is a temporary solution. Two things I've discovered:
1. It seems that execScript doesn't work in IE 9 (At least in my case);
2. The eval code doesn't work either. See the comments below. I've just commented this part and leaved it blank.
I've tested it in Firefox 12.0, Safari 5.1.2 and IE 9.0.8112 on Windows 7, 64 bits.
Any suggestions are welcome.
And - hope, this helps someone.
My Fix:Line 608, replaced a whole function by:
- globalEval: function( data ) {
- if ( data && rnotwhite.test( data ) ) {
- // We use execScript on Internet Explorer
- // We use an anonymous function so that context is window
- // rather than jQuery in Firefox
- //Temporary fix by Sergiy Zalyubovskiy - 31, March 2012
- //Changed window.execScript to window.exec
- ( window.exec || function( data ) {
- try {
- window[ "eval" ].call( window, data );
- } catch( e ) {
- //the code below doesn't work either, so do nothing
- //eval.call( window, data );
- }
- } )( data );
- }
- },
Webpage error details:
User Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; FDM; .NET4.0C)
Timestamp: Sat, 31 Mar 2012 09:17:39 UTC
Message: Syntax error
Line: 9
Char: 3
Code: 0
URI:
http://www.test.com/Message: Could not complete the operation due to error 80020101.
Line: 613
Char: 4
Code: 0
URI:
http://www.test.com/scripts/jquery-1.7.2.js