IPB

Welcome Guest ( Log In | Register )



Tags
This content has not been tagged yet
 
Reply to this topicStart new topic

What Is The Xhtml 1.1 Code To Embed An Applet?


beeseven
no avatar
Privileged Member
*********
Group: Members
Posts: 629
Joined: 26-February 05
Member No.: 3,995



Post #1 post Jul 15 2005, 10:48 PM
I've been doing a lot of java stuff recently and some is pretty neat, so I'd like to put it on the internet. I'm using XHTML 1.1 for all my pages, though, and according to W3Schools <applet> doesn't exist anymore and to use object.

It's not working, though. There are a bunch of attributes (http://www.w3schools.com/tags/tag_object.asp) and I have no idea which things I need to use. Which do I put for an applet?
Go to the top of the page
+Quote Post
rejected
no avatar
Super Nuclear Advanced Member
*********
Group: Members
Posts: 720
Joined: 30-October 04
From: Texas
Member No.: 2,058
myCENT:61.10



Post #2 post Jul 15 2005, 11:19 PM
I'm not an XHTML expert, but I think you will find this excerpt from http://academ.hvcc.edu/~kantopet/xhtml/ind...ks&printme=true interesting.

QUOTE
The <object> Tag

The primary means for including embedded content in a document is with the <object> tag. It had been created to replace both the <embed> and the <applet> tags. With XHTML, the <applet> tag has been revived, but not the <embed> tag.

The <object> tag allows you to embed an object in a document. This object can be static or it can be executable.

If the object is data for a plugin the browser has available, you can just specify the data to be processed. If the object is and external program, you can specify both the program name and location and the data it is supposed to process.

You use the classid attribute to specify the name of an applet to be loaded, and the codebase to specify an address for it (classid will take a full URL, but this split is from older methods of invoking applets). You can also specify a codetype to identify the MIME-type of the applet.

The data attribute specifies the location of data to go with the applet. The type attribute specifies the MIME-type for this, not the applet.

The <object> tag also has an end tag. It takes two forms of content. One is alternate content if the object cannot be loaded. The other is a series of <param> tags that can be used to pass parameters to the applet.

Here is a sample where an image has been embedded using the following. Note that such things as width, height and border can be specified directly within the tag. Also note that Explorer does not quite render it correctly, putting it in a window with scroll bars. This tag, as used below, currently only works in Explorer.
CODE
<object data="../../images/banner_opera.gif"
   width="466" height="60"  type="image/gif">
A sample image embedded with an <object> tag.
</object>
Go to the top of the page
+Quote Post
beeseven
no avatar
Privileged Member
*********
Group: Members
Posts: 629
Joined: 26-February 05
Member No.: 3,995



Post #3 post Jul 15 2005, 11:31 PM
Yay it works! Your link helped me tweak what I had found so far.
Go to the top of the page
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

    Topic Title Replies Topic Starter Views Last Action
No New Posts   3 -Sky- 629 12th June 2009 - 08:48 PM
Last post by: -Sky-
No New Posts 7 odomike 18,957 30th April 2008 - 02:44 PM
Last post by: FeedBacker
No new   97 Xenon 47,178 29th October 2009 - 04:25 PM
Last post by: magiccode9
No New Posts   11 bttfpromo 11,512 14th September 2004 - 08:55 PM
Last post by: Magic-Node
No New Posts   6 XtremeGamer99 6,296 9th February 2005 - 10:48 AM
Last post by: alexwhin
No new   25 gijoe18 24,458 20th February 2009 - 06:55 PM
Last post by: MALISH_
No New Posts   1 BCD 150 3rd September 2009 - 09:28 PM
Last post by: truefusion
No New Posts   5 Tetraca 1,226 15th July 2006 - 11:06 PM
Last post by: Plenoptic
No New Posts   4 icss21 2,976 7th March 2009 - 09:45 PM
Last post by: andreip
No New Posts   3 jglw22 866 26th May 2008 - 02:10 PM
Last post by: Framp
No New Posts   4 Forbidden 7,552 28th March 2008 - 07:37 PM
Last post by: saran
No New Posts   6 sargilla 6,789 4th November 2004 - 02:54 PM
Last post by: Lyon
No New Posts 7 alapidus 9,554 2nd November 2004 - 10:54 PM
Last post by: kelp
No New Posts   4 icss21 940 22nd July 2006 - 02:24 PM
Last post by: JField
No New Posts   0 Lyon 3,551 3rd November 2004 - 07:27 PM
Last post by: Lyon


 



RSS Open Discussion Time is now: 8th November 2009 - 04:39 PM

Web Hosting Powered by ComputingHost.com.