Also I have checked my responce function, its not being called when i
remove :

<Preload href="http://anyservername.com/orkut_app/makerequest.php"; />

so i can't check error.



On Mar 16, 5:23 pm, "[email protected]"
<[email protected]> wrote:
> I have again checked all and found that my makerequest function works
> well if include
>
> <Preload href="http://anyservername.com/orkut_app/makerequest.php"; />
>
> in module prefrences.
>
> But it only get the whole file contents and querystring parameters are
> not accepted.
> It just show the data once loaded at the start of the app.
> Please suggest?
>
> thanks
>
> On Mar 16, 4:40 pm, Prashant Patil <[email protected]>
> wrote:
>
> > Try to chk your Div or alert the ophtml
> > or change div to above script!
>
> > On Mon, Mar 16, 2009 at 1:52 PM, [email protected]
>
> > <[email protected]> wrote:
>
> > >  I can't understand why code is not working at my end , I am able to
> > > fetch orkut friends and other api's but at my end
> > >makerequestapi is not sending the responce.
>
> > > I have checked there is not error when i call the makeNormalRequest()
> > > and alert() comes out till end but my resp(obj)
>
> > > function is not giving me the alert or its not getting the responce.
>
> > > is there some problem with my server , i have checked the url as :
> > > var url = "http://www.google.com";;
>
> > > but it still not working with any parameters ie post, get , feed etc.
> > > Any sugessions?
>
> > > thanks
>
> > >  var params = {};
> > >  params[gadgets.io.RequestParameters.CONTENT_TYPE] =
> > > gadgets.io.ContentType.TEXT;
> > >  var url = "http://www.google.com";;
> > >  gadgets.io.makeRequest(url, resp, params);
>
> > > };
>
> > > On Mar 16, 10:28 am, Vijaya <[email protected]> wrote:
> > >> Can you please check your 
> > >> URL:http://myserver.com/orkut_app/makerequest.php
>
> > >> I tried your code with a different URL (http://www.google.com) in the
> > >> OpenSocial developer app
> > >> (http://osda.appspot.com/)
> > >> and it works fine:
>
> > >> function makeNormalRequest() {
>
> > >>   var params = {};
> > >>   params[gadgets.io.RequestParameters.CONTENT_TYPE] =
> > >> gadgets.io.ContentType.TEXT;
> > >>   var url = "http://www.google.com";;
> > >>   gadgets.io.makeRequest(url, resp, params);
>
> > >> };
>
> > >> function resp(obj) {
> > >>   alert('Ok');
> > >>   //obj.text contains the text of the page that was requested
> > >>   var ophtml = (obj.text);
> > >>   document.getElementById('dom_handle').innerHTML = ophtml;
>
> > >> };
>
> > >> makeNormalRequest();
>
> > --
> > With best Regards.
> > Prashant aka 
> > Orkuteerhttp://en.blog.orkut.com/2007/11/thanks-from-orkuteer.html
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Orkut 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/opensocial-orkut?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to