Hi Afaq,

It is possible to make your gadget interact with PHP or some other
language on the server-side.

Here is the flow:
1. You define what callback function to call (say foo) in
_IG_RegisterOnloadHandler.
2. When the function foo is called, you make OpenSocial requests to
fetch necessary information.
3. Define a second callback say bar, which is called when the
OpenSocial information is fetched.
4. The bar function now makes a call gadgets.io.makeRequest to your
server with all the information posted using POST_DATA param and
define a new callback that is called when the request to your server
completes.
5. The server sends back HTML DOM or JSON data that is appended into
the page in the 3rd callback.

As Renato said, there does not need to be OpenSocial specific code on
your server. For the server it is just a plain HTTP request.

Regards,
Gautham Pai
Software Engineer, Ugenie
http://buzypi.in/
http://booksiread.org/


On May 15, 12:27 pm, afaq <[EMAIL PROTECTED]> wrote:
> hi,
>
> I have read examples of google for opensocial at (http://
> code.google.com/apis/opensocial/)
> All these examples are working as Gadgets with structure as :
> <?xml version="1.0" encoding="UTF-8"?><Module><ModulePrefs
> title="hello world example" /><Content type="html"><![CDATA[Hello,
> world!]]></Content></Module>
>
> Can we write open social code directly in server side pages like PHP
> or APSX pages?
> Without writing a gadgets..
> or how to integrate Server side code of ASPX with opensocial?
>
> In otherwords, i want to create an application likehttp://booksiread.org/
> Where server side is integrated with opensocial.
>
> Any ideas or feedback......
>
> Regards,
> Afaq
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"OpenSocial Application Development" 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-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to