[jQuery] Google map throwing exception
<div>Hi All,</div>
<div> </div>
<div>I am trying google map with JQuery Model window.</div>
<div> </div>
<div>I have written some script to view google map with model window. Bellow steps are </div>
<div> </div>
<div>1 - Click on link, (onclick event I am calling a javascript function to show google map with model window)</div>
<div> </div>
<div>function showGoogleMap(id,lat,long){
try{
map = new GMap2(document.getElementById("map"));
var point = new GLatLng(lat, long); //default loaction to india
map.setCenter(point, 8);
map.addControl(new GMapTypeControl(1));
//map.addControl(new GLargeMapControl());
map.addControl(new GScaleControl(200));
var marker = new GMarker(point);
map.addOverlay(marker);
map.setCenter(point, 4);
//marker.openInfoWindowHtml(address);
}catch(e){
alert('Exception '+e);
}
$("#googleMap").modal();
}</div>
<div> </div>
<div>2 - After occuring above function its giving exception</div>
<div><span class="objectBox objectBox-errorMessage hasTwisty hasBreakSwitch"><strong><font color="#ff0000">a is null</font></strong>
<div class="errorTrace"></div>
<div class="errorSourceBox errorSource-exec"><span class="errorSource"><strong><font color="#ff0000">function zh(a){for(var b;b=a.firstChild;){yh(b);a.removeChild(b)}}</font></strong></span></div>
<div class="errorSourceBox errorSource-exec"><span class="errorSource"><strong><font color="#ff0000"></font></strong></span> </div>
<div class="errorSourceBox errorSource-exec"><span class="errorSource"><font color="#000000">Any body have any Idea for this issue...</font></span></div>
<div class="errorSourceBox errorSource-exec"><span class="errorSource"></span> </div>
<div class="errorSourceBox errorSource-exec"><span class="errorSource">Plz help </span></div></span></div>
<div><br clear="all"> </div>
<div></div>
Regard
Mohammad.Tareque