To add to what Larry said, the "//" is known as a "protocol relative URL".
This won't work on file://, unfortunately.

--
G+: http://chrisbroadfoot.id.au/+
Twitter: http://twitter.com/broady



On Mon, Jan 30, 2012 at 11:31 AM, geocode...@gmail.com <geocode...@gmail.com
> wrote:

> On Jan 29, 2:20 pm, fearless_fool <rdp...@gmail.com> wrote:
> > I want to build upon the example code found in:
> >
> > http://code.google.com/apis/maps/documentation/javascript/examples/pl...
> >
> > It works fine from the above URL, but when I copy the source code and
> past
> > it into a local file, opening the local file results in a javascript
> > console error:
> >
> >     "Uncaught ReferenceError: google is not defined"
> >
> > ... and the input form doesn't autocomplete, etc.  Sure enough, when I
> look
> > at the source, I see references to 'google' but no definition. What am I
> > missing?
>
> A valid reference to the API.
>
> This (from that example):
> //maps.googleapis.com/maps/api/js?sensor=false&libraries=places
>
> won't work.  See the documentation:
>
> http://code.google.com/apis/maps/documentation/javascript/tutorial.html#Loading_the_Maps_API
>
>  -- Larry
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Maps JavaScript API v3" group.
> To post to this group, send email to
> google-maps-js-api-v3@googlegroups.com.
> To unsubscribe from this group, send email to
> google-maps-js-api-v3+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-maps-js-api-v3?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To post to this group, send email to google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to