Hello,

I also have some problem for including jsapi in a custom GreaseMonkey 
script.

I'm still looking for a solution.

On Sunday, June 22, 2008 9:41:36 PM UTC+2, Chris Chua wrote:
>
> nyenyec: Take a look at: 
>
> http://wiki.greasespot.net/Code_snippets#Use_jQuery_in_a_GreaseMonkey_script 
>
> With the new @require metadata of the Greasemonkey (as of version 8) 
> you won't even need to load it dynamically. 
>
> I had problems loading it dynamically through AJAX Libraries API on 
> Firefox 3 (not sure if it happens on other browsers.) . It throwed a 
> "Module jquery must be loaded before DOM onLoad" error on the error 
> console. 
> I've since changed to using @require. Since it's requirement for my 
> script and makes sense to use that anyway. 
>
> Chris Chua 
>
> Ben Lisbakken wrote: 
> > Nyenyec -- 
> > 
> > Here is some code to help you load it in greasemonkey: 
> > function languageLoaded() { 
> >   // begin using API 
> > } 
> > 
> > unsafeWindow.doneLoadingJSAPI = function() { 
> >   unsafeWindow.google.load('language','1', {"callback" : 
> languageLoaded}); 
> > } 
> > 
> > var script = document.createElement('script'); 
> > script.src = 'http://www.google.com/jsapi?callback=doneLoadingJSAPI'; 
> > script.type = "text/javascript"; 
> > document.getElementsByTagName('head')[0].appendChild(script); 
> > 
> > 
> > On Fri, May 30, 2008 at 10:34 AM, jgeerdes [AJAX APIs Guru] < 
> > [email protected] <javascript:>> wrote: 
> > 
> > > 
> > > You don't really have to register an API key anymore.  Just use 
> > > http://www.google.com/jsapi 
> > > 
> > > Jeremy R. Geerdes 
> > > Effective website design & development 
> > > Des Moines, IA 
> > > 
> > > For more information or a project quote: 
> > > http://jgeerdes.home.mchsi.com 
> > > [email protected] <javascript:> 
> > > 
> > > If you're in the Des Moines, IA, area, check out Debra Heights 
> > > Wesleyan Church! 
> > > > 
> > >

-- 
You received this message because you are subscribed to the Google
Groups "Google AJAX APIs" group.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
[email protected]
To view this message on the web, visit
https://groups.google.com/d/msg/google-ajax-search-api/-/TjO-BX3VltsJ
For more options, visit this group at
http://groups.google.com/group/google-ajax-search-api?hl=en?hl=en

Reply via email to