Reputation: 53
Is there anything radically different with iOS 4.2.1 vs. previous and newer versions of iOS with regard to JavaScript?
I am testing a site and on every browser and device I test the jQuery is working fine, but it's being completely ignored in iOS 4.2.1 on my iPod Touch test device.
I can provide code examples if need be. I am using the following:
https://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js
Any insight is greatly appreciated.
thanks!
Upvotes: 1
Views: 356
Reputation: 65
I ran into this same problem just now:
I like to now use this style of importing scripts
src="//code.jquery.com/jquery.min.js"
notice the // if the page loading the script is https it will do https otherwise http
Upvotes: 0
Reputation: 53
I ended up finding the issue in this particular case. I had a lot of code to strip away, so I set up a test page with nothing but my jquery calls and the most basic jquery alert function.
It turns out out it was a difference between http and http*s*. As soon as I removed the "s", the reference error went away in the debug console.
I hope this helps someone else!
Upvotes: 2