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 |
Jump to:
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, '&').replace(/</g, '<'));
> }
> };
> Code, like much of the rest of container.js comes from partuza.

#1
Hi pletcher,
Please provide UI or gadget, using which you have tested this feature.
Thanks
#2
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
Resolved