javascript - IE9 - jQuery - "SCRIPT11: The operation attempted to access data outside the valid range" -
i'm using simple jquery plugin creates unique fingerprint each user can track/recognize users coming specific referral url.
it works fine everywhere except internet explorer 9 (yes, works in ie7 & ie8, though web page looks goofy).
the error i'm receiving is:
script11: operation attempted access data outside valid range
the code below (error occurs on line 21, column 7). i'm go through , comment out each of entities see if it's 1 of them in particular that's causing error.
thanks!
( function($) { // calling `jquery.fingerprint()` return md5 hash, i.e. said // fingerprint. $.fingerprint = function() { // function, `_raw()`, uses several browser details // available js here build string, namely... // // * user agent // * screen size // * color depth // * timezone offset // * sessionstorage support // * localstorage support // * list of installed plugins (we're using names, // descriptions, mime types , file name extensions here) function _raw() { // string return value. return [ navigator.useragent, [ screen.height, screen.width, screen.colordepth ].join("x"), ( new date() ).gettimezoneoffset(), !!window.sessionstorage, !!window.localstorage, $.map( navigator.plugins, function(p) { return [ p.name, p.description, $.map( p, function(mt) { return [ mt.type, mt.suffixes ].join("~"); }).join(",") ].join("::"); }).join(";") ].join("###"); } // `_md5()` computes md5 hash using [md5-js](http://github.com/wbond/md5-js/). function _md5() { if ( typeof window.md5 === "function" ) { // return value hashed fingerprint string. return md5( _raw() ); } else { // if `window.md5()` isn't available, error thrown. throw "md5 unavailable, please http://github.com/wbond/md5-js/"; } } // and, since i'm lazy, calling `$.fingerprint()` return hash // right away, without need other calls. return _md5(); } })(jquery);
Comments
Post a Comment