473,388 Members | 902 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

nesting <applet>, <object> and <embed>

Dear usenet,

I'm having the following small problem.

I've been ask to add some Quicktime panoramas to a website. The author of
the panoramas has made two versions of each: One in MOV format, which needs
a Quicktime plugin, and one Java applet. He's also kindly supplied me with
sample HTML code for each.

The code looks like this (simplified):

For the MOV-files:

<object ... blahb>
<param blahblah>
<param ......>

<embed blah></embed>

</object>

For the Java apples:

<applet blah>
<param blahblah>
<param ......>

</applet>

I could use them as is, and link them separately, asking the user to choose
among the two versions. However I'd like to implement an autoselect
according to the browser's capability, since most visitors of the website
probably aren't techie enough.

Here's my thoughts:

<applet ...>
<param ...>

<object ...>
<param ...>

<embed .....></embed>

<noembed><img src="screenshot.jpg" ...></noembed>
</object>
</applet>

IMHO this _should_ work like this: A browser with Java capability and
activated will interpret the <applet> part, load the Java applet, and
ignore the <object> and <embed> in between, as this is the mandatory
behaviour for the <applet> tag.

A browser without Java or Java deactivated, but with Quicktime plugin
installed, will interpret the <object> tag and load the MOV file
refererenced therein, but ignore the <embed>/<noembed> part in between.
Browsers who don't know the <object> tag will try the same with the <embed>
tag.

Last, browsers with neigher Java nor plugins (or deactivated) will get the
alternative content, e.g. a screenshot and some text.

It should even be possible to reverse the nesting order between <applet>
and <object>. This should be much the same, except that the preferred
method willb e the plugin, and the Java applet second preferred.

So much for theory. In practice it's all a big mess.

I've tried with IE 6.0 and Netscape 7.0 so far. Both show the MOV file as
well as the Java applet at the same time, next to each other, if both are
activated. If only one of the two is activated in the browser, they'll
still reserve space in the browser window and show some placeholder icon.
Nesting order of <applet> and <object> tags makes no difference.

Q1: Is my logic wrong? If so, where?

Q2: If not, are the browser broken? If they are, anyone know a way around
the browser bugs?

Q3: Any experiences with nesting Java-Applets and embedded multimedia
content is appreciated.

Thank you in advance

--
http://www.nuhr.de/data/FRESSEHA.MP3

Jul 20 '05 #1
0 3088

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: M. Magistri | last post by:
Hi all! Why doesn't the following code load my applet under WinXP with Internet Explorer 6? <SCRIPT language="javascript" type="text/javascript"> <!-- if (getBrowser()=="IE"){...
23
by: Andrew Thompson | last post by:
This is intended to fix a long standing (cough)Java(cough) problem with which I'm sure some of you will be familiar. Sun recommends using the <OBJECT>/<EMBED> elements to cater for Java...
2
by: rajbala | last post by:
Hi all, Am new to java.I want to play avi file.For that i got code in java.But now i want to call java applet in html.I tried for that but it shows "Applet notiniited"...
5
matheussousuke
by: matheussousuke | last post by:
Hello, I'm using tiny MCE plugin on my oscommerce and it is inserting my website URL when I use insert image function in the emails. The goal is: Make it send the email with the URL...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.