473,408 Members | 2,734 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,408 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 3089

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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.