Daniish
asked on
how do
Hello,
Not too sure on the correct terminology but...
Markers for my site are constructed with a series of attributes using PHP (see attached), one of which is reg_id. I would like to use the reg_id of the current marker to retrieve the following (where reg_id = id):
region.getAttribute("lat")
region.getAttribute("lng")
region.getAttribute("minzl ")
This will allow me to build the following function dynamically:
GEvent.addListener(map, 'infowindowclose', function() {
map.setZoom(7);
map.panTo(new GLatLng(55.986092, 10.656738));
});
Any chance someone can look at my site & let me know how this is done?
www.globexposure.net/index_original.php
Many thanks
read.php.txt
Not too sure on the correct terminology but...
Markers for my site are constructed with a series of attributes using PHP (see attached), one of which is reg_id. I would like to use the reg_id of the current marker to retrieve the following (where reg_id = id):
region.getAttribute("lat")
region.getAttribute("lng")
region.getAttribute("minzl
This will allow me to build the following function dynamically:
GEvent.addListener(map, 'infowindowclose', function() {
map.setZoom(7);
map.panTo(new GLatLng(55.986092, 10.656738));
});
Any chance someone can look at my site & let me know how this is done?
www.globexposure.net/index_original.php
Many thanks
read.php.txt
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Hmm, not sure I understand. You may want to have read.php just send back a test message like "I'm Here" so that you know whether or not the request.open line is executing correctly and getting back the info from read.php. If it does, then you should at least know if it's a problem with the request.open or a problem with read.php.
ASKER
One last point though...
I have the following call to read.php on line 170:
request.open("GET", "http://www.globexposure.net/includes/read.php", true);
meanwhile, the function where i'd like to call on this query is on line 107 - will i have access to the file, of not how do i fix this?
Cheers