If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

hmm. Well, kind of. But the next problem was that the window wanted to open before the text had come back from the ajax request. So the content setting has to go into the callback function. This seems to work, anyway, although I still think it makes more sense just to get all the data on page load...

Hi Everybody,
Thanks for your answers to my problem « assigning a js variable to a php variable » some days ago. Here’s an update of what I finally succeeded doing. In fact I made it work . Here’s how :

Here I have to switch to JavaScript to display the Google Map and one marker per station. To do so, I have to recuperate the above PHP information into JS information. This was my issue when I asked for help. Here’s how it works :

5) From this point on everything is Javascript, and the map is displayed with the adequate information.

You can see the result here http://www.volets10.fr/V10metartaf_carte.php . I preferred « mouseover » to « click ».
(PS. If you are interested, some parameters may be applied : ?reg=x, where x is a combination of 1,2,3,4,5 corresponding to the french telephone regions. For example : ?reg=125 will display stations from Paris region, north-west and south-west. You can add &max=y where y is the max. number of stations per region to display. You can also ask for stations individually by their OACI codes. Example : ?oaci=lfpg,lfpt,lfrh will display Charles de Gaulle, Pontoise and Lorient) .