Embedding VRML-Objects in valid code

E

Eric Biller

Hi@all,
After several hours surfing the web and the quite a number of posts in
this NG I came not a bit nearer to a solution to my problem.
I tried to embed an VRML-object in a page. Since trying this the page
contained only valid html code. Now there is my problem:
In my understanding of the HTML4.01 strict standard embedding has to be
done via the <object> tag. Right?
Ok, I tried the following code:

<object src="http://www.somehost.xxx/someobject.wrl" type="x-world/x-vrml"
width="200" height="200">
blablabla<a href="lsdhgls">askföl</a><br>
dfjsdjfp apfjapo jfpaojf pa
</object>

This code validates well but IE5.5 shows the object well. Opera (without
plugin) renders all the code between <object> and </object> at the same
line (overlaying). But in this space I had put the link for downloading
the plugin in. The link was completely useless, because it was unreadable.

Ok, next try.

<embed src="http://www.somehost.xxx/someobject.wrl" height="300"
width="400"
pluginspage="http://ca.com/cosmo/" standby="loading object.."></embed>

This code worx on IE5.5 and Opera7.21 shows the object box and when
activated asks to goto pluginspage.
This is exactly the way I want the object to work.

But this is not valid code as the tag <embed> may not have the given
attributes.
My client wants this object to be included, personally I would not pay any
attention to vrml.
The site is rather large (largest project I ever made, I suppose) and I
was proud that every page was considered valid. It will be a pity if this
vrml-crap will destroy validity.

I wonder if there is a valid way to include it?

greetz Bilefrog
 
E

Eric Biller

I apologize for not re-reading my post and not eliminating my obvious
lingual mistakes.

greets Eric
 
T

Toby A Inkster

Eric said:
I tried to embed an VRML-object in a page. Since trying this the page
contained only valid html code. Now there is my problem:
In my understanding of the HTML4.01 strict standard embedding has to be
done via the <object> tag. Right?

In *any* version of HTML so far, <object> has to be used. (Well, <applet>
can be used, <img> is technically embedding too, as is <iframe>, and XHTML
allows *any* element to embed an object!)

To answer your question, google for "Flash Satay". It deals with embedding
Flash files rather than VRML, but should contain a lot of relevent info.
 
E

Eric Biller

Am Fri, 14 Nov 2003 08:18:13 +0000 hat Toby A Inkster
To answer your question, google for "Flash Satay". It deals with
embedding
Flash files rather than VRML, but should contain a lot of relevent info.

I tried it and read about the satay experiment. The guy encountered the
same problem as I did, IE won't start streaming the object. He did a
workaround using a small flash-movie to let the main flash-movie start
streaming. That's well enough for flash, but it doesn't help me with VRML.
I'm familiar with VRML and do not want to become. I've no clue how to let
a VRML-file load another VRML-file.
In fact IE opens the File but does not start the plugin right. I get a
black box with a crosshair to navigate. But no other plugin control
elements are displayed. And navigating through a black box isn't that
funny.
Here's the URL, if your interested in seeing what IE does with the
object-tag.

http://dhs.fmvbdgkp920.de/code/de/ycpilot.htm

btw: I'm using the CosmoPlayer for displaying VRML-files.

greets Bilefrog
 
E

Eric Biller

Am Fri, 14 Nov 2003 08:18:13 +0000 hat Toby A Inkster

Ok finally I managed to let IE5.5 display the vrml-stuff. Surfing the web
I hit a post dated 03/30/1999. lol.
In this the guy experienced the same problem with ie4 and he solved the
problem. Thank god there are NG-archives.
If someone is interested in it:
http://www.geocrawler.com/archives/3/297/1999/3/0/1665339/

The code I use is:

<object type="x-world/x-vrml" data="http://www.localtrading.de/output.wrl"
width="400" height="300">
<param name="src" value="http://www.localtrading.de/output.wrl">
Ihr Browser kann kein VRML darstellen. Sie sollten sich ein passendes
<a href="http://ca.com/cosmo/">Plugin</a> besorgen.<br>
Alternativ k&ouml;nnen sie die <a
href="http://www.localtrading.de/output.wrl">VRML Datei</a>
direkt in ihren Player laden.
</object>

It was the param-tag which was missing. Without it IE5.5 did not load the
data.

greets Eric
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,900
Latest member
Nell636132

Latest Threads

Top