Hi again,

I tried modifying Jmol.js by adding alert() calls at the beginning of _jmolCbClick() and _jmolClick().
Nothing happens for checkboxes but it works for all other components

See http://wiki.jmol.org/extensions/Jmol/Jmol.js and http://wiki.jmol.org/index.php/Sandbox

I am lost... seems a Javascript problem but I don't understand what


Angel Herráez a écrit :
On 30 Apr 2008 at 15:14, Nicolas Vervelle wrote:
Does someone know what's wrong with the generated HTML ?

The generated HTML looks OK, and in fact it works when copied locally.
What I see is that, when put in the wiki page, the checkbox-associated
Jmol commands are not being passed to the applet: the console history

shows the actions of jmolLink, jmolButton, jmolMenu, but not those of
jmolCheckbox. I'd say it's a problem in the MediaWiki extension.
The problem is that I don't see how this can be possible.
The Jmol extension is called to create the HTML + JavaScript, not after that :
* when a page is requested, MediaWiki constructs the page on the server (using Jmol extension) and sends HTML + JavaScript to the browser
* the browser receives only this (HTML + JavaScript) and nothing else (Jmol extension is not involved at all)

So, if the generated HTML is good, then the extension is good.

I am really lost with this one.