Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Integration 3rd party javascript applet: right-click menu does not appear

$
0
0
Hello,

I am trying to integrate 3rd party javascript applet JSmol (visualizer of chemical molecules: http://wiki.jmol.org/index.php/Jmol_JavaScript_Object) to my SmartGWT application. I wrapped it into the extended HTMLPane control (see attached ViewerPane.java) and I placed on my web-form:

Code:

// initialization
private final ViewerPane viewerPane = new ViewerPane("appletdiv", "<div id=\"appletdiv\" name=\"appletdiv\"></div>", 777, 777);

Code:

// sending commands in jsmol language
viewerPane.sendCommand("load data/molecule.pdb;hide null;wireframe off;spacefill off;isosurface off;cartoon on;backbone on; color cpk; display *");

Everything seems to be OK, the molecule is loaded correctly:
http://ll06.sci.muni.cz:6211/hswgwt/...s&jobId=q0ggx9

But I cannot see context menu which should occur after right click on JSmol applet (see http://chemapps.stolaf.edu/jmol/jsmol/jsmol.htm). It seems that SmartGWT somehow blocks this pop-up. I tried to debug it via Developer console but I was not able to catch "click event". There is also no error in IDE console (when I am trying it on localhost).

Despite this "maybe not entire clear" description given in this post: Do you have any idea what should try? Or which other information you need to give me and advice?

Thank you very much,
Jarda

__________
SmartClient Version: v9.0p_2013-11-28/Pro Deployment (built 2013-11-28)
Browser: Chromium 36.0.1985.125 Ubuntu 14.04 / Firefox 24.7.0

Attached Files
File Type: java ViewerPane.java (2.0 KB)

Viewing all articles
Browse latest Browse all 4756

Trending Articles