swipe.min.js problem with IE9

4513
2
11-19-2013 09:44 AM
EdwardSohn1
New Contributor
I am using one of the webtemplates for javascript (swipe), and it loads swipe.min.js file.
When I run it in VS studio with development web server, it's fine, but when I deploy to web server and run it, it gives an error with loading swipe.min.js file.

SCRIPT87: Invalid argument.  spin.min.js?v=1.1&_=1384887668091, line 2 character 1070

This only occurs with IE 9 however, works fine with Firefox.
0 Kudos
2 Replies
EdwardSohn1
New Contributor
I put in workaround in spin.min.js (v1.2.5) for now:

// At top
function isIE(){var myNav=navigator.userAgent.toLowerCase();return(myNav.indexOf('msie')!=-1)?parseInt(myNav.split('msie')[1]):false;}

replaced: a.sheet||a.styleSheet
with: (isIE()?a.styleSheet:a.sheet||a.styleSheet)

i probably should upgrade with the latest version of spin.min.js at some point.
0 Kudos
JENNIFERHIGGS
New Contributor III

I am having this problem making it work.  I have tried your solution but must be doing something wrong.  Could I by chance get a copy of your file?

0 Kudos