Thanks for your help. I will try your suggestion soon.

On Aug 3, 1:46 pm, Rossko <[email protected]> wrote:
> >http://bartoliniville.us/sc/schools/extraindex.htmland
>
> I get a javascript error
>      " missing ] after element list "
>
>    var infoTabs = [
>    new GInfoWindowTab("School", ....),
>        If (GXml.value(locations[i].getElementsByTagName("more")[0]) >=
> a)
>             {new GInfoWindowTab("extra" ...) }
>     ];
>
> You can't put an 'if' statement (note javascript is case sensitive) in
> the middle of an array declaration.
> Try something more like
>     var infoTabs = [] ;
>     infoTabs.push( new GInfoWindowTab( .... ) );
>     if (condition)
>         { infoTabs.push( new GInfoWindowTab( .... ) ) }

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