You need to sign in to do that
Don't have an account?

google gadgets
I am trying to create a google gadget to display company phone list information. I created a simple visualforce page to get the info I need and format it into XML for consumption into the gadget. I can't seem to get a valid response in to the gadget however. I assume it is because you have to log in to get the visualforce page and I don't believe I can get the gadget to do the login. Or maybe I am just doing something wrong. Any suggestions would be greatly appreciated.
Here is the relevant part of my gadget:
<?xml version="1.0" encoding="UTF-8" ?>
<Module>
<ModulePrefs title="Phone List"
scrolling="true"
author="Christopher La May"
author_email="dragonmagicl@gmail.com/>
<Content type="html">
<![CDATA[
<div id="content_div"></div>
<script type="text/javascript">
function displayList() {
// XML Phone List data
var url = "https://na5.salesforce.com/apex/test_vf_page";
var prefs = new _IG_Prefs();
_IG_FetchContent(url, function (response) {
if (response == null || typeof(response) != "object" ||
response.firstChild == null) {
_gel("content_div").innerHTML += "<i>Invalid data.</i>";
return;
}
...
});
}
_IG_RegisterOnloadHandler(displayList);
</script>
]]>
</Content>
</Module>
Here is the relevant part of my gadget:
<?xml version="1.0" encoding="UTF-8" ?>
<Module>
<ModulePrefs title="Phone List"
scrolling="true"
author="Christopher La May"
author_email="dragonmagicl@gmail.com/>
<Content type="html">
<![CDATA[
<div id="content_div"></div>
<script type="text/javascript">
function displayList() {
// XML Phone List data
var url = "https://na5.salesforce.com/apex/test_vf_page";
var prefs = new _IG_Prefs();
_IG_FetchContent(url, function (response) {
if (response == null || typeof(response) != "object" ||
response.firstChild == null) {
_gel("content_div").innerHTML += "<i>Invalid data.</i>";
return;
}
...
});
}
_IG_RegisterOnloadHandler(displayList);
</script>
]]>
</Content>
</Module>
As far as google gadget is concerned i found the following link
This seems to be a valid google gadget and it seems to be rendered properly, except for the fact that there is no user preferences persistence.
This is how i got it displayed
I would like to know, if there is a better way to add the gadget and render it.
Is there a way to manage user preferences for the gadget.
How could I submit my google gadget to appexchange so that it is available as in the first link.
Thanks in advance,
Best Regards,
Hafiz