Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / May 2005

Tip: Looking for answers? Try searching our database.

Two fiendish applet problems

Thread view: 
JavaEnquirer - 20 May 2005 17:20 GMT
1. We use IE6 on Windows 2000 and I've developed a Java 1.5 applet. The
problem is, HTMLConverter doesn't seem to work. If the 1.5 jre/plug-in
is present on the client machine the applet runs fine, otherwise, it
does not. I thought that if the required jre wasn't present, the
HTMLConverter generated tags would initiate a download. Instead, IE
complains that ActiveX has been disabled. However, every ActiveX
property on IE6 has been set to enabled.

2. We have customised a 3rd party product to launch a URL if a certain
button is clicked. If the URL points to a standard HTML page everything
works fine. However, if the URL points to an applet page, the applet
does not get launched in the new browser window - instead, it hijacks
one of the existing windows and blows up. The application launching my
browser/applet is also an applet. I've tried javascript to launch my
applet in yet another window, but that doesn't work either.

Could the problem stem from the fact that th 3rd party applet is run
via Oracle's JInitiator? Has any one had problems mixing JInitiator
applets with normal ones which are trying to use the browser's default
plugin.

Many thanks in advance.
Andrew Thompson - 20 May 2005 17:56 GMT
> 1. We use IE6 on Windows 2000 and I've developed a Java 1.5 applet. The
> problem is, HTMLConverter doesn't seem to work. If the 1.5 jre/plug-in
> is present on the client machine the applet runs fine, otherwise, it
> does not.

You are far better off using the conventional <applet> element
and either the JavaVersionApplet or Java WebStart for the the
versioning requirements.  However..

It might be that you have specified a specific version of
1.5, rather than simply '1.5 or greater'.

Failing that, you might need to post the malformed HTML produced
by HTMLConverter, or a link to the page.

> 2. We have customised a 3rd party product to launch a URL if a certain
> button is clicked.

In a ..pop-up window?

>...If the URL points to a standard HTML page everything
> works fine. However, if the URL points to an applet page, the applet
> does not get launched in the new browser window -

Oh yeah, that's a pop-up.

>..instead, it hijacks one of the existing windows and blows up.

SP2?  In this day and age it is rather dangerous to rely on
showDocument(url), let alone showDocument(url, "_blank").

I suggest you redesign your web app around a single window.

However I think these problems lie deeper than pop-up blockers.

>..The application launching my
> browser/applet is also an applet. I've tried javascript to launch my
> applet in yet another window, but that doesn't work either.

Bit lazy is it?  Tried flogging it?
<http://www.physci.org/codes/javafaq.jsp#exact>

> Could the problem stem from the fact that th 3rd party applet is run
> via Oracle's JInitiator?

Quite possibly.  The readme* mentions installing the Oracle JVM,
that might be clashing with the existing JVM.

*
<http://www.oracle.com/technology/software/products/developer/files/1.3.1.18/read
me.html
>

HTH

Signature

Andrew Thompson
http://www.PhySci.org/codes/  Web & IT Help
http://www.PhySci.org/  Open-source software suite
http://www.1point1C.org/  Science & Technology
http://www.LensEscapes.com/  Images that escape the mundane



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.