
March 2nd, 2013, 08:22 AM
|
 |
Contributing User
|
|
Join Date: Sep 2012
Posts: 168
Time spent in forums: 20 h 30 m 23 sec
Reputation Power: 1
|
|
|
Jquery JSON & Each not working in IE
Hi. I have the following code which gets data from an external json, all working fine on firefox. But on IE it shows nothing.
Any ideas?
( i named it myjsonfile.json for privacy purposes )
Code:
<script>
$(document).ready(function(){
$.getJSON('http://myjsonfile.json', function(data) {
$.each(data.Parkings11.parkings, function() {
$('body').append('<p>' + this.description + ' : ' + this.availableCapacity + '</p>');
});
});
});
</script>
|