Add Set Title RPC call

pletcher - February 13, 2009 - 06:19
Project:OpenSocial Shindig-Integrator
Version:6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed
Description

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.

#1

astha123 - April 8, 2009 - 09:22

Hi pletcher,

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

Thanks

#2

pletcher - April 27, 2009 - 05:33

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

#3

astha123 - August 12, 2009 - 10:41
Status:active» closed

Resolved

 
 

Drupal is a registered trademark of Dries Buytaert.