You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rave.apache.org by "Howansky, Matthew D" <mh...@mitre.org> on 2012/10/16 16:04:01 UTC

Adding a Widget to the Current Page Without Refresh

Hello All,

I am currently looking for a way to add a widget to the current page without a refresh. I have gotten the widget to load after refreshing the page. I am aware that this is the point where it gets transformed from a gadget to a widget, but cannot for the life of me, trace back what is actually happening during the refresh so that I can mimic it.

Thank you,
Matt Howansky

Re: Adding a Widget to the Current Page Without Refresh

Posted by Scott Wilson <sc...@gmail.com>.
Hi Matt,

There is JavaScript method to do this - for example, you can call:

rave.api.rpc.addWidgetToPage({widgetId: 30, pageId: 1, successCallback:  rave.renderNewWidget })

See RAVE-743 for more information.

S

On 16 Oct 2012, at 15:04, Howansky, Matthew D wrote:

> Hello All,
> 
> I am currently looking for a way to add a widget to the current page without a refresh. I have gotten the widget to load after refreshing the page. I am aware that this is the point where it gets transformed from a gadget to a widget, but cannot for the life of me, trace back what is actually happening during the refresh so that I can mimic it.
> 
> Thank you,
> Matt Howansky