I have html document (one file) for calling google map.
It works with this part of code in html:
var locations = [
[ -33.890542, 151.274856],
[ -33.923036, 151.259052],
[ -34.028249, 151.157507]
]
var marker, i;
for (i = 0; i < locations.length; i++) {
marker = new google.maps.Marker({
position: new google.maps.LatLng(locations[i][0], locations[i][1]),
map: map
});
But I would like to make connection in that html file to the database DB2 on my server 192.168.0.67 with port 50005 and username db2user password db2pass
My database is MAXIMO, and TABLE is TICKET. Attributes are LAT and LNG with this values (there can be more than 3 values for locations variable)
Can someone help me how to create connection and to retrieve that values for locations for all records from TICKET table?
Thanks