On Aug 16, 12:07 pm, Shawn <[email protected]> wrote:
> Hello,
>
> I'm new to JavaScript and the Google map API.
>
> I need to pull more fields from my database. Once I assign a new
> variable in my JavaScript to pull from a field, the map will return
> NULL -- or in the case of displaying on info window tabs, will not
> allow the info window to be displayed. The field "phone" in my
> database is of the exact same structure as name and address.
>
> Search "Portland, Or" to populate data.
>
> Link working correctly without new fields (beyond name and 
> address):http://graticle.com/mapping/index5.html
>
> Link with the problem:http://graticle.com/mapping/index4.html

What do we need to do to get the database to return results?
(never mind, all the results seem to be in "Pacific Beach, CA")

the only difference between those two pages is this line:

  tabs.push(new GInfoWindowTab('Phone', phone));
  tabs.push(new GInfoWindowTab('Phone', address));

the "phone" variable is not defined...
I suggest you learn to look at the javascript console (Firefox is
probably easier to use than Chrome, but Chrome may have gotten
better), also you probably should review some javascript tutorials.

There is some information about troubleshooting in the documentation:
http://code.google.com/apis/maps/documentation/index.html#Troubleshooting

and in Mike Williams' tutorial:
http://econym.org.uk/gmap/

  -- Larry



>
> ###
>
> I am using Chrome 2.0.172.39
> Operating System: Vista
>
> My goal would be to display many fields such as: phone, hours of
> operation, etc.
>
> I have searched and searched for this problem, and maybe I just don't
> know the language to search for it in. So if this has been answered
> already, I would greatly appreciate it if you would send me in that
> direction.
>
> Thank you!
--~--~---------~--~----~------------~-------~--~----~
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