Hey Václav,

Your question doesn't make it entirely clear what exactly your trying to accomplish so forgive us for guessing to what your trying to do :)

As Chewy pointed out, if you want to somehow include the javascript libraries from an open social container in your own site and have it work (being able to get profile information via a newPersonRequest() in your own html page for instance), then no that's indeed not possible. There's a lot more in play then just a bit of javascript (authentication, configuration, cross domain policies, and so on).

What might help you accomplish what your after (if your trying to get to social information inside of your own site), is the upcomming RESTful API, which is made for 3rd parties connecting to the social data back-end of a social network site. See this link for more info:
http://sites.google.com/a/opensocial.org/opensocial/Technical-Resources/opensocial-spec-v08/restful-api-specification

Also don't overlook the possibility of creating an open social gadget, there is a potential audience of aprox 300 mil (i don't know what the exact number is today, it was 280 before and it's growing rapidly), so quite often when you have a great idea, making a gadget and posting it on those social network sites (myspace, orkut, hi5, imeem, idtail, netlog, etc etc etc) is a great way to reach a large audience and can save a lot of work of having to attract people to go visit your own site. It's not always the best option, but depending on your concept, sometimes it is :)

        -- Chris

On Jul 18, 2008, at 3:31 PM, Matthew (Chewy) Trewhella wrote:

For example?
I think you're asking if you can host a gadget on example.com and call the
javascript include from, say, orkut.com right?

This won't really work, because you don't ever call the JS directly - it
comes from a module/require statement.

So, no, I don't think that will work.

Apologies if I'm totally wrong here, and have got the wrong end of the
stick.
Chewy

2008/7/18 Václav Tolar <[EMAIL PROTECTED]>:

Hi all,

Is possible to use opensocial javascript API in container context (from my
html pages) directly?

Thanks,
Vasek

Václav Tolar
J2EE Senior Developer
---------------------------------------------
Cleverlance - The Clever Enterprise Solutions
www.cleverlance.com<http://www.cleverlance.com>

European Business Center
Dukelských hrdinů 34
170 00 Praha 7
Czech Republic

Mobil: +420 605 439 657
Tel.: +420 266 177 166
Fax: +420 266 177 155




Reply via email to