Displaying 1 result from an estimated 1 matches for "splitjson".
2007 Dec 22
1
Ajax.Updater and JavaScript functions
...blem I have is that if I call the Ajax.Updater again then the
javascript in the second call does not seem to "refresh" that in the
first call.
The Javascript has something along the lines of :
<script type="text/javascript">
splitInfo = function(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);
}...