473,738 Members | 3,636 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3114

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

Similar topics

1
1814
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"){ document.write("<OBJECT standby='Wait maximum 25 seconds to load........' classid='clsid:8AD9C840-044E- 11D1-B3E9-00805F499D93' WIDTH = '600' HEIGHT = '400' CODEBASE='../Applet/' name='GeoMap'>"); if (false)...
23
2284
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 applets, but then uses *browser* *sniffing* Javascript to select between them. I was hoping to find/create a script that
2
10242
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" .Anybody tell me to overcome this problem.
5
13376
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 http://mghospedagem.com/images/controlpanel.jpg instead of http://mghospedagem.comhttp://mghospedagem.com/images/controlpanel.jpg As u see, there's the website URL before the image URL.
0
8969
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8788
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9476
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9335
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9208
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8210
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6053
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4825
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3279
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.