Adds support for the 'set title' opensocial api call.

Index: container.js
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/ShindigIntegrator/shindig_integrator/container.js,v
retrieving revision 1.1 
diff -b -r1.1 container.js
21a22
>   gadgets.rpc.register('set_title', this.setTitle);
36a38,45
>   gadgets.IfrContainer.prototype.setTitle = function(title) {
>     var element = $(this.f + '_title');
>     if (element != undefined) {
>       // update the title, and make sure we don't break it's html
>       element.text(title.replace(/&/g, '&amp;').replace(/</g, '&lt;'));
>     }   
>   };  
> 

Code, like much of the rest of container.js comes from partuza.

Comments

ramsharma2005’s picture

Hi pletcher,

Please provide UI or gadget, using which you have tested this feature.

Thanks

pletcher’s picture

Astha123,

I used the included sample7.html file that is included with shindig at shindig/javascript/container/sample7.html as a reference, which in turn uses http://www.google.com/ig/modules/test_settitle_html.xml

Thanks,
jrp

ramsharma2005’s picture

Status: Active » Closed (fixed)

Resolved