Applet doesn't work

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Alastair McFarlane

    Applet doesn't work

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

    <applet code="billsCloc k.class" width="100" height="100">
    <param name="BGCOLOR" value="000000">
    <param name="FACECOLOR " value="FFFFFF">
    <param name="SWEEPCOLO R" value="FF0000">
    <param name="MINUTECOL OR" value="008080">
    <param name="HOURCOLOR " value="000080">
    <param name="TEXTCOLOR " value="000000">
    <param name="CASECOLOR " value="000080">
    <param name="TRIMCOLOR " value="C0C0C0">
    <param name="LOGOIMAGE URL" value="java.gif ">
    <param name="LOCALONLY " value="1">
    </applet>


  • Ike

    #2
    Re: Applet doesn't work

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

    "Alastair McFarlane" <alitheg@2-athol.fsnet.co. uk> wrote in message
    news:c1s5hk$kja $1@news5.svr.po l.co.uk...[color=blue]
    > How do I modify the following code if the .class files are in a different
    > location (another server)?
    >
    > <applet code="billsCloc k.class" width="100" height="100">
    > <param name="BGCOLOR" value="000000">
    > <param name="FACECOLOR " value="FFFFFF">
    > <param name="SWEEPCOLO R" value="FF0000">
    > <param name="MINUTECOL OR" value="008080">
    > <param name="HOURCOLOR " value="000080">
    > <param name="TEXTCOLOR " value="000000">
    > <param name="CASECOLOR " value="000080">
    > <param name="TRIMCOLOR " value="C0C0C0">
    > <param name="LOGOIMAGE URL" value="java.gif ">
    > <param name="LOCALONLY " value="1">
    > </applet>
    >
    >[/color]


    Comment

    • Alastair McFarlane

      #3
      Re: Applet doesn't work

      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" <rxv@hotmail.co m> wrote in message
      news:RIm0c.2646 9$W74.1937@news read1.news.atl. earthlink.net.. .[color=blue]
      > it's in the "codebase" and archive tags. Usually, these point to same
      > server, but I believe can point elsewhere. See
      > https://www.technalink.com/vdist/eat...ydroline1.html for an example of
      > using them -Ike
      >
      > "Alastair McFarlane" <alitheg@2-athol.fsnet.co. uk> wrote in message
      > news:c1s5hk$kja $1@news5.svr.po l.co.uk...[color=green]
      > > How do I modify the following code if the .class files are in a[/color][/color]
      different[color=blue][color=green]
      > > location (another server)?
      > >
      > > <applet code="billsCloc k.class" width="100" height="100">
      > > <param name="BGCOLOR" value="000000">
      > > <param name="FACECOLOR " value="FFFFFF">
      > > <param name="SWEEPCOLO R" value="FF0000">
      > > <param name="MINUTECOL OR" value="008080">
      > > <param name="HOURCOLOR " value="000080">
      > > <param name="TEXTCOLOR " value="000000">
      > > <param name="CASECOLOR " value="000080">
      > > <param name="TRIMCOLOR " value="C0C0C0">
      > > <param name="LOGOIMAGE URL" value="java.gif ">
      > > <param name="LOCALONLY " value="1">
      > > </applet>
      > >
      > >[/color]
      >
      >[/color]


      Comment

      • Michael Winter

        #4
        Re: Applet doesn't work

        On Mon, 1 Mar 2004 18:02:47 -0000, Alastair McFarlane
        <alitheg@2-athol.fsnet.co. uk> wrote:

        [Using the codebase and archive attributes]
        [color=blue]
        > 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.[/color]

        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.infosystem s.www.authoring.html.

        Hope that helps,
        Mike

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

        Comment

        • Alastair McFarlane

          #5
          Re: Applet doesn't work

          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.Winter@bluey onder.co.invali d> wrote in message
          news:opr3644ffx 5vklcq@news-text.blueyonder .co.uk...[color=blue]
          > On Mon, 1 Mar 2004 18:02:47 -0000, Alastair McFarlane
          > <alitheg@2-athol.fsnet.co. uk> wrote:
          >
          > [Using the codebase and archive attributes]
          >[color=green]
          > > 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.[/color]
          >
          > 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.infosystem s.www.authoring.html.
          >
          > Hope that helps,
          > Mike
          >
          > --
          > Michael Winter
          > M.Winter@blueyo nder.co.invalid (replace ".invalid" with ".uk" to reply)[/color]


          Comment

          Working...