hi,
i think you can use this code :
var ns = document.layers ? true : false ;
var ie = document.all ? true :false;
if (ns)
document.applets["myapplet"].add(string);
else
document.all("myapplet").add(string);
end if
cheers,
vijay.
-----Original Message-----
From: Van Minh Kieu [mailto:minh@m...]
Sent: 04 July 2000 16:03
To: javascript
Subject: [javascript] Applets...with javascript
Hi,
I need help,
I had an applet that accept a string from javascript and form using button.
Everything works
fine until I use HTMLconverter. Because I use Java2 with Graphics2D class I
need to apply HTMLcoverter to all my *.asp files. However, the command:
<form ...>
<input type="button"
onclick="document.myapplet.add(string)">
</form>
use to work before conversion now doesnot work...Netscape browser say no
properties for myapplet.
Does anyone come across this problems could show me how to work around it
please.
Thanks.
---
Wrox Professional Wireless Developer Conference, Amsterdam, July 10-12.
Covering application of WAP, XML, ASP, Java and C++ to wireless computing,
choose from 40+ technical sessions delivered by industry experts:
http://www.wroxconferences.com/ConferenceHome.asp?ConfID=9