Solved

How to force browser to reload an applet?

Posted on 1998-12-21
10
642 Views
Last Modified: 2011-09-20
Even though I've set the Netscape 4.07 and IE4.0 options to reload each time, neither browser detects that my Java applet has been updated on the server.

The applet classes are built directly into the server directories, so each time I rebuild an applet, I'd like to just hit the browser "Reload" (or "Refresh") to see the changes.  But it's necessary to restart the browser each time.

I want this just for speed of debugging -- not for the final release.

The "home" HTML page never changes, just the applet it loads.  But even when I change the date of the home page, "reload" doesn't refresh the page with the updated applet.

Any ideas?

Thanks in advance.
0
Comment
Question by:elfield
  • 4
  • 2
  • 2
  • +2
10 Comments
 
LVL 5

Expert Comment

by:Christian_Wenz
ID: 1840936
I know that Netscape does _not_ reload an applet if the HTML file it is referenced in is opened from Windows Explorer using a double click.
It may also help to put this line in your HTML page:
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
or, try another browser like opera (operasoftware.com), install Sun's Java plugin and then hope for the best :-)
0
 
LVL 4

Expert Comment

by:rafistern
ID: 1840937
You can also put in
<META HTTP-EQUIV="Expires" CONTENT="Tue, 20 Aug 1996 14:25:27 GMT">

or some other date that has already passed and all browsers should refresh it every time. The pragma-no-cache is not universally supported.

I don't know if this will solve your problem though.

From my experience the best thing to do is close and reopen the browser.
0
 
LVL 2

Expert Comment

by:vendrig
ID: 1840938
For Netscape: press SHIFT while giving reload command. This the only reason that I prefer NS over IE(3) for debugging applets if I need to use a browser for it.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:elfield
ID: 1840939
vendrig's suggestion (SHIFT-Reload) worked -- Thanks.

I tried the others without success,  but I may not have done them correctly.

How do I grade?
0
 
LVL 12

Expert Comment

by:Otta
ID: 1840940
You "grade" by inviting a specific expert to post an "answer".
Then, you can "grade" or "reject" that answer.
0
 

Author Comment

by:elfield
ID: 1840941
Dear Vendrig,

Your comment  worked.  Please "answer" the question so I can grade it.

Thanks.
0
 
LVL 2

Accepted Solution

by:
vendrig earned 50 total points
ID: 1840942
For Netscape: press SHIFT while giving reload command. This the only reason that I prefer NS over IE(3) for debugging applets if I need to use a browser for it.

Good luck!
0
 
LVL 2

Expert Comment

by:vendrig
ID: 1840943
BTW: it also works in frames, i.e. press SHIFT while you do a frame reload via rightmouse-click menu. Saved me some time in some applications...
0
 
LVL 5

Expert Comment

by:Christian_Wenz
ID: 1840944
weird - I always use shift-reload, but I've never seen any effect on applets.
0
 
LVL 2

Expert Comment

by:vendrig
ID: 1840945
Well, I know from experience it works for 3 and 4.0. I don't know about 4.5 and newer.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Need help fixing "Flash of Unstyled Content" problem with website 4 44
HTML <font style="color:red"> 9 51
send email part1 9 39
Calculating percentage 2 26
When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question