joer80 Posted October 8, 2014 Share Posted October 8, 2014 I would be forever grateful if someone can help me figure out this javascript question! On my homepage, it works fine on any decently new browser, but on ie9 when a change the state, it does not populate the locations! Thanks in advance! goac.greggorrmarine.com Link to comment Share on other sites More sharing options...
Martijn Geerts Posted October 8, 2014 Share Posted October 8, 2014 It's kinda weird you wrap the json data in a document ready function and put it in as last script. Link to comment Share on other sites More sharing options...
joer80 Posted October 8, 2014 Author Share Posted October 8, 2014 I think I have it figured out. I ie9 does not like extra trailing commas in json. Also, it did not like my console.log. I removed those out and it appears to work now! It's kinda weird you wrap the json data in a document ready function and put it in as last script. What should I change? Thanks! 1 Link to comment Share on other sites More sharing options...
Martijn Geerts Posted October 8, 2014 Share Posted October 8, 2014 it's just data, best place it above all scripts, so scripts can access it. then there's no need for the $(function(){}). when the dom reached the scripts your data is already loaded. No need to wait Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now