Changing/updating a Html file.
Posted: Wed Feb 10, 2016 12:51 pm
I am working on a stack kindly provided in another post, some time ago.
The stack updates and launches a HTML file. I cannot fathom how to change that HTML file to my own file or edit the original file with my own code. I have tried changing the name of the HTML file to match that of the one Klaus used, however the HTML file always reverts back to the original code or creates a new HTML.
Unfortunately i cannot upload the file, however i have put the code used above.
Any help would be greatly appreciated.
The stack updates and launches a HTML file. I cannot fathom how to change that HTML file to my own file or edit the original file with my own code. I have tried changing the name of the HTML file to match that of the one Klaus used, however the HTML file always reverts back to the original code or creates a new HTML.
Code: Select all
on googleMap atraiter
put the uGoogleMap of this stack into lamorce
put empty into lesData1
put empty into lesData2
set itemdelimiter to tab
repeat with i = 1 to the number of lines of aTraiter
put item 1 of line i of atraiter into leNom
put item 2 of line i of atraiter into lesCoordonnees
put "var latlngPos"&i&" = new google.maps.LatLng("&lesCoordonnees&");"&cr after lesData1
put "var marker = new google.maps.Marker({"&cr after lesData2
put "position: latlngPos"&i&","&cr after lesData2
put " map: map,"&cr after lesData2
put "title: ""e&leNom"e&"});"&cr after lesData2
end repeat
if the number of lines of aTraiter > 5 then
replace "[DATAZOOM]" with "zoom: 6," in lamorce
else
replace "[DATAZOOM]" with "zoom: 10," in lamorce
end if
replace "[DATA1]" with lesData1 in lamorce
replace "[DATA2]" with lesData2 in lamorce
put the effective filename of this stack into tPath
set the itemDelimiter to slash
delete last item of tPath
put "file:"&tPath&"/carte.html" into abc
put lamorce into url abc
launch url "file:"&tPath&"/carte.html"
end googleMap
Any help would be greatly appreciated.