CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2005
    Posts
    7

    Question Applet Runs in Mozilla but not in IE (same VM used, others run ok)

    Okay, I have asked several people about this, but with no luck. I have a java applet called Samello (It's a game using Othello rules), and the webpage I use for it uses the following html code:

    <html>
    <head><title>Samello 1.0</head>
    <body>
    <center>
    <applet code= "Samello.class" width=600 height=400></applet>
    </center>
    </body>
    </html></title>

    The applet uses two class files, Samello.class and Board.class (the second is a child of the canvas class used to paint just the board).

    I have used cardlayout and subclassed off of JApplet rather than Applet.

    The applet loads and works fine in Mozilla (basically a netscape like browser), but will not load in ie (not even a grey square with a red 'X', just nothing). Internet explorer reports being "done" and that's all. I have run many other applets in IE, both from the WEB and from my machine. All of the other applets have run fine with no problems on Mozilla and on Internet Explorer. (I do not have Netscape installed, but am sure it would run well on it)

    I am using the same VM on my Interenet Explorer as I am on my Mozilla browser.

    Any thoughts on how this is happening?
    Thanks.

    -Samantha

  2. #2
    Join Date
    Apr 2005
    Location
    Norway
    Posts
    3,934

    Re: Applet Runs in Mozilla but not in IE (same VM used, others run ok)

    Quote Originally Posted by amethystsw
    Internet explorer reports being "done" and that's all.
    Well, do you know if the applet is running at all (it might be running, but not updating it UI etc.)?

    And instead of the APPLET tag, have you tried using the OBJECT(or EMBED) tag?

    - petter

  3. #3
    Join Date
    Apr 2003
    Location
    Los Angeles area
    Posts
    776

    Re: Applet Runs in Mozilla but not in IE (same VM used, others run ok)

    Check your java plugin config in control panel to make sure that the checkbox for IE is clicked in the advanced tab under Applet tag support.
    "The Chicken and Rice MRE is not a personal lubricant."

  4. #4
    Join Date
    Aug 2005
    Posts
    7

    Re: Applet Runs in Mozilla but not in IE (same VM used, others run ok)

    Okay... nevermind... I'm an idiot! (heheheh) I can't believe I actually did that. I had the end of the title tag at the bottom of the document somehow. I have no idea how/why that happened. But there you have it. (Why in the world Mozilla would open the page baffles me)

    Sorry,
    Sam

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured