Hi,

 I am trying to build a gadget to our service (www.ingboo.com). What i
notice is that the relative URLs that are returned ends up being
resolved with respect to the container and so none of those links
work.

  Any way to work around this?.

-Anu


 What i am doing is the following:

<Content type="html" view="home,profile,default"><![CDATA[
  <div id="content_div"></div>

<script type="text/javascript">

function getHtml() {
  var params = {};
  params[gadgets.io.RequestParameters.CONTENT_TYPE] =
gadgets.io.ContentType.DOM;
    params[gadgets.io.RequestParameters.HEADERS] = {
     "User-Agent": "Mozilla/5.0 (iPhone; U; CPU iPhone OS 2_1_1 like
Mac OS X; en-us) AppleWebKit/525.18.1 (KHTML, like Gecko) Version/
3.1.1 Mobile/5A345 Safari/525.20"
  };

  var url = "http://www.ingboo.com/pvm";;
  gadgets.io.makeRequest(url, response, params);
  };
function response(obj) {
  //obj.text contains the text of the page that was requested
  //alert("Got Response ");
   //alert(obj.text);
  var html = obj.data;
  document.getElementById('content_div').innerHTML = html;
};
gadgets.util.registerOnLoadHandler(getHtml);
</script>
]]></Content>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"iGoogle Developer Forum" 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-Gadgets-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to