Update all subwidgets
The widget container has the wuid jkg934f
var client = new MashupAjaxClient($('.container')); client.addWidget('jkg934f'); client.update();
Let's consider the following page: <div class="container"> <div class="wuid djH4dg djH4dg_0_page"> <div class="wuid jkg934f jkg934f_0_cloudview"> </div> <div class="wuid jkg934f jkg934f_1_cloudview"> </div> </div> </div> The Update all subwidgets
The widget container has the wuid var client = new MashupAjaxClient($('.container')); client.addWidget('jkg934f'); client.update(); Update the top widget
Here the widget at the top of the widget container has the wuid var client = new MashupAjaxClient($('.container')); client.addWidget('djH4dg'); client.update(); Update a specific subwidget with extra parameters
Here the subwidget has the wuid var client = new MashupAjaxClient($('.container')); client.addWidget('jkg934f_1_cloudview'); client.addParameter('paramName', 'paramValue'); client.addParameters('paramName2', ['value1', 'value2']); client.update(); Update a specific subwidget every 5 seconds
var client = new MashupAjaxClient($('.container')); client.addWidget('jkg934f_1_cloudview'); client.updateInterval(5000); |