Hi , Google map implementation is done for an application. And i'm using gMaps4jsf API for google map implemataion . Google map is display in popup.
Code for Popup i e 'googleMapPopup.jsp <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%> <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%> <%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%> <%@ taglib uri="http://myfaces.apache.org/sandbox" prefix="s"%> <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%> <%@ taglib uri="http://code.google.com/p/gmaps4jsf/" prefix="m" %> <f:subview id="map"> <h:form id="mapForm"> <m:map width="583px" height="550px" latitude="#{mapBean.latitude}" longitude ="#{mapBean.longitude}" type="G_NORMAL_MAP" zoom="9" > <m:marker latitude="#{mapBean.latitude}" longitude="#{mapBean.longitude}" /> <m:mapControl name="GLargeMapControl" position="G_ANCHOR_TOP_LEFT" /> <m:mapControl name="GMapTypeControl" position="G_ANCHOR_TOP_RIGHT"/> </m:map> </h:form> </f:subview> Main Page <script> function getMap(){ var lat = document.getElementById(formName+":latitute").value; var lon = document.getElementById(formName+":longitude").value; if ((lat!='' && lat!=''!= null) && (lon!='' && lon != null)){ openPopupWindow2('googleMapPopup.jsf?latitude='+lat+'&longitude='+lon, '600' ,'550','YES'); } var popupWin = null; function openPopupWindow2(url,width,height,scrolls){ popupWin=window.open(url,'so','toolbar=0,scrollbars='+scrolls+ ',location=0,status=0,menubars=1,resizable=0,width='+width+',height=' +height+',top=150,left=100,maximize=true,resizable=yes'); popupWin.focus(); } </script> <f:subview> <h:form> <h:outputLink value="javascript:getMap()" title="View Map"> </f:subview> </h:form> I'm getting script error when i click on View Map. Tried to reload the page by pressing Shift+Ctrl +F5. Still getting same Error in IE 6. On Fri, Dec 19, 2008 at 2:01 PM, warden [Andrew Leach - Maps API Guru] < [email protected]> wrote: > > MSM wrote: > > Hi, > > i've implemented google maps using gMaps4JSF. and its working fine > > with IE 7 and Firefox . But when i try to access the page in IE 6. I'm > > getting " > > Problems with this Web Page might prevent it from being displayed > > > > Url: http://abc.com/map.jsp?lat=12&lon=77 > > > > Need help > > If I try that url I don't get anything like a map. Is it right? > > IE6 has an aggressive caching policy and will happily use a corrupt > cached script. Try using Ctrl-Shift-F5 to force a reload; or clear > your cache and try again. > > Andrew > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" 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-API?hl=en -~----------~----~----~----~------~----~------~--~---
