Hi, I have a working sample for you posted at the end of this post, it is derived from your original example. One thing I could see is the use of <Require feature="maximize"/> is causing problem here.
Here is the working version of your original example <?xml version="1.0" encoding="UTF-8" ?> <Module> <ModulePrefs title="Fetch Content as Text"> <Require feature="opensocial-0.7"/> <Require feature="setprefs"/> <Require feature="settitle"/> <Require feature="dynamic-height"/> <Require feature="views"/> </ModulePrefs> <Content type="html"> <![CDATA[ <script type="text/javascript"> function makeNormalRequest() { var params = {}; params[gadgets.io.RequestParameters.CONTENT_TYPE] = gadgets.io.ContentType.TEXT; var url = "http://staging.edotsols.com/filmorbit/amey1/ orkuttestapp.php"; gadgets.io.makeRequest(url, function response(obj){ //obj.text contains the text of the page that was requested var html = obj.text; document.getElementById('content_div').innerHTML = html; } , params); } gadgets.util.registerOnLoadHandler(makeNormalRequest()); </script> <div id="content_div"></div> ]]> </Content> </Module> Cheers, Rohit On May 18, 10:22 pm, GeoDev <[EMAIL PROTECTED]> wrote: > Hi All, > > I have checked the URL. It is working fine. It > ishttp://staging.edotsols.com/filmorbit/amey1/orkuttestapp.php. > > I still haven't been able to fix the problem. > > Any help will be highly appreciated. > > Thank you. > > On May 16, 4:28 pm, GeoDev <[EMAIL PROTECTED]> wrote: > > > I am trying to create a sample app for Orkut using the Google Gadgets > > Editor. This is the first time I am doing this. > > > Below is my code but it doesn't work and gives me JS error. Something > > like 'Object Not found'. > > > =================================================================== > > > <?xml version="1.0" encoding="UTF-8" ?> > > <Module> > > <ModulePrefs title="Fetch Content as Text"> > > <Require feature="opensocial-0.7"/> > > <Require feature="setprefs"/> > > <Require feature="settitle"/> > > <Require feature="dynamic-height"/> > > <Require feature="maximize"/> > > <Require feature="views"/> > > </ModulePrefs> > > <Content type="html"> > > <![CDATA[ > > <script type="text/javascript">function makeNormalRequest() { > > var params = {}; > > params[gadgets.io.RequestParameters.CONTENT_TYPE] = > > gadgets.io.ContentType.TEXT; > > var url = "http://staging.edotsols.com/filmorbit/amey1/ > > orkuttestapp.php"; gadgets.io.makeRequest(url, function > > response(obj) > > { //obj.text contains the > > text of the page that was requested > > var html = obj.text; > > > document.getElementById('content_div').innerHTML = html; > > } > > , params);} > > > makeNormalRequest(); > > </script> > > <div id="content_div"></div>]]> > > </Content> > > </Module> > > > =================================================================== > > > Someone please tell me what I am doing wrong. > > Any help will be highly appreciated. > > Thanks in advance. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Orkut Developer Forum" group. To post to this group, send email to opensocial-orkut@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/opensocial-orkut?hl=en -~----------~----~----~----~------~----~------~--~---