JSNI direct call in HTML pb with IE, need help

5 views
Skip to first unread message

Luciano Broussal

unread,
Mar 28, 2007, 12:39:10 PM3/28/07
to Google Web Toolkit
Hi all,

I have an html file that launch a gwt module
in this page i have links that make direct JSNI call on static methods
in the GWT module.


This works perfectly with FF

This works perfectly in debug hosted mode with IE
This not works in web mode for IE. Why ? :)

if it works in hosted mode for IE it should work in web mode for IE?

in index.html
-------------------

<li id="demo"><a href="" onclick="return gwmLaunchDemo()">Demo</a></
li>

in the module
------------------

onLoadModule(){
...
init_callbacks();
}


private native void init_callbacks() /*-{
$wnd.gwmLaunchDemo = function() {
$wnd.alert('here');
return
@com.gwtwindowmanager.test.client.GwtWindowManagerTest::launchDemo()
();
}
}-*/;


public static boolean launchDemo() {
Window.alert("here");
instance.displayPage("http://www.google.com", "Google");
return false;
}

thank you for any help :)


Luciano

Luciano Broussal

unread,
Mar 29, 2007, 6:34:55 AM3/29/07
to Google Web Toolkit
Thank for your responses :)
I've found the problem

On Mar 28, 6:39 pm, "Luciano Broussal" <luciano.brous...@gmail.com>
wrote:

Reply all
Reply to author
Forward
0 new messages