Hallo,
Every first time i call my map page phoca map deliver source code fragments on page. I thing the fragments is a part of json-object. When I run the page again immediately, then this is fine and the map will be shown. Does anyone know the reason?
See live page http://www.optimess.com/en/company/location.html
FireBug HTML output:
<div class="pmgps">
<table border="0">
<tbody>
</table>
</div>
' }); google.maps.event.addListener(markerPhocaMarker1PlgPM1, 'click', function() { infoPhocaWindow1PlgPM1.open(mapPhocaMapPlgPM1, markerPhocaMarker1PlgPM1 ); }); phocaDirServicePlgPM1 = new google.maps.DirectionsService(); phocaDirDisplayPlgPM1 = new
...
pPIPlgPM1.style.display='block'; var from64PlgPM1 = Base64.encode(fromPMAddressPlgPM1).toString(); var to64PlgPM1 = Base64.encode(toPMAddressPlgPM1).toString(); pPIPlgPM1.innerHTML = '
<div class="pmprintroutelink">
<div style="clear:both"></div>
'; phocaDirDisplayPlgPM1.setDirections(responsePlgPM1); } else if (google.maps.DirectionsStatus.NOT_FOND) { alert("One of the locations specified in the requests's origin, destination, or waypoints could not be geocoded."); } else if (google.maps.DirectionsStatus.ZERO_RESULTS) { alert("No route could be found between the origin and destination."); } else if (google.maps.DirectionsStatus.MAX_WAYPOINTS_EXCEEDED) { alert("Too many DirectionsWaypoints
...
function initializePlgPM1() { tstPhocaMapPlgPM1.setAttribute("oldValuePlgPM1",0); tstPhocaMapPlgPM1.setAttribute("refreshMapPlgPM1",0); tstIntPhocaMapPlgPM1 = setInterval("CheckPhocaMapPlgPM1()",500); } google.setOnLoadCallback(initializePlgPM1); //]]>
each first call after long time PM deliver source code parts
-
- Phoca Newbie
- Posts: 1
- Joined: 11 Dec 2014, 10:05
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: each first call after long time PM deliver source code p
Hi, on your site, there are javascript errors which needs to be solved:
https://www.phoca.cz/documents/16-joomla ... -conflicts
When I see the html/js code, I see the description in marker which does not have closed tag, try to see the html of the description in editor, maybe this is the issue which causes the javascript error.
Jan
https://www.phoca.cz/documents/16-joomla ... -conflicts
When I see the html/js code, I see the description in marker which does not have closed tag, try to see the html of the description in editor, maybe this is the issue which causes the javascript error.
Jan
If you find Phoca extensions useful, please support the project