hello friend,
the problem you quoted may have been arise out of the browser specific
package problem,
as you are using netscape packages so that might not work with IE.
the code you are writing is not valid for all browsers but will only work
for netscape..
so check that out...
and reply me back
Aashish Kaushik
www.jilit.com
TEL : 0120-4777881(Extn. 2390)
E-MAIL:[EMAIL PROTECTED]
> Dear Friends,
>
> I know it is off the topics. But
> if
> any body can help me.
>
>
> I'm getting a InvocationTargetException on both
> Netscape and IE on Windows. Yet, it works perfectly
> on Netscape on Macintosh.
>
> Here's the code:
>
>
> try {
> Class c = Class.forName(
> "netscape.javascript.JSObject" );
> Method ms[] = c.getMethods();
> String methName = "";
>
> for( int i = 0 ; i < ms.length ; i++ ) {
> methName = ms[i].getName();
>
> if( methName.compareTo("getWindow") == 0 )
> mGetWindow = ms[i];
> else if( methName.compareTo("eval") == 0 )
> mEval = ms[i];
> }
>
> Object a[] = new Object[1];
> a[0] = theApplet;
>
> // This causes an InvocationTargetException on
> both
> Netscape and IE on Windows only (Mac Netscape OK)
> jsWindow = mGetWindow.invoke( c, a ); //
> JSObject
> jswin = (JSObject) JSObject.getWindow(this);
>
> bInitialized = true;
> }
> catch( java.lang.ClassNotFoundException cnfe ) {
> cnfe.printStackTrace();
> }
> catch( java.lang.IllegalAccessException iae ) {
> iae.printStackTrace();
> }
> catch( java.lang.reflect.InvocationTargetException
> ite ) {
> ite.printStackTrace();
> }
>
>
>
> Thanks
> for all the help
> Zabid
>
>
> __________________________________________________
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail
> http://personal.mail.yahoo.com/
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html