Problem when var w = wm.findWidgetById with a custom widget on IE [message #58275] |
Wed, 07 November 2007 05:06  |
Eclipse User |
|
|
|
Originally posted by: cedric.gaillot.thalesraytheon-fr.com
Hi,
We have created a custom widget to display a cartographic map (Itself
supported by an external javascript library).
I'm able to send commands from the Java side to the Javascript side thanks
to the JSWriter class.
It works fine with fireFox but in IE, i get the following error :
Could not evaluate javascript response:
'wm' is null or is not an object
var w = wm.findWidgetById( "w45" );
w.setBaseLayer( "Blue Marble"); ---------------> MY METHOD
org.eclipse.swt.EventUtil.suspendEventHandling();
var wm = org.eclipse.swt.WidgetManager.getInstance();
var w = wm.findWidgetById( "w3" );
w.setSpace( 0, 1111, 0, 20 );
var w = wm.findWidgetById( "w50" );
w.setValue( "Blue Marble");
qx.ui.core.Widget.flushGlobalQueues();
org.eclipse.swt.EventUtil.resumeEventHandling();
Thanks for yours answers.
Cédric G.
|
|
|
|
Re: Problem when var w = wm.findWidgetById with a custom widget on IE [message #59036 is a reply to message #58299] |
Fri, 09 November 2007 11:40  |
Eclipse User |
|
|
|
Originally posted by: cedric.gaillot.thalesraytheon-fr.com
Hi,
Indeed, I was calling JSWriter class outside from the renderChanges method
of my LCA class.
I had many JSWriter calls which were located inside the java class of my
custom widgets.
I have modified my code to regroup all theses calls inside the LCA
renderChanges and it seems to work fine again in IE.
Thanks for the help,
Cédric.
|
|
|
Powered by
FUDForum. Page generated in 0.03510 seconds