Questions tagged [google.load]

Calls/Loads/Imports APIs into a webpage.

Google API loader allows you to import specific modules and versions of one or more APIs.

Syntax:

google.load(module, version)

For example:

<script type="text/javascript">
  google.load("search", "1");
  google.load("jquery", "1.4.2");
  google.load("jqueryui", "1.7.2");
</script>

Other modules include:

  • feeds
  • gdata
  • earth
  • visualization
  • picker

Google Documentation - Google Loader Developer's Guide

9 questions
17
votes
3 answers

google.load causes empty dom/screen

I'm trying to add a google visualization asynchronous, but I am running into problems. I've narrowed it down to the google.load causing the problem. When google.load part of the js runs, I get an empty screen/dom. Any one know what I am doing…
user603682
  • 235
  • 3
  • 10
8
votes
1 answer

Getting user location with google.loader.ClientLocation working for me but not others

Am trying to use google.loader.ClientLocation along with the maps api to get the location of the visitor and center a map on it. The following is working fine for me (on Safari, Firefox and Chrome), but a friend I got to test it (in Safari and…
Chris Armstrong
  • 3,585
  • 12
  • 42
  • 47
3
votes
3 answers

TypeError: google.load is not a function when using ajax

I am using a Google chart (termcloud) to display some data. I can get this working fine as a static feature on the page, however when I try to load the chart and its assets via ajax it just seems to keep throwing an error: 'TypeError: google.load is…
Dave Henderson
  • 151
  • 1
  • 1
  • 10
3
votes
1 answer

jquery ui wont work while the "http://www.google.com/jsapi" script is also linked

I'm using the jquery UI to slide a div up on hover. It works fine on its own but I'm having trouble with it working when this is also installed, (I'm using this to .load some…
sam
  • 9,486
  • 36
  • 109
  • 160
1
vote
1 answer

what if google.load fails?

Curious if there was a simple way to have a fail-safe on google.load() The likely hood that google can't deliver the file but I can is pretty slim but I thought it might be interesting to have my own server be able to provide a failover in case the…
tnriverfish
  • 713
  • 2
  • 11
  • 19
1
vote
3 answers

google.load is loading the old version of jquery causing versioning issues

I have these two lines of code in my web page: google.load("jquery", "1.7.0"); google.load("jqueryui", "1.8.16"); And I decide to upgrade to the newer version: google.load("jquery", "1.8.2"); google.load("jqueryui", "1.9.0"); Now…
Barka
  • 8,764
  • 15
  • 64
  • 91
0
votes
2 answers

How to load javascript files using google.load instead of directly using tag in freemarker template language?

How to load javascript files using google.load instead of directly using tag in freemarker template language?
krishna
0
votes
0 answers

How do I load the Google News API without google.load?

I want to load the Google News API without using google.load. which menas I need this as a simple script block. E-g Maps can be loaded via First Approach:
Mike
  • 3,348
  • 11
  • 45
  • 80
0
votes
2 answers

preload images / text so when .load is triggered there isnt a delay

im using jquery .load to load in some content and images into a slide out div, but there seems is a delay in loading the images in, so i end up getting placeholder boxs for the images while the panel is sliding out. Is there a way that i can delay…
sam
  • 9,486
  • 36
  • 109
  • 160