Hi Mike,
if the first command in the function is  'return', then your
createMarker is although  running.
If I rename 'myCreateMarker', then an error appears 'function not
found'.

In my old project without your lib, I use ajax to feed the infowindow
by calling:
GEvent.addListener(marker, "infowindowopen", function(m) {
                insertFlash(marker.playlist);
                new 
Ajax.Updater($('zeit'),'/content/pages/kontakt/getzeit.php');
                if (!pe)  pe = new PeriodicalExecuter(getTime,14);
         });

It is very important for me to implement tis functionality in my
project with your lib. It is  displaying of solarenergy:
http://tools.webmasterei.com/solarmonitor/
In this vesion comes a static (dynamic buld) picture. In the goal ajax
feeds every minute a new graph.

Here my not running code:
 var mmap;
   mmap=new GMap2(document.getElementById("map"));
   mmap.setCenter(new GLatLng( 53.583222, 10.021180),17);
   mmap.addControl(new GSmallMapControl());
   mmap.setMapType(G_HYBRID_MAP);
   var exml = new EGeoXml("exml", mmap, "kampnagelsolar.xml", {
                createmarker:myCreateMarker,
                sidebarid:"the_side_bar",
                iwwidth:330,
                iwheight:250,
                preloadimages:true,
                sortbyname:true,
                });
   exml.parse();

   function myCreateMarker(point, name, desc, style) {
        var marker = new GMarker(point, {draggable:true});
        GEvent.addListener(marker, "infowindowopen", function(m) {
                alert(marker); // this code is never running
        });
        mmap.addOverlay(marker);

    }


On 29 Mrz., 22:14, Mike Williams <[email protected]> wrote:
> Wasn't it Kontaktschmied who wrote:
>
> >Why the function  myCreateMarker doesnt run?
>
> Many browsers have single-pass parsing. At the time that you call
> EGeoXml, your myCreateMarker variable is undefined in such a browser.
>
> --http://econym.org.uk/gmap
> The Blackpool Community Church Javascript Team
--~--~---------~--~----~------------~-------~--~----~
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