Taken this way, GDownloadUrl ( "myscript.php? Type =" + foo, function
(doc2)
it does not work.

Sorry, but my page is only local.
Here is my function:
in the header of the page

function chargeMarque (mm, mr, action, map, sidebar, mapZoom, url) (
GDownloadUrl (script.php ", function (doc2)
(
Var xmlDoc2 = GXml.parse (doc2);
/ / alert (document.getElementsByName ( "Services"). value);
var marqueSuisse = xmlDoc2.documentElement.getElementsByTagName
( "Position");
for (var i2 = 0; i2 <marqueSuisse.length; i2 + +)
(
/ / latlnged = new GLatLng (aMarque [i] [ "lat"], aMarque [i]
[ "long"]);
Var bounds = map.getBounds ();
SouthWest bounds.getSouthWest var = ();
NorthEast bounds.getNorthEast var = ();
var = new GLatLngBounds contener (Southwest, Northeast);
var lat = parseFloat (marqueSuisse [i2]. getAttribute ( "lat"));
var lng = parseFloat (marqueSuisse [i2]. getAttribute ( "lng"));
Latlnged var = new GLatLng (lat, lng);

       Sidebar.innerHTML + = "<b> menu </ b>";

If (action == "mark") (
var marker = createMarker (latlnged, html, puceMarque);
Marque.push (marker);
) / / If (action == "mark") (
) / / For (var i = 0; i! = Empl

if (action == "mark") (mr.addMarkers (Brand, 9.17);
Mr.refresh ();)

)); / / GDownloadUrl (script.php ", function (doc2) (

) / / ChargeMarque function () (

in the body of the page>

<td> <a href="#" onclick="chargeMarqueur(mm, mr,'sidebar', map,
sidebar, mapZoom,'affiche')"> opt1 </ a> </ td>
<td align="left"> <input id = "options" name = "options" value = "opt"
onclick = "chargeMarqueur (mm, mr, 'sidebar', map, sidebar, mapZoom,
'display');" type = "checkbox"> </ td>
<td> <a href="#" onclick="chargeMarqueur(mm, mr,'sidebar', map,
sidebar, mapZoom,'affiche')"> opt2 </ a> </ td>
<td align="left"> <input id = "options" name = "options" value = "opt"
onclick = "chargeMarqueur (mm, mr, 'sidebar', map, sidebar, mapZoom,
'display');" type = "checkbox"> </ td>


in the function -> function load () (

GEvent.addListener (map, "moveend", function (go) (
     sidebar.innerHTML = "";
     var mapZoom = map.getZoom ();
     chargeMarqueur (mm, mr, "sidebar", map, sidebar, mapZoom,
"display");
));


Thank you for your help
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to