Problem using google.load with LABjs

145 views
Skip to first unread message

Andrew Waegel

unread,
Jan 10, 2012, 4:24:52 PM1/10/12
to Google Visualization API
Hello,

Just implemented LABjs for my site and for the most part it works
great. My problem is in trying to use the google chart API, which
worked just fine before the LABjs integration - there's some issue I
can't figure out with google.load either not working or not setting
the proper namespace.

Simplified repro of the problem is here:
http://benevolent-tech.com/testing/labtest.htm

Any idea what I'm doing wrong here?

Thanks!
- Andrew

asgallant

unread,
Jan 11, 2012, 8:52:06 AM1/11/12
to google-visua...@googlegroups.com
I suspect this is the same problem as every other time I've seen someone try to load the API through an AJAX call; it almost never works.  Why?  I don't know.

Andrew Waegel

unread,
Jan 11, 2012, 2:28:24 PM1/11/12
to Google Visualization API
It seems similar to that, though the LABjs plugin claims to not use
ajax at all, it just adds <script> tags dynamically to the DOM then
does some tricks I don't really understand to change execution order.

asgallant

unread,
Jan 11, 2012, 2:43:55 PM1/11/12
to google-visua...@googlegroups.com
That's essentially what most of the AJAX loaders do, and it doesn't work with the viz API.

Jinji

unread,
Jan 12, 2012, 7:49:46 AM1/12/12
to google-visua...@googlegroups.com
It might be that labtest.js is calling google.load before the jsapi script is loaded.
You can try to look at http://code.google.com/apis/loader/, specifically the Dynamic Loading and Auto-Loading sections.

On Wed, Jan 11, 2012 at 9:43 PM, asgallant <drew_g...@abtassoc.com> wrote:
That's essentially what most of the AJAX loaders do, and it doesn't work with the viz API.

--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-visualization-api/-/J2BdCn8S8C0J.

To post to this group, send email to google-visua...@googlegroups.com.
To unsubscribe from this group, send email to google-visualizati...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.

Reply all
Reply to author
Forward
0 new messages