you should use the full url of the page, like "http://www.test.com/myurl.php ". Well, thats what im doing =)
2008/5/16 GeoDev <[EMAIL PROTECTED]>: > > Hi Julian, > > When I try to use the gadgets.io.makeRequest it does not work here is > my code > : > > =================================================================== > > > <?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 = "myurl.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> > > =================================================================== > > what am i doing wrong? > > Please help me. > > Thanks in advance :) > > > On May 16, 2:22 am, Julian Andrade <[EMAIL PROTECTED]> wrote: > > im creating a request to a php page that search values in a bd and > > returns it as a JSON array. the content type is already set to json. > > my problem is: when i update a value in the bd the response of > > makeRequest dont show de updated value, only showing a old value. What > > should i do to opensocial not cache these values?? > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---