Hi VU, Sorry for the late reply.
So the main architecture of OpenSocial environment is: 1) You have a website, or simply a html page, and you want to embed a social application into it. We call this page a "container". 2) The social application, on the other side, is embedded into the container by an iframe. Therefore you may see <iframe src="shindig/ifr?..."> in your container page. 3) The "src" part of iframe invokes the rendering service of Shindig - it renders a given gadget spec (a xml file) into a html page. 4) In the above rendering process, the features specified in the gadget spec, like "opensocial", "views", etc. are injected to the html page in the JavaScript format. samplecontainer.html looks like breaking - I'll look into it if I have some time. Hope it helps. - Jacky On Mon, Mar 8, 2010 at 6:25 PM, VU, Thi Thu Thuy <[email protected]>wrote: > I use java shindig. > But I really don't understand much about these examples. > I don't find any code which indicates that it already used some libraries > from shindig. > So, how it run? > For example file samplecontainer.html. It run by which library from > shindig? > > Besides, I tried to used object gadget, but it always says, gadget is > undefined. > So, I don't know the role of shindig as well :( > Could you help me pls > Thanks a lot > > -----Original Message----- > From: Jacky Wang (王超) [mailto:[email protected]] > Sent: Montag, 8. März 2010 10:42 > To: [email protected] > Subject: Re: project web site with shindig > > Hi VU, > > are u using Java Shindig or PHP one? > > You may like to add some debug lines like "console.info("gadgets.rpc");" > etc. among the sample container code, and check its output in Firebug. > > Hope it helps, > Jacky > > On Mon, Mar 8, 2010 at 5:32 PM, VU, Thi Thu Thuy <[email protected] > >wrote: > > > Hi all, > > I created a project website from shindig's code. > > After that, I tried to run examples from this web site. > > (gadget/files/samplecontainer/samplecontainer.html) > > But when I debugged it, it appeared an error: > > gadgets.rpc.register('resize_iframe', this.setHeight) is null or not an > > object > > > > I don't understand much about it. > > Could you explain it for me , pls. > > Thanks a lot > > > > > > -- > Best Regards, > > Jacky Wang > (Office) +86-10-6250-3316 > (Mobile) +86-1381-0018-677 > Kejian Building, Tsinghua Science Park Building 6 > No.1 Zhongguancun East Road, Haidian District > Beijing P.R.China 100084 > -- Best Regards, Jacky Wang (Office) +86-10-6250-3316 (Mobile) +86-1381-0018-677 Kejian Building, Tsinghua Science Park Building 6 No.1 Zhongguancun East Road, Haidian District Beijing P.R.China 100084
