Hi,

I'm trying to use the AJAX Libraries API in an igoogle gadget. My code
works in the AJAX APIs Playground, but fails in the igoogle developer
sandbox.

I couldn't get the google.load() to work without a google jsapi
script, but even with a key it says : "Autocompleter is not defined"
or "Effect is not defined".

Here's my code:
<?xml version="1.0" encoding="UTF-8"?>
<Module>
<ModulePrefs title="hello world example" />
<Content type="html"><![CDATA[
<div id="content"/>
<script src="http://www.google.com/jsapi?key=ABQIAAAAipdohur-iAg-
e8OVEknLAhT-Zm4FPI3R5xd-71uH_IW16DvI0BSUf-GiikBbT1toygpDBCDTu3wnvA"
type="text/javascript"></script>
<script type="text/javascript" charset="utf-8">
google.load("prototype", "1");
google.load("scriptaculous", "1");

function OnLoad(){
  var content = $('content');
  content.innerHTML = '<div>The Content</div><input
id="bands_from_the_70s" autocomplete="off" size="40" type="text"
value="" /><div class="autocomplete" id="band_list"
style="display:none"></div>';

  new Autocompleter.Local('bands_from_the_70s', 'band_list',
['abba','bonny m'], { });

}

google.setOnLoadCallback(OnLoad);
</script>
]]></Content>
</Module>


Any ideas ?

--~--~---------~--~----~------------~-------~--~----~
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]
For more options, visit this group at 
http://groups.google.com/group/Google-AJAX-Search-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to