[5370] in java-interest
Caching of applets, params, and dogs...
daemon@ATHENA.MIT.EDU (Robby Stephenson)
Tue Feb 6 22:20:11 1996
To: java-interest-digest@java.sun.com
Date: Tue, 06 Feb 1996 20:44:17 EST
From: Robby Stephenson <rlstep@MIT.EDU>
Hi all!
I am still a newcomer to this Java thing. I've been playing around with some
home-brewed applets, and a couple questions about Netscape's handling of
applets have popped up. I'd appreciate it if anyone could pass along some of
their knowledge!
Say I have an applet that just draws an image, but takes the image as a PARAM.
(OK, this is dumb, but it's an example)
This is what's in the .html doc.
<APPLET CODE="showImage.class" WIDTH=200 HEIGHT=200>
<PARAM NAME="img" VALUE="dog.gif"></APPLET>
<APPLET CODE="showImage.class" WIDTH=200 HEIGHT=200>
<PARAM NAME="img" VALUE="dog.gif"></APPLET>
<APPLET CODE="showImage.class" WIDTH=200 HEIGHT=200>
<PARAM NAME="img" VALUE="cat.gif"></APPLET>
Here's my questions:
1) Is the applet bytecode cached? (I believe it is, since Netscape won't
reload my applets.)
2) Is dog.gif cached? In other words, does Netscape load dog.gif twice,
once for each applet?
3) Does Netscape reload the applet for the third applet call? Is init()
called every time? And, is the bytecode cached and executed three times, with
an image load only the first and third times?
Well, now that that's in front of me, I guess I could just write a simple code
to do that. But, is Netscape's implementation of applet caching "normal"?
Thanks to any and all who could help me out here!
Blue skies,
Robby
--------
Robby Stephenson rlstep@mit.edu
http://web.mit.edu/rlstep/www/index.html
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com