[Ekit-info] Ekit & Javascript
Brought to you by:
hexidec
|
From: Fincom <fi...@fr...> - 2002-11-22 14:06:44
|
Hi,
I've download Ekit and find it very well. Like others, i tried to integra=
te=20
Ekit in an CMS, but the example of html page that came with Ekit doesn't =
work=20
under all navigators (IE, NS, Mozilla) ...
I've made an change in javascipt and now all work fine.
EkitAppletDemo2.html : changes the code with this
<SCRIPT LANGUAGE=3D"JavaScript">
var _info =3D navigator.userAgent;
var _ns =3D false;
var _ie =3D (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 &&=
=20
_info.indexOf("Windows 3.1") < 0);
=09function copyEntry()
{
=09=09if (_ie =3D=3D true) {
=09=09=09document.Formular.EkitH.innerText =3D document.Ekit.getDocumentT=
ext();
=09=09=09return true;
=09=09} else if (_ns =3D=3D true) {
=09=09=09alert("hi ns");
=09=09=09document.Formular.EkitH.innerText =3D document.Ekit.getDocumentT=
ext();
=09=09=09alert(document.Ekit.getDocumentText());
=09=09=09document.Formular.EkitH.value =3D document.Formular.EkitH.innerT=
ext;
=09=09=09alert(document.Formular.EkitH.value);
=09=09=09return true;
=09=09} else {
=09=09=09alert("hi else");
=09=09=09document.Formular.EkitH.value =3D document.Ekit.getDocumentText(=
);
=09=09=09alert(document.Ekit.getDocumentText());
document.Formular.EkitH.value =3D=20
document.Formular.EkitH.innerText;
=09=09=09alert(document.Formular.EkitH.value);
=09=09=09return true;
=09=09}
=09}
</SCRIPT>
Hope this help.
I have some problem with image. I have an error when trying to add an ima=
ge.=20
when i look in the code source of Ekith i found that it use the filechoos=
er=20
class. Or in order to access file from applet, it's important to sign the=
=20
jar.
I'll try to do it and give u result. Perhaps someone have a same problem=
, no=20
?
Thanks for all and Have Fun
Fincom
|