Thanks for posting a link!
Are you checking for Javascript errors?
I found these right off:
1. ReferenceError: Can't find variable: custonIcons line 41
custonIcons["college"] = iconGreen;
Looks like a type.
Can't find variable: saveData line 136
<input type='button' value='Save & Close' onclick='saveData()'/></td></
tr>";
This is a scoping issue. The structure of your script has all of your
functions tucked inside the conditional block:
if (GBrowserIsCompatible()) {
And that block is inside the load() function.
When the infowindow for a new marker opens, the HTML and JS in there
can't see the functions you define, including saveData().
Try moving the functions out of the surrounding structures I
mentioned.
Other adjustments in variable declarations may also be needed.
Most web browsers provide at least a minimal error console or
something similar to check for script errors. The goal is to have that
window open, operate your map page and have nothing show up as errors
or warnings.
On May 5, 8:08 am, Samsath <[email protected]> wrote:
> Hallo there,
>
> i used the two tutorials "Using PHP/MySQL with Google Maps" and "From
> Info Windows to a Database: Saving User-Added Form Data" but when I
> put the two codes together, the markers information is retrieved from
> the mysql, and a info window does appear but the new marker
> information does not get sent to the database, how can it be solved.
>
> Here is the webpagehttp://samhipwell.org.uk/lt/map6.html
>
> 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
-~----------~----~----~----~------~----~------~--~---