search for: addsplitmark

Displaying 1 result from an estimated 1 matches for "addsplitmark".

Did you mean: addsplitmarker
2007 Dec 22
1
Ajax.Updater and JavaScript functions
...ction(splitNumber) { var splitJSON = <? echo json_encode($m_array); ?>; var latlng1 = new GLatLng(splitJSON.data[splitNumber].start_lat, splitJSON.data[splitNumber].start_lon); var latlng2 = new GLatLng(splitJSON.data[splitNumber].fin_lat, splitJSON.data[splitNumber].fin_lon); addSplitMarker(latlng1,latlng2); } </script> As you can see there is some PHP in there to insert a JSON object, which is different on each call. On the first call the JSON is evaluated correctly and things work fine. On the second call the HTML is generated correctly ( checked via FireBug ), but the...