So this one honestly has me scratching my head. I have a single line of code in my Javascript that does not work when deployed to our test server, but works just fine when run locally from Visual Studio. There’s also no problems when running the function in Chrome, regardless of location. It’s just a simple line to get the last character of a string, so it’s really confusing me why it just stopped working. I’m running IE8 both locally and on the test server (Same machine is browsing, just moved the host).
WhichCredit = WhichCredit[WhichCredit.length - 1];
It may be in the same browser, but are you certain it’s displaying in the same mode in both instances?
Is it possible that it’s displaying in IE7 compatibility mode in one case? this would make it run an older version of the JS interpreter (among other things), which could cause the kind of effect you’re seeing. To check this, open Dev Tools (F12).
Hope that helps.