Try to chk your Div or alert the ophtml
or change div to above script!



On Mon, Mar 16, 2009 at 1:52 PM, rajinder.impi...@gmail.com
<rajinder.impi...@gmail.com> 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
> makerequest api 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 <api.vij...@google.com> 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 Orkuteer
http://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 opensocial-orkut@googlegroups.com
To unsubscribe from this group, send email to 
opensocial-orkut+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/opensocial-orkut?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to