Access jquery object from GWT

421 views Asked by At

I am trying to access Flexpaper from GWT but the following code is not getting recognized.

$Flexpaper("documentViewer").getMarkList();

Its throwing an error such as $Flexpaper not defined. I have added js, jquery imports also to the index.html.

Can somebody help me? I just want to know how to make GWT recognize "$Flexpaper" . If not for this, can somebody tel me how to access any "$" element.

1

There are 1 answers

10
Maksym Demidas On

GWT JSNI code runs in a nested frame. For example to access browser's window object from JSNI you must use special $wnd reference. Try to replace all $ in your script by $wnd.$:

$wnd.$Flexpaper("documentViewer").getMarkList();