Re: [Jmol-users] Jmol mediawiki extension

2008-12-11 Thread Robert Hanson
OK, there are two issues here. mayscript and scripting. "maynotscript" is just my invention to remove the "mayscript" tag. You could do otherwise. I don't think it is browser-safe to use mayscript=false, because, as I recall, the original specification was just for the word "mayscript" in the appl

Re: [Jmol-users] Jmol mediawiki extension

2008-12-11 Thread Angel Herraez
El 10 Dec 2008 a las 18:34, Robert Hanson escribió: > Something's not right. > > mayscript = false in no way prevents jmolButton from being created, > and with mayscript=false, the jmolButton still works fine. > > Something else is going on there. I though it weird, but that is tested on an in

Re: [Jmol-users] Jmol mediawiki extension

2008-12-10 Thread Robert Hanson
Something's not right. mayscript = false in no way prevents jmolButton from being created, and with mayscript=false, the jmolButton still works fine. Something else is going on there. Bob On Wed, Dec 10, 2008 at 3:14 PM, Angel Herráez <[EMAIL PROTECTED]> wrote: > On 10 Dec 2008 at 7:36, Robe

Re: [Jmol-users] Jmol mediawiki extension

2008-12-10 Thread Angel Herráez
On 10 Dec 2008 at 7:36, Robert Hanson wrote: > But, really, it's simpler than that if you want to disallow all > callbacks and every last bit of JavaScript capability of the applet -- > > just don't have "mayscript" in the applet tag. Ah, interesting. But then jmolButton() et al. do nothing. I

Re: [Jmol-users] Jmol mediawiki extension

2008-12-10 Thread Bob Hanson
It is true for all browsers because Jmol checks the tag itself and explicitly denies itself access On Dec 10, 2008, at 7:53 AM, "Angel Herraez" <[EMAIL PROTECTED]> wrote: >> All -- I'm pretty sure that if you invoke _jmol.noEval = true in your >> wiki code, you will completely shut down any

Re: [Jmol-users] Jmol mediawiki extension

2008-12-10 Thread Angel Herraez
> All -- I'm pretty sure that if you invoke _jmol.noEval = true in your > wiki code, you will completely shut down any JavaScript functionality > of Jmol except callbacks. This setting cannot be changed within Jmol > -- it is checked upon applet creation and cannot be changed within the > applet. S

Re: [Jmol-users] Jmol mediawiki extension

2008-12-10 Thread Robert Hanson
All -- I'm pretty sure that if you invoke _jmol.noEval = true in your wiki code, you will completely shut down any JavaScript functionality of Jmol except callbacks. This setting cannot be changed within Jmol -- it is checked upon applet creation and cannot be changed within the applet. So it does

Re: [Jmol-users] Jmol mediawiki extension

2008-12-09 Thread Rzepa, Henry
>> > > I suspect this would be easier for users and could likely be made more > secure. However, I have no idea how this would be implemented. The > mediawiki language seems to aim to remove as much direct html use as > possible. >>> Our students use Jmol Mediawiki extensively. We have come up aga

Re: [Jmol-users] Jmol mediawiki extension

2008-12-09 Thread Paul Pillot
You can also embed these javascript calls into the pdb file itself, if it has an embedded Jmol script into it. Paul Le 9 déc. 08 à 14:41, Angel Herraez a écrit : > El 9 Dec 2008 a las 14:03, Nicolas Vervelle escribió: >> For example, I think you can stillrun Javascriptwithscripts >> calling oth

Re: [Jmol-users] Jmol mediawiki extension

2008-12-09 Thread Brian Salter-Duke
On Tue, Dec 09, 2008 at 02:03:17PM +0100, Nicolas Vervelle wrote: > Hi, > > > On Tue, Dec 9, 2008 at 1:21 PM, Angel Herraez <[EMAIL PROTECTED]> wrote: > > > I'd like to keep this discussion going, so here is a little bit more, > > picking up on the possibilities to have Jmol supported in Wikiped

Re: [Jmol-users] Jmol mediawiki extension

2008-12-09 Thread Brian Salter-Duke
On Tue, Dec 09, 2008 at 01:21:01PM +0100, Angel Herraez wrote: > I'd like to keep this discussion going, so here is a little bit more, > picking up on the possibilities to have Jmol supported in Wikipedia > and other Wikis: [Nico's message snipped] > And on 1 Dec 2008 9:49, Brian Salter-Duke w

Re: [Jmol-users] Jmol mediawiki extension

2008-12-09 Thread Angel Herráez
On 9 Dec 2008 at 17:14, Nicolas Vervelle wrote: > I am rather thinking as Rolf does, that to convince Wikipedia people it would > be better to really > deactivate Javascript in Jmol itself (would it be possible to pass an option > to Jmol applet > whenstarting it ?), rather than trying to bloc

Re: [Jmol-users] Jmol mediawiki extension

2008-12-09 Thread Nicolas Vervelle
On Tue, Dec 9, 2008 at 2:41 PM, Angel Herraez <[EMAIL PROTECTED]> wrote: > El 9 Dec 2008 a las 14:03, Nicolas Vervelle escribió: > > For example, I think you can stillrun Javascriptwithscripts > > calling other scripts: > > * Create a wiki page with contents corresponding to a Jmol script with >

Re: [Jmol-users] Jmol mediawiki extension

2008-12-09 Thread Rolf Huehne
Angel Herraez wrote: > El 9 Dec 2008 a las 14:03, Nicolas Vervelle escribió: >> For example, I think you can stillrun Javascriptwithscripts >> calling other scripts: >> * Create a wiki page with contents corresponding to a Jmol script with >> Javascript in it. >> * Add a tag in a page

Re: [Jmol-users] Jmol mediawiki extension

2008-12-09 Thread Angel Herraez
El 9 Dec 2008 a las 14:03, Nicolas Vervelle escribió: > For example, I think you can stillrun Javascriptwithscripts > calling other scripts: > * Create a wiki page with contents corresponding to a Jmol script with > Javascript in it. > * Add a tag in a page with a script calling the ot

Re: [Jmol-users] Jmol mediawiki extension

2008-12-09 Thread Nicolas Vervelle
Hi, On Tue, Dec 9, 2008 at 1:21 PM, Angel Herraez <[EMAIL PROTECTED]> wrote: > I'd like to keep this discussion going, so here is a little bit more, > picking up on the possibilities to have Jmol supported in Wikipedia > and other Wikis: > > > On 30 Nov 2008 22:53, Nicolas Vervelle wrote: > > >

Re: [Jmol-users] Jmol mediawiki extension

2008-12-09 Thread Angel Herraez
I'd like to keep this discussion going, so here is a little bit more, picking up on the possibilities to have Jmol supported in Wikipedia and other Wikis: On 30 Nov 2008 22:53, Nicolas Vervelle wrote: > > On the matter of security issues, there are at least 2 things to do : > * Being able to

Re: [Jmol-users] Jmol mediawiki extension

2008-12-01 Thread Brian Salter-Duke
Take a look at this blog:- http://ultimategerardm.blogspot.com/2008/12/jmol.html More publicity to get Jmol properly working on wikis. Brian. -- "First they ignore you, then they laugh at you, then they fight you, then you win." -- Gandhi, being prophetic abou

Re: [Jmol-users] Jmol mediawiki extension

2008-12-01 Thread Angel Herraez
Hi Gerard Thanks for the suggestions. Jmol is already fully internationalized and localized, over 10 languages: http://wiki.jmol.org:81/index.php/Internationalisation/Current_Status I'm not sure if the MediaWiki extension would need any further localization. Does the testing environment th

Re: [Jmol-users] Jmol mediawiki extension

2008-11-30 Thread Brian Salter-Duke
Hi folks, Gerard Meijssen <[EMAIL PROTECTED]> has asked me to pass this on to the Jmol list. I responded to this discussion on the Commons-l list:- [Commons-l] Support for Chemical Markup Language - followup -- Hoi, If you want to

Re: [Jmol-users] Jmol mediawiki extension

2008-11-30 Thread Brian Salter-Duke
On Sun, Nov 30, 2008 at 10:53:29PM +0100, Nicolas Vervelle wrote: > Hi everyone, > > I have been quite busy for several months on other matters than Jmol, so I > haven't worked at all on the extension. > I am happy to see people interested in making it work, and bringing it to > Wikipedia. > > On

Re: [Jmol-users] Jmol mediawiki extension

2008-11-30 Thread Nicolas Vervelle
Hi everyone, I have been quite busy for several months on other matters than Jmol, so I haven't worked at all on the extension. I am happy to see people interested in making it work, and bringing it to Wikipedia. On the matter of security issues, there are at least 2 things to do : - Being ab

Re: [Jmol-users] Jmol mediawiki extension

2008-11-29 Thread Brian Salter-Duke
On Sun, Nov 30, 2008 at 01:16:21AM +0100, Angel Herráez wrote: > On 30 Nov 2008 at 9:48, Brian Salter-Duke wrote: > > That is great news. Thanks, Henry. My page on the Jmol wiki is now > > working and I have something I can point the wikipedia tech folks to so > > that they can look at Jmol. > B

Re: [Jmol-users] Jmol mediawiki extension

2008-11-29 Thread Angel Herráez
On 30 Nov 2008 at 9:48, Brian Salter-Duke wrote: > That is great news. Thanks, Henry. My page on the Jmol wiki is now > working and I have something I can point the wikipedia tech folks to so > that they can look at Jmol. Brian, I'm quite surprised that your page has started to work NOW. Unless N

Re: [Jmol-users] Jmol mediawiki extension

2008-11-29 Thread Brian Salter-Duke
On Sat, Nov 29, 2008 at 02:53:18PM +, Rzepa, Henry wrote: > > On 29 Nov 2008, at 01:41, Brian Salter-Duke wrote: > >> The question of having Jmol used on wikipedia has again been raised on >> the commons email list. On contributor to the discussion says that the >> jmol mediawiki extension now

Re: [Jmol-users] Jmol mediawiki extension

2008-11-29 Thread Rzepa, Henry
On 29 Nov 2008, at 18:43, Angel Herráez wrote: > Henry, I'm glad that you found the cure for your problem, and to > have been a catalyst in that > cure :) > > On 29 Nov 2008 at 14:53, Rzepa, Henry wrote: >> In the distribution >> http://jmol.svn.sourceforge.net/viewvc/jmol/trunk/Jmol-extension

Re: [Jmol-users] Jmol mediawiki extension

2008-11-29 Thread Angel Herráez
Henry, I'm glad that you found the cure for your problem, and to have been a catalyst in that cure :) On 29 Nov 2008 at 14:53, Rzepa, Henry wrote: > In the distribution > http://jmol.svn.sourceforge.net/viewvc/jmol/trunk/Jmol-extensions/wiki/MediaWiki/ > > edit the file Jmol.php to make the c

Re: [Jmol-users] Jmol mediawiki extension

2008-11-29 Thread Rzepa, Henry
I have gotten the Jmol Mediawiki to display a variety of more interesting modes: https://www.ch.ic.ac.uk/wiki2/index.php/Mod:jmol (although I dont think it can do everything a conventionally invoked applet can). - This

Re: [Jmol-users] Jmol mediawiki extension

2008-11-29 Thread Rzepa, Henry
On 29 Nov 2008, at 01:41, Brian Salter-Duke wrote: > The question of having Jmol used on wikipedia has again been raised on > the commons email list. On contributor to the discussion says that the > jmol mediawiki extension now only works with an older version of > mediawiki. Certainly my example

Re: [Jmol-users] Jmol mediawiki extension

2008-11-29 Thread Angel Herráez
On 29 Nov 2008 at 8:12, Rzepa, Henry wrote: > http://www.ch.ic.ac.uk/wiki2/index.php/Mod:jmol > > I currently have it down to a "silly mistake" somewhere, probably a > variable in LocalSettings.php. The correct source code is being > generated, including the Jmolinitialize script etc, but it

Re: [Jmol-users] Jmol mediawiki extension

2008-11-29 Thread Rzepa, Henry
Brian, We are currently running courses with no issue using the "old" implementation http://www.ch.ic.ac.uk/wiki/ (which has proved VERY robust. We often have classes of 50 students all hammering pages with 10 or more embedded Jmols, with no issues). but have also been struggling to im

[Jmol-users] Jmol mediawiki extension

2008-11-28 Thread Brian Salter-Duke
The question of having Jmol used on wikipedia has again been raised on the commons email list. On contributor to the discussion says that the jmol mediawiki extension now only works with an older version of mediawiki. Certainly my examples at:- http://wiki.jmol.org:81/index.php/User:Bduke are not

Re: [Jmol-users] Jmol MediaWiki extension, works in preview but not on live page

2007-03-26 Thread joseph . r . moran
r-2007 06:22 To jmol-users@lists.sourceforge.net cc [EMAIL PROTECTED] Subject Re: [Jmol-users] Jmol MediaWiki extension, works in preview but not on live page Hi Joseph, Can you give an URL to your wiki so that I can check myself ? I have uploaded the latest version of JmolExtension.ph

Re: [Jmol-users] Jmol MediaWiki extension, works in preview but not on live page

2007-03-24 Thread Nicolas Vervelle
Hi Joseph, Can you give an URL to your wiki so that I can check myself ? I have uploaded the latest version of JmolExtension.php on the Jmol Wiki: http://wiki.jmol.org:81/index.php/MediaWiki/JmolExtension.php At the end of the mail, I have put a stripped version of my LocalSettings.php file.

Re: [Jmol-users] Jmol MediaWiki extension, works in preview but not on live page

2007-03-23 Thread joseph . r . moran
; 23-Mar-2007 19:06 To jmol-users@lists.sourceforge.net cc [EMAIL PROTECTED], [EMAIL PROTECTED] Subject Re: [Jmol-users] Jmol MediaWiki extension, works in preview but not on live page Bob Hanson wrote: Nicolas Vervelle wrote: If you can easily test modifications, I can try to help you

Re: [Jmol-users] Jmol MediaWiki extension, works in preview but not on live page

2007-03-23 Thread Bob Hanson
Nicolas Vervelle wrote: > If you can easily test modifications, I can try to help you with ideas > to make the extension working. > I have some problems with understanding the internal workings of > MediaWiki, and this part is really difficult (finding how to include > the links to Jmol javascr

Re: [Jmol-users] Jmol MediaWiki extension, works in preview but not on live page

2007-03-23 Thread Nicolas Vervelle
To jmol-users@lists.sourceforge.net cc

Re: [Jmol-users] Jmol MediaWiki extension, works in preview but not on live page

2007-03-23 Thread joseph . r . moran
; } > } > $this->mJmolTagPresent = false; > } 606c621,622 < $wgHooks['ParserAfterStrip'][] = $wgJmolExtension; --- > // $wgHooks['ParserAfterStrip'][] = $wgJmolExtension; > $wgHooks['BeforePageDisplay'][] = $wgJmolExtension;

Re: [Jmol-users] Jmol MediaWiki extension, works in preview but not on live page

2007-03-23 Thread Nicolas Vervelle
If you can easily test modifications, I can try to help you with ideas to make the extension working. I have some problems with understanding the internal workings of MediaWiki, and this part is really difficult (finding how to include the links to Jmol _javascript_ files only once per page, an

Re: [Jmol-users] Jmol MediaWiki extension, works in preview but not on live page

2007-03-23 Thread joseph . r . moran
Hi Nico. Changed line 576 as you suggested, but no joy -- the behavior is the same. --JRM "Nicolas Vervelle" <[EMAIL PROTECTED]> 23-Mar-2007 15:33 To jmol-users@lists.sourceforge.net cc [EMAIL PROTECTED] Subject Re: [Jmol-users] Jmol MediaWiki extension, works in pr

[Jmol-users] Jmol MediaWiki extension, works in preview but not on live page

2007-03-23 Thread joseph . r . moran
Hi folks. I support a small internal wiki for group use within my company. Recently a chemist inquired about embedding Jmol within a wiki page, and I found the Jmol MediaWiki extension: http://wiki.jmol.org:81/index.php/MediaWiki I installed the extension according to the instructions and fou