On Oct 7, 9:44 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> The question is why does the search function work on 
> http://www.hardins.com/retail2.htm,
> and not on http://www.hardins.com/retail4.htm.

Because (as Andrew said in his post) the showAddress function in
http://www.hardins.com/retail2.htm is defined in the global context
(outside of any function context) and is defined locally to the load
function in http://www.hardins.com/retail4.htm.

(move it outside of the load function to put it in the global context)

  -- Larry


>
> On Oct 7, 11:42 am, "warden [Andrew Leach - Maps API Guru]"
>
>
>
> <[EMAIL PROTECTED]> wrote:
> > On Oct 7, 4:29 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
>
> > > Then how does this work?
>
> > Not quite sure what the question is there. The form runs the function
> > called "showAddress()" because that function is defined in global
> > context -- that is, not inside any other function.
>
> > Andrew- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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