By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,940 Members | 1,454 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,940 IT Pros & Developers. It's quick & easy.

Applet doesn't work

P: n/a
How do I modify the following code if the .class files are in a different
location (another server)?

<applet code="billsClock.class" width="100" height="100">
<param name="BGCOLOR" value="000000">
<param name="FACECOLOR" value="FFFFFF">
<param name="SWEEPCOLOR" value="FF0000">
<param name="MINUTECOLOR" value="008080">
<param name="HOURCOLOR" value="000080">
<param name="TEXTCOLOR" value="000000">
<param name="CASECOLOR" value="000080">
<param name="TRIMCOLOR" value="C0C0C0">
<param name="LOGOIMAGEURL" value="java.gif">
<param name="LOCALONLY" value="1">
</applet>
Jul 20 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Ike
it's in the "codebase" and archive tags. Usually, these point to same
server, but I believe can point elsewhere. See
http://www.technalink.com/vdist/eato...ydroline1.html for an example of
using them -Ike

"Alastair McFarlane" <al*****@2-athol.fsnet.co.uk> wrote in message
news:c1**********@news5.svr.pol.co.uk...
How do I modify the following code if the .class files are in a different
location (another server)?

<applet code="billsClock.class" width="100" height="100">
<param name="BGCOLOR" value="000000">
<param name="FACECOLOR" value="FFFFFF">
<param name="SWEEPCOLOR" value="FF0000">
<param name="MINUTECOLOR" value="008080">
<param name="HOURCOLOR" value="000080">
<param name="TEXTCOLOR" value="000000">
<param name="CASECOLOR" value="000080">
<param name="TRIMCOLOR" value="C0C0C0">
<param name="LOGOIMAGEURL" value="java.gif">
<param name="LOCALONLY" value="1">
</applet>

Jul 20 '05 #2

P: n/a
Thanks, but how do I use them? Do I need both, or just one? Which one? I
have tried both but I may have done it wrong.

Alastair
"Ike" <rx*@hotmail.com> wrote in message
news:RI******************@newsread1.news.atl.earth link.net...
it's in the "codebase" and archive tags. Usually, these point to same
server, but I believe can point elsewhere. See
http://www.technalink.com/vdist/eato...ydroline1.html for an example of
using them -Ike

"Alastair McFarlane" <al*****@2-athol.fsnet.co.uk> wrote in message
news:c1**********@news5.svr.pol.co.uk...
How do I modify the following code if the .class files are in a different location (another server)?

<applet code="billsClock.class" width="100" height="100">
<param name="BGCOLOR" value="000000">
<param name="FACECOLOR" value="FFFFFF">
<param name="SWEEPCOLOR" value="FF0000">
<param name="MINUTECOLOR" value="008080">
<param name="HOURCOLOR" value="000080">
<param name="TEXTCOLOR" value="000000">
<param name="CASECOLOR" value="000080">
<param name="TRIMCOLOR" value="C0C0C0">
<param name="LOGOIMAGEURL" value="java.gif">
<param name="LOCALONLY" value="1">
</applet>


Jul 20 '05 #3

P: n/a
On Mon, 1 Mar 2004 18:02:47 -0000, Alastair McFarlane
<al*****@2-athol.fsnet.co.uk> wrote:

[Using the codebase and archive attributes]
Thanks, but how do I use them? Do I need both, or just one? Which one? I
have tried both but I may have done it wrong.


You could have posted your attempt, so we could tell you. However, whether
you used them properly or not may be of no consequence.

According to the HTML specification, for security reasons, Java applets
must be located in the same directory as the document, or in a
subdirectory. An entirely different server will certainly not satisfy
those restrictions. I don't know to what extent this is enforced.

Of the two attributes Ike was referring to, codebase is the most
appropriate. It is a URI that specifies the location of the class files.
Note that with the restriction above, this is intended to be a URI that is
relative to the base address of the document and should only go deeper
(into more directories, not out of them).

The archive attribute is used to "preload" class files by specifying a
comma-separated list of URIs.

Be aware that this is off-topic in this group: JavaScript is not Java.
More appropriate groups would be comp.lang.java or
comp.infosystems.www.authoring.html.

Hope that helps,
Mike

--
Michael Winter
M.******@blueyonder.co.invalid (replace ".invalid" with ".uk" to reply)
Jul 20 '05 #4

P: n/a
Thanks Michael
I hadn't even realised that this was actually Java. Thanks for pointing that
out!!!
Thanks again for your help

Alastair

"Michael Winter" <M.******@blueyonder.co.invalid> wrote in message
news:op**************@news-text.blueyonder.co.uk...
On Mon, 1 Mar 2004 18:02:47 -0000, Alastair McFarlane
<al*****@2-athol.fsnet.co.uk> wrote:

[Using the codebase and archive attributes]
Thanks, but how do I use them? Do I need both, or just one? Which one? I
have tried both but I may have done it wrong.


You could have posted your attempt, so we could tell you. However, whether
you used them properly or not may be of no consequence.

According to the HTML specification, for security reasons, Java applets
must be located in the same directory as the document, or in a
subdirectory. An entirely different server will certainly not satisfy
those restrictions. I don't know to what extent this is enforced.

Of the two attributes Ike was referring to, codebase is the most
appropriate. It is a URI that specifies the location of the class files.
Note that with the restriction above, this is intended to be a URI that is
relative to the base address of the document and should only go deeper
(into more directories, not out of them).

The archive attribute is used to "preload" class files by specifying a
comma-separated list of URIs.

Be aware that this is off-topic in this group: JavaScript is not Java.
More appropriate groups would be comp.lang.java or
comp.infosystems.www.authoring.html.

Hope that helps,
Mike

--
Michael Winter
M.******@blueyonder.co.invalid (replace ".invalid" with ".uk" to reply)

Jul 20 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.