Ok, I have hit another snag. I am trying to accomplish
results like Mike's example_store.htm (esh) collecting a
user's information regarding a new marker with
an input form. However, I am putting my input form
on the html page using PHP instead of in the marker overlay.
In the function "send(form)" below look for the following three
lines; I never get the prompt from "alert("after"), and would
like to fix that.
alert("before ");
var tempmess = form.message.value;
alert("after ");
*******************************************
function send(form) {
if (dog) {
alert("You must select a point before clicking Submit");
} else {
var templat = Math.round(marker.getLatLng().lat()*100000)/100000 ;
var templng = Math.round(marker.getLatLng().lng()*100000)/100000 ;
alert("before ");
var tempmess = form.message.value;
alert("after ");
var url = "gmapswinfo.php?Submit=foo&lat=" +templat+ "&lng="
+templng+
"&message=" +tempmess; GLog.write("About to send "+url+ " to
the server");
GDownloadUrl(url,function(){});
alert("Your location has been recorded, thank you. Tell others
this link, please.");
}
*******************************************
echo "<form>";
echo "<input type=\"text\" ";
echo " name=\"message\" ";
echo " size=\"30\" ";
echo " maxlength=\"30\" ";
echo " /> \n";
echo "<input type=\"button\" ";
echo " onclick=\"send(this); return false\" ";
echo " value=\"Submit\" /> \n";
echo "</form>";
*******************************************
Actually, I kind of like the way Mike does it in
esh, but what I don't like about esh is if the user
clicks on the map and then clicks again on the
map at a different location, multiple markers
with "icon:G_START_ICON"s are produced
on the map and if the marker with an info form
is dragged, the marker drags, but not the info
form. I want the second click to inform the user
that s/he needs to drag the first one, instead and
I want the info form to move with the dragged
marker.
Can you help, please?
Brian
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---