I found a fine answer to my question in a Michael Geary post but the
link to which his post refers (in an earlier post in the thread) no
longer exists and I have not figured out the detailed references
required (fromAddress, element, and maybe others). Michael's post says
the following.


*****************************************
Add this function to your code:

    function whenReady( id, callback ) {
        var interval = setInterval( function() {
            var element = document.getElementById( id );
            if( element ) {
                clearInterval( interval );
                callback( element );
            }
        }, 10 );
    }

Then, in your resetPvaMarkerInfo() function, immediately after you
call openInfoWindowHtml(), add this code:

    whenReady( 'fromAddress', function( element ) {
        element.focus();
    });

The whenReady() function takes an element ID and repeatedly checks to
see if that element exists. When the element becomes available, it
calls the callback function with that element as an argument.
*****************************************

Look for the following code in my link twice near line 86.
I have tried 'data' for 'fromAddress' and both 'iwform' and 'marker'
for 'element', but without success.

marker.openInfoWindowHtml(iwform);

http://schott.selfip.net/~brian/mapswdelete/rideshare.html

Help, please.

Brian in Atlanta
--~--~---------~--~----~------------~-------~--~----~
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