each first call after long time PM deliver source code parts
Posted: 11 Dec 2014, 10:19
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); //]]>
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); //]]>