-
Problem Loading Applets with <object> vs. <applet>
Hello everyone,
I am running into some trouble with using the <object> tag to run an applet in a web page. I am trying to run a very simple applet from the Core Java book. Here is my HTML:
<html>
<body>
<applet code="NotHelloWorldApplet.class" width="300" height="100">
</applet>
<object classid="java:NotHelloWorldApplet.class" codetype="application/java" height="300" width="100">
</object>
<applet code="NotHelloWorldApplet.class" width="300" height="100">
</applet>
</body>
</html>
When I view the page in Internet Explorer 6.0, the two <applet> tags correctly load the applet. The <object> tag, however, displays a box with a red X in the corner. I don't think it's even starting up the virtual machine. I thought the <object> tag was supported in IE 6.0, so I assume I am doing something wrong. Can anyone offer some assistance? Thank you.
--Chris Nauroth
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks