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 block several things. 

As usual, Bob had the rabbit ready in his hat. There is an option to avoid 
evaluation of 
javascript from inside Jmol.
This prevents javascript injection in the wiki both from <script> tags and from 
called scripts 
contained in another wiki page.
Tested and commited (revision 10478).

Aggressive testers are welcome.


Nico, you were right: scripts can be invoked that are the contents of another 
wiki page. 
Sometimes the name or path of that page gives trouble, but it is possible (I 
still have to 
learn the intricacies of namespaces, subpages, categories).


> I don't know if scripts would be used much, but using independent files can 
> help apply similar 
> display options to a lot of a pages. 
> I haven't tested if inserting templates inside <jmol> tags works : that could 
> be an other way of 
> running the same script on a lot of pages. 

It seems not possible to use templates for this.



------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to