>>Q: What is the status of the MediaWiki extension? >> >> > Currently the extension is quite basic : it allows adding Jmol applets > and buttons. > I already include Jmol.js to reduce the complexity of the extension :
Good > the entire source code is only 140 lines including the XML parsing > functions. Excellent > For example, the code for the buttons takes only 25 lines of code and > could easily be reduced to 10 very simple lines by putting the XML > parsing in a common function. > > I was thinking of adding several others things to be as complete as > Jmol.js, but I didn't find the time yet. > It should be quite easy (see the renderJmolButton function) OK I see that you are using XML to define the parameters to the controls. I was thinking of trying to use a syntax that was closer to the syntax of the JavaScript functions. This is an excellent base ... I will do some experimenting. > A few links that you can check : > - source code: http://wiki.jmol.org/MediaWiki > - example on how to use Jmol extension in FAHWiki: > http://fahwiki.fahstats.com/index.php?title=Jmol_MediaWiki_Extension > - installation instructions: > http://meta.wikimedia.org/wiki/User:NicoV/Jmol_Extension Great >>Q: Do you know how to add HTML to the <head> section of a MediaWiki page? >> >> > No, I didn't try. > I only have a restricted access to the FAH Wiki where I can experiment > with the extension. > I think it would require a wider access than the one I have, probably a > modification in the configuration of MediaWiki. > This can be a problem if every page of the wiki includes Jmol.js even if > there is no Jmol applet in it. > > I include Jmol.js in the <body> section (see the source code of the > extension, line 88). > It seems to work correctly this way. Interesting. For some reason I was thinking that the include of Jmol.js had to be in the <head>. But of course it *can* go in the body ... and that is simpler and works much better. Miguel ----- Open Source Molecular Visualization www.jmol.org [EMAIL PROTECTED] ----- ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Jmol-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jmol-developers
