... at least that's what I think I'm trying to do...
what I have is this function which reads the JSON attributes of crab_house, a JSON object:
but what I would like to do is something like:
is it possible?
thanks in advance...
what I have is this function which reads the JSON attributes of crab_house, a JSON object:
Code:
$.getJSON( '../map/clients.json', function(data) { $.each( data.[COLOR="Red"]crab_house[/COLOR], function(i, m) { bizAdd= new google.maps.LatLng(m.lat, m.lng); var message =m.html; createMarker(bizAdd,message); });
Code:
var bizId='crab_house'; $.getJSON( '../map/clients.json', function(data) { $.each( data.[COLOR="Red"]bizId[/COLOR], function(i, m) { bizAdd= new google.maps.LatLng(m.lat, m.lng); var message =m.html; createMarker(bizAdd,message); });
thanks in advance...
Comment