In addition: try to use an alert in your load function

alert(this);

That (namely the window object) is probably not that what you want
pass to your function process().





On Mar 26, 7:53 pm, "[email protected]" <[email protected]>
wrote:
> On Mar 26, 11:35 am, Harshana85 <[email protected]> wrote:
>
> > Hi,
>
> >http://harshanatest.site40.net/000tag2.html
>
> > The function doenst get called when I hit the submit button.
> > I have use in my form,
> > '<form action="#" onsubmit="process(this); return false">'
>
> > I also include a alert("testtting") in side the function in order to
> > check but no alert giving.
>
> > Whats the wrong with my code. Please some one tell me?
>
> It is not an API problem but a general javascript/html issue.
> Your process function is local to the load function.
> onsubmit functions executes in the global scope, the process function
> does not exist there, nor does lastmarker.
>
> This may help, from Mike Williams' tutorial:
> Part 1 Scopehttp://econym.org.uk/gmap/scope.htm
>
>   -- Larry
--~--~---------~--~----~------------~-------~--~----~
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