I have really screwed up by altering my code while you all
have very kindly been looking at it. So for now please do
not go to my link, while I get reoriented.

As you can tell I am very confused. Some of my questions are as follows.
1 Do I have to give give a name to a form in this case?
2 Do I have to give give an id to a form in this case?
3 Do I have to give give a name to a form input in this case?
4 Do I have to give give an id to a form input in this case?
5 What is an element: the form or the input?

In Rossko's search references it seems that all forms -- maybe not
their inputs -- exist when onload occurs, but not in my case, I don't
believe. The form only exists after the user clicks on the map and
opens a new marker.

Thank you, all. I will try to produce a stable link soon and let you
know when I have done that, just in case anyone is still willing to
deal with me.

On Sat, Nov 22, 2008 at 1:44 PM, Michael Geary <[EMAIL PROTECTED]> wrote:
>
> Brian, the code on your page does not match what you posted below. The code
> below looks like it should work, but the code on your page definitely won't.
> Check which element has the id="data" attribute.
>
> Also, regarding this bit of code (repeated twice):
>
>>      86 marker.openInfoWindowHtml(iwform);
>>      87 whenReady( 'data', function( marker) {
>>      88   marker.focus();
>>      89 });
>
> I would suggest not using the variable name 'marker' in the whenReady() and
> its callback, simply because that variable will not contain your marker, it
> will be the element whose id is 'data'. In fact, in the code on your page
> you call this variable 'data', which is better.
>
> Elsewhere on your page you have this code:
>
> marker.openInfoWindowHtml(delform);
> whenReady( 'delform.submit', function( element ) {
> element.focus();
> });
>
> That won't work at all. whenReady() takes an element ID as its first
> parameter. I don't know what 'delform.submit' is supposed to be, but it
> doesn't seem to be the ID of any element. These are not CSS selectors, just
> straight ID attributes.
>
> Finally, a suggestion regarding code like this:
>
>>      84 GEvent.addListener(marker, "click", function() {
>>      85 lastmarker = marker;
>>      86 marker.openInfoWindowHtml(iwform);
>>      87 whenReady( 'data', function( marker) {
>>      88   marker.focus();
>>      89 });
>>      90 });
>>      91 noMore = true;
>>      92 map.addOverlay(marker);
>>      93 marker.openInfoWindowHtml(iwform);
>>      94 whenReady( 'data', function( marker) {
>>      95   marker.focus();
>>      96 });
>
> Could you indent your code in the conventional manner? It would make it much
> easier to follow. See the whenReady() function for an example of how to
> indent JavaScript code.
>
> -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