> From: thebrianschott
> 
> Here's a new thought. Is the problem that there are multiple 
> markers on my page and the one form does not know which one 
> will be opened first and therefore it cannot know which form 
> to focus upon? If this is the problem, then can it be solved, 
> perhaps using "Binding Events to Object Methods" in the documentation?

No, there's just one infowindow. When you create a new one, it replaces any
previous one.

And you're not setting the focus to a marker anyway; you're setting it to
the input element in your infowindow.

> Mike, thank you for answering my questions about ids, names 
> and elements, etc. I take it from what you say that the whenReady
> (id,.) can refer to an input element provided it has an id assigned.

It uses document.getElementById(), so it needs an id attribute on the
element. Other than that, it should work with any type of element.

> The whenReady(.,callback) is still a mystery, though. Does
> "callback" remain "callback" for my application or is there
> some other word unique to my application that should be
> substituted for "callback"?
> I assume that "callback" is "callback" and is just a sort of 
> placeholder.
> If that is incorrect, please advise.

Do you have a good book on JavaScript? Or some good tutorial and reference
sites where you can read up on this? I don't want to overstay our welcome
here by spending too much time on JavaScript basics (which are not the focus
of this group).

I recommend David Flanagan's _JavaScript: The Definitive Guide_. It has good
introductory sections that explain these basics, along with a complete
reference.

To answer the question briefly, though: 'callback' is a function parameter.
The name has no significance, and if you change it (as long as you change
the name everywhere it's used) it will have no effect on the operation of
the function. The same is true of local variables: What you call them makes
no difference.

-Mike


--~--~---------~--~----~------------~-------~--~----~
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