[pmwiki-users] embedd a java aplet with specific file extension

noskule noskule at gmx.net
Thu Jan 12 13:24:21 CST 2006


hi list
I would like to embed a java applet with a specific fileextension in
wikipages.

http://pmwiki.netstreams.org/index.php?n=TestPages.EmbeddJava

So I took the svg script and changed it as follows:



---------------------------------
SDV($ZirTagFmt, 
   "<applet CODEBASE='data/media' ARCHIVE='http://netstreams.org/netstreams/scripts/zirkel.jar'
CODE='rene.zirkel.ZirkelApplet.class' width='580' height='400'>Z.u.L. Applet
<param name='file' value='\$LinkUrl'>
<param mane='style' value='3d'>
</applet>");

Markup('zir', '<urllink', 
  "/\\b(?>(\\L))([^\\s$UrlExcludeChars]+\\.zir)/e",
  "Keep(\$GLOBALS['LinkFunctions']['$1'](\$pagename,'$1','$2',NULL,'$1$2',
    \$GLOBALS['ZirTagFmt']), 'L')");
 
SDVA($WikiStyleAttr,array(
  'height' => 'img|object|embed',
  'width' => 'img|object|embed'));
---------------------------------

Is it somhow possible to overwrite  the default size of the applet in
the wikitext like in the svg example?
	%width='580' height='400'% Attach:Ellipse.zir

if I put
	ARCHIVE='\$ScriptUrl/scripts/zirkel.jar'
instead of the absolute url $ScriptUrl shwos up in the html code, what
im doing wrong here ?


what is the $Globals for, what could be defined with it?

thanx for any hints
nos





More information about the pmwiki-users mailing list