RE: [SMARTY] smarty and javascript

From: Date: Tue, 27 Aug 2002 07:30:15 +0000
Subject: RE: [SMARTY] smarty and javascript
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-5832@lists.php.net to get a copy of this message
What 'bout this part: ARCHIVE="ekitapplet.jar" You may need to change the path, as it is relative to the script that is using your templates... ----------------------------------------------------------- Rasmus T. Mohr Phone : +45 70 117 117 Application Developer Direct : +45 36 910 122 Netpointers Intl. Mobile : +45 28 731 827 Vestergade 18 B Website : www.netpointers.com 1456 Copenhagen K Email : rmo@netpointers.com Mr.Miyagi: "No matter how much karate you know, someone else know more" > -----Original Message----- > From: Richard Tango-Lowy [mailto:richtl@arscognita.com] > Sent: Tuesday, August 27, 2002 6:03 AM > To: smarty-general@lists.php.net > Subject: [SMARTY] smarty and javascript > > > I'm trying to embed the ekit (http://www.hexidec.com/ekit.php) java > wysiwyg html editor into a smarty template. The following works fine > alone, but fails with a "Class Not Found Exception" when I > embed it into > a smarty template. (Yes, I surrounded the code with > {literal}{/literal} > tags). Suggestions would be really appreciated. > > <SCRIPT LANGUAGE="JavaScript"> > var _info = navigator.userAgent; > var _ns = false; > var _ie = (_info.indexOf("MSIE") > 0 && > _info.indexOf("Win") > 0 && > _info.indexOf("Windows 3.1") < 0); > </SCRIPT> > <SCRIPT LANGUAGE="JavaScript1.1"> > var _ns = (navigator.appName.indexOf("Netscape") >= 0 && > ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0 > && > java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || > (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0))); > </SCRIPT> > <SCRIPT LANGUAGE="JavaScript"> > if (_ie == true) document.writeln('<OBJECT ID="Ekit" > classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH="500" > HEIGHT="400" > > codebase="http://java.sun.com/products/plugin/1.3/jinstall-13- > win32.cab#Version=1,3,0,0"><NOEMBED><XMP>'); > else if (_ns == true) document.writeln('<EMBED NAME="Ekit" > type="application/x-java-applet;version=1.3" > CODE="com.hexidec.ekit.EkitApplet.class" ARCHIVE="ekitapplet.jar" > WIDTH="500" HEIGHT="400" > > pluginspage="http://java.sun.com/products/plugin/1.3/plugin-in > stall.html"><NOEMBED><XMP>'); > </SCRIPT> > <APPLET CODEBASE="." CODE="com.hexidec.ekit.EkitApplet.class" > ARCHIVE="ekitapplet.jar" NAME="Ekit" WIDTH="500" > HEIGHT="400"></XMP> > <PARAM NAME="codebase" VALUE="."> > <PARAM NAME="code" VALUE="com.hexidec.ekit.EkitApplet.class"> > <PARAM NAME="archive" VALUE="ekitapplet.jar"> > <PARAM NAME="type" > VALUE="application/x-java-applet;version=1.3"> > <PARAM NAME="scriptable" VALUE="true"> > <PARAM NAME="DOCUMENT" > VALUE="<html><head></head><body><P><B>Embedded > Document</B></P><P>This is an <I>embedded</I> test parameter > formatted > as an <U>HTML</U> document.</body></html>"> > <PARAM NAME="STYLESHEET" VALUE="ekit.css"> > <PARAM NAME="LANGCODE" VALUE="en"> > <PARAM NAME="LANGCOUNTRY" VALUE="US"> > <PARAM NAME="TOOLBAR" VALUE="true"> > <PARAM NAME="SOURCEVIEW" VALUE="false"> > <PARAM NAME="EXCLUSIVE" VALUE="true"> > <PARAM NAME="MENUICONS" VALUE="true"> > </APPLET> > </NOEMBED></EMBED></OBJECT> > > > -- > ars Cognita Richard Tango-Lowy > --------------------- > President > richtl@arscognita.com > 603 424-0713 >

« previous php.smarty.general (#5832) next »