Thanks, Biswajit. 
 
The client's browser is always under the client's control, that is the web model we have to operate under.  If you try and take the control away from the user (popup windows, etc.) users are almost always end up dissatisfied with the experience.  The best you can do for this sort of thing is probably using some funky page onUnload() actions... which are unreliable at best.  Another problem is that trying to get something this complex to work on Exploder, Nutscrape, AmericaOffLine, etc. in all the myriad versions will take you several weeks.
 
Why not simply give the client the "cancel" option?  They will know best if they want to wait.  Users are getting better and better about using the web.  Or, better yet, forget the long-loading applet altogether, just send them straight to the _javascript_ menu, and THEN give them the link to get the Applet.  I can bet $100 no one will ever click that link...
 
A friend of mine just spent 2 days re-writing the Calendar class functions for his 100-line applet because they do not work the same on the M$FT JVM and Sun JDK 1.3 JVM.  You ended up with 42 day months in one case, and for the other, the published API methods just did not exist.  And no, I don't need any comments right now from the rest of the list on how the applets are just so -ing wonderful. Let's not open that can of worms again. If you like them, then YOU use them. :->  As for my humble opinion, if you can do without an applet, then you just saved yourself weeks of grief.
 
Just my additional 0.002 cents
 
Greg
-----Original Message-----
From: Biswajit Ghosal [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 13, 2003 3:39 AM
To: JDJList
Subject: [jdjlist] RE: Swing Applet with Object tag. Redirecting problrm from <NOEMBED></NOEMBED>

HSFGreg,
 
    Not a bad idea, But the problem remains the same. i.e. if the user cancel the plugin download.
 
Biswajit
----- Original Message -----
To: JDJList
Sent: Thursday, January 09, 2003 12:45 AM
Subject: [jdjlist] RE: Swing Applet with Object tag. Redirecting problrm f rom <NOEMBED></NOEMBED>

Biswajit,

How about giving them a cancel button while the Applet is loading that takes them to the _javascript_ menu?  You can then remove the cancel button once the applet is fully loaded.  Simple way to do this, is to start a JS timer checking for an existence of an applet's internal public attribute every second or so, when it does show up, stop the timer and remove the cancel button from the HTML using the <DIV> tag's inner html attribute.

Any thoughts?

HSFGreg

-----Original Message-----
From: Biswajit Ghosal [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 07, 2003 9:32 PM
To: JDJList
Cc: Biswajit Ghosal
Subject: [jdjlist] Swing Applet with Object tag. Redirecting problrm
from <NOEMBED></NOEMBED>



Hi,



I am writing a swing applet for a menu. I have two versions of the menu, one
is the applet and the other one is the _javascript_ version of the same menu.
If the user has the plug-in installed, the applet version will be loaded and
if the user does not, then the popup for the installation is coming.

Now, I want to redirect to the page, which contains the _javascript_ version
of the menu, if the user cancel the download.

I am using the object tag like the following



<OBJECT classid="" width="100%"
height="100%" align="baseline"
codebase=""http://java.sun.com/products/plugin/1.2.2/jinstall-1_2_2-win.cab#V">http://java.sun.com/products/plugin/1.2.2/jinstall-1_2_2-win.cab#V
ersion=1,2,2,0">

<PARAM name="code" value="OslMenu">

<PARAM name="codebase" value=".">

<PARAM NAME = ARCHIVE VALUE = "menu.jar" >

<PARAM name="type" value="application/x-java-applet;version=1.2.2"><COMMENT>

<EMBED type="application/x-java-applet;version=1.2.2" width="200"
height="200" align="baseline" code="OslMenu" codebase=""
pluginspage="http://java.sun.com/products/plugin/1.2/plugin-install.html">

<NOEMBED></COMMENT>

</NOEMBED>

</EMBED>

</OBJECT>



I can not write the following within the <NOEMBED></NOEMBED>



<script language='_javascript_'>

document.lication.href="";

<script/>



Any help??

Thank you in advance.



Biswajit
Sun Certified java programmer
Ontrack Systems Limited
276B Lake Gardens
Kolkata - 700045
India
Phone - 91-33-4178434,35
Fax - 91-33-4221274
Mobile - +919830187749



____________________________________________________
To change your JDJList options, please visit:
http://www.sys-con.com/java/list.cfm

Be respectful! Clean up your posts before replying
____________________________________________________

____________________________________________________
To change your JDJList options, please visit:
http://www.sys-con.com/java/list.cfm

Be respectful! Clean up your posts before replying
____________________________________________________
____________________________________________________
To change your JDJList options, please visit:
http://www.sys-con.com/java/list.cfm

Be respectful! Clean up your posts before replying
____________________________________________________
____________________________________________________
To change your JDJList options, please visit:
http://www.sys-con.com/java/list.cfm

Be respectful! Clean up your posts before replying
____________________________________________________

Reply via email to