Juca, thanks for the input! Interesting idea to use JS within SVG. For now, I will pursue the JAVA applet route, since it still seems to be most natural way to address the issue of interactive labs. If the related management issues regarding security and availability of applets in browsers are insurmountable, we should explore your suggestion.
To address these issues, I worked on a 'strawman' framework and policies by starting a SourceForge project. It contains a simple JAVA source tree for a single applet and some documents to start the discussion on management. I still want to write up the proposal on how to integrate applets into Wikiversity lessons, using a wiki markup similar to images. Something like [[Applet:pendulum.jar|class=PendulumApplet|StripChart=Yes]] that is 'transformed' to <Applet/> HTML with matching arguments and parameters.
If you are interested, look at https://sourceforge.net/projects/labsatwiki/ . Again, all this is in the *planning* phase, so please chime in.
Andreas =:-)
Felipe Sanches wrote:
because I can *not* draw a simple, arbitrary length arrow in JS without coding the actual rendering of the lines pixel by pixel. This is very underwhelming, so say the least!!
If anybody knows differently, please educate me! But JS is just not appropriate for drawing any complex geometrical forms, like a "lab course" at Wikiversity will need.
once I have used a mediawiki extension that allows us to embed svg files in the wikitext inside a <svg></svg> tag. It allows you to dinamically manipulate vectorial elements through javascript, which is enabled inside the svg, even if mediawiki is (as it is by default) blocking javascript on the page. I mean, inside the svg, javascript is always allowed.
This can be used with svg enabled browsers to draw moving arrows, rectangles, elipses, etc. (Firefox 1.5+ supports SVG, and IE needs a plugin for that)
Juca _______________________________________________ Wikitech-l mailing list Wikitech-l@wikimedia.org http://mail.wikipedia.org/mailman/listinfo/wikitech-l