Hello Abhijeet,

It will work if you are using an iframe. If you developed a gadget ( regular
opensocial xml file) you are running javascript crossdomain issues. You can
make ajax requests if you app is on the same domain. Since Opensocial server
will rewrite your gadget url, using xmlhttp will make your browser complain
about security.

Instead of using that, switch to a native opensocial function:
gadgets.io.makeRequest . See:
http://wiki.opensocial.org/index.php?title=Gadgets.io_(v0.8)#gadgets.io.makeRequest

Regards,

Robson Dantas


2010/7/24 RAJA SEKHAR <rajaveern...@gmail.com>

> Instead of using general ajax u can call the third party server data using
> makerequest.
>
> This is like and ajax call.
>
> thanks
> Raju
>
>
> On Sat, Jul 24, 2010 at 12:05 PM, abhijeet mandal <
> dinesh.abhij...@gmail.com> wrote:
>
>> the below code is working fine in my webite check it out:-
>> http://abhijeetmandal.xtreemhost.com/sandbox/test1.html
>> xmlhttp.open("GET","
>> http://abhijeetmandal.xtreemhost.com/sandbox/gethint.php?q="+str,true);
>>
>> but when i am applying it in my orkut application why isn't giving any
>> output, i applied all permutation and combination but every time i
>> failed to implement ajax,
>> please help why i m not able to implement ajax with my site
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "OpenSocial Application Development" group.
>> To post to this group, send email to opensocial-...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> opensocial-api+unsubscr...@googlegroups.com<opensocial-api%2bunsubscr...@googlegroups.com>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/opensocial-api?hl=en.
>>
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "OpenSocial Application Development" group.
> To post to this group, send email to opensocial-...@googlegroups.com.
> To unsubscribe from this group, send email to
> opensocial-api+unsubscr...@googlegroups.com<opensocial-api%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/opensocial-api?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"OpenSocial Application Development" group.
To post to this group, send email to opensocial-...@googlegroups.com.
To unsubscribe from this group, send email to 
opensocial-api+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/opensocial-api?hl=en.

Reply via email to