On Mar 24, 11:18 am, Chris Moody <[email protected]> wrote:
> Thanks! I hadn't spotted that, however adding the " doesn't seem to
> have any effect!? I've changed the line to:
>
> var delhtml = 'Value: '+value+'<BR><BR>Score: '+scores+'<BR><BR><a
> href="edit.php?markerid='+markno+'">Edit value and score</a>
> <BR><BR><a href="delete.php?markerid='+markno+'" onclick="return
> deletepopup('delete.php')">Delete Marker</a> ';
The issue is that you are using ' ' to delimit the delhtml string AND
you want ' ' inside the string around 'delete.php'.
Those quotes need to be escaped so the browser doesn't think they are
part of defining delhtml. Currently it's getting to deletepopup(' and
finishing the string there; it then finds
delete.php')">Delete Marker</a>'
which doesn't mean very much in the context.
deletepopup(\'delete.php\')
--
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.