HI,
Is it possible to call one JSNI function from another JSNI function?
I have a method setShowTrigger(this,elem,screenURL,inputStr,true);
which I am calling in Moduleload of a GWT class.
I wrote show trigger like
public native void setShowTrigger(MainLayout x, Element elem, String
screenURL, String inputStr, boolean b)/*-{
$wnd.showBlueApp = function () {
[email protected]::myFunction(Lcom/google/gwt/
user/client/Element;Ljava/lang/String;Ljava/lang/String;Z)
(elem,screenURL,inputStr,b);
};
}-*/;
My function is implimented as
public static native int desktopShare(Element elem, String
screenURLValue,
String actionURL,boolean wholeDesktop)/*-{
var shareWholeDesktop = 0;
var returnVal = -1;
if (elem != null)
{
if (wholeDesktop)
{
shareWholeDesktop = 1;
}
var screenURL =screenURLValue ;
alert("Inside the perform function");
//alert("rtmpUrl"+ rtmpUrl);
//alert("rtmpStream"+ rtmpStream);
//alert("recordingFlags"+ recordingFlags);
//alert("publisherId"+ publisherId);
//alert("screen url = "+"{screenURL:\""+screenURL+"\"}");
elem.setProperty("{screenURL:\""+screenURL+"\"}");
var inputStr = actionURL;
//alert(inputStr+"®="+publisherId);
returnVal = elem.performAction(actionURL);
alert("returnVal from share"+ returnVal);
return returnVal;
}
}-*/;
Is it possible to make call like this? Is there any way? I have a html
page witha button , Onclick of that I need to call showBlueApp ()
function . I have included GWT script in the HTML page also.
Please help me on this.
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.