You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by balachandra maddina <ch...@gmail.com> on 2009/10/18 11:28:41 UTC
gadgets.rpc.call callback is not getting called on call return
Hi There,
Im building some sample gadgets using GWT and Apache Shindig, i have
a problem calling the handler of a gadget from a another gadget, when
i first loaded Gadget-1 i registered a handler and when a second
Gadget-2 is loaded im making a gadgets.rpc.call to call the other
gadget and passing a call back function to be invoked once the call is
returned. but here the handler of the Gadget-1 is getting called fine
but the callback function i defined in Gadget-2 is not getting called.
below is the code im using
public static native void getData() /*-{
function callback(){
alert("this is
callback");
}
$wnd.parent.window.gadgets.rpc.call('',"remote_alert", callback);
}-*/;
}
could some one tell me why the callback is not being called please.
your help is appreciated.
Thank you,
bala.