Re: Calling a function within a native javascript function

2009-04-04 Thread Vitali Lovich
You're callling it wrong. You still needs to call function2 using JSNI because the GWT compiler will mangle the name of function2 but won't realize that it needs to update the reference in the javascript code you are writing. 2009/4/3 alberto alberto.bu...@gmail.com: Hi I have theese two

Re: Calling a function within a native javascript function

2009-04-04 Thread alberto
Thanks Vitali Lovich, i solved the problem. As Vitali lovich said I was calling function2 in a wrong way(I am new to gwt). If someone has the same problem this link explains JSNI. http://googlewebtoolkit.blogspot.com/2008/07/getting-to-really-know-gwt-part-1-jsni.html On Apr 4, 8:55 am, Vitali

Calling a function within a native javascript function

2009-04-03 Thread alberto
Hi I have theese two native javascript functions: (just a simply example) public native void function1( ) { alert( function2( ) ); } public native int function2( ) { return 9; } It seems that function1 can not see and invoke function2. Is that true? Is there a way to resolve that