Hi, I'm not sure if it's my code or the chrome browser but I've got a problem that is working in all other other browsers....
I have a calendar gadget that's reporting gapi.client undefined when I try to load it in google chrome (it's working in firefox,IE,opera,Safari )
in the html I've got
since I'm also using jQuery my code looks a little like this...
function handleClientLoad(){
//is jquery ready??
var app; app=new App();
app.initialise();
};
....
App=function(){
initialise=function{
jQuery(document).ready(function(){
// gapi and jQuery should both be loaded here ??
...
gapi.client.setApiKey(apiKey);
}
};
};
when I load the gadget in google chrome there's a gapi object but it doesn't have a client (and therefore no client.setAPIKey) - the object looks like this...
- gapi: Object
- _: Object
- config: Object
- load: function (a,b){return Y(function(){return $(a,b)})}
- loaded_0: function (a){u[v](a);H[L]=e}
- loaded_1: function (a){u[v](a);H[L]=e}
- __proto__: Object
To further complicate matters I can run the code directly in google chrome from my website the issue only arises when trying to run it in the gadget IFrame
Is my code wrong or should I be reporting a bug to google chrome?
many thanks