There is no forEach in IE. Either do a regular loop or use $.each.
-- Yehuda On 12/28/06, Vincent Majer <[EMAIL PROTECTED]> wrote:
Hi, I'm working on the plugin for jquery : http://olbertz.de/jquery/googlemap.html it's really great with firefox.. but it doesn't work in IE... I've made some tests and it seems that the problem comes from this foreach : locations.forEach(function(element, index, array) { var marker = new GMarker(new GLatLng(element.latitude, element.longitude), {title: element.name}); map.addOverlay(marker); GEvent.addListener(marker, 'click', function() { marker.openInfoWindowHtml('Name: <b>'+element.name+'</b><br />Latitude: <b>'+element.latitude+'</b><br />Longitude: <b>'+element.longitude+'</b>'); }); link = '<a href="#" onclick="moveMapTo('+index+')">'+element.name+'</a><br />'; $('p#location_list').append(link); }); locations.forEach seems to cause problems with IE... Is there a workaround ? thanks in advance _______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
-- Yehuda Katz Web Developer | Wycats Designs (ph) 718.877.1325
_______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
