Add a callback parameter to your options argument (i.e., the object literal 
you're passing as a third argument). Something like this:

google.load('elements', '1', {packages: 'keyboard', callback: helloWorld});

helloWorld will have to be a function reference, and it will be called when the 
package is loaded. At least, that's the way it's supposed to work.

Jeremy R. Geerdes
Generally Cool Guy
Des Moines, IA

For more information or a project quote:
jrgeer...@gmail.com

If you're in the Des Moines, IA, area, check out Debra Heights Wesleyan Church!

On Dec 19, 2011, at 7:20 PM, Abdulaziz Zaben wrote:

> Hi,
> I'm trying to use it as a bookmarklet but I couldn't,
> 
> when ever the browser reads this
> google.load("elements", "1", {packages: "keyboard"});
> 
> it reloads the page!, is there any way to workaround this?
> 
> -- 
> You received this message because you are subscribed to the Google
> Groups "Google AJAX APIs" group.
> To post to this group, send email to
> google-ajax-search-api@googlegroups.com
> To unsubscribe from this group, send email to
> google-ajax-search-api+unsubscr...@googlegroups.com
> To view this message on the web, visit
> http://groups.google.com/group/google-ajax-search-api?hl=en_US
> For more options, visit this group at
> http://groups.google.com/group/google-ajax-search-api?hl=en?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Google AJAX APIs" group.
To post to this group, send email to
google-ajax-search-api@googlegroups.com
To unsubscribe from this group, send email to
google-ajax-search-api+unsubscr...@googlegroups.com
To view this message on the web, visit
http://groups.google.com/group/google-ajax-search-api?hl=en_US
For more options, visit this group at
http://groups.google.com/group/google-ajax-search-api?hl=en?hl=en

Reply via email to