Please help me! I have element "input" on map, add event "blur" listener by addDomListener. IE behavior: if I put cursor in "input", then press tab or click on map, that fired event "blur". Everything ok! But! FF behavior: if I put cursor in "input", then press tab, that fired event "blur". But if I click on map, that event "blur" NOT fired :( what am I doing wrong? Thank's
Code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/ TR/html4/strict.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>Untitled Document</title> <style type="text/css"> html { height: 100% } body { height: 100%; margin: 0px; padding: 0px } #map_canvas { height: 100% } #in1 { position:absolute; left:100px; top:20px; } </style> <script type="text/javascript" src="http://maps.google.com/ maps/api/js?sensor=false"> </script> <script type="text/javascript"> function init(){ var latlng = new google.maps.LatLng(-34.397, 150.644); var myOptions = { zoom: 8, center: latlng, mapTypeId: google.maps.MapTypeId.ROADMAP }; var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions); google.maps.event.addDomListener(document.getElementById("in1"), 'blur', function(){ alert("Event fired!"); }); } </script> </head> <body onload="init();"> <div id="map_canvas"> </div> <div id="test"><input id="in1" /> </div> </body> </html> -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
