smarty and javascript
| From: | Richard Tango-Lowy | Date: | Tue, 27 Aug 2002 04:02:55 +0000 |
| Subject: | smarty and javascript | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-5829@lists.php.net to get a copy of this message | ||
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-install.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
Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc
Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc