Embedding VRML-Objects in valid code

Discussion in 'HTML' started by Eric Biller, Nov 13, 2003.

  1. Eric Biller

    Eric Biller Guest

    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

    --
    gruss
    Eric Biller aka Bilefrog
     
    Eric Biller, Nov 13, 2003
    #1
    1. Advertising

  2. Eric Biller

    Eric Biller Guest

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

    greets Eric

    --
    gruss
    Eric Biller aka Bilefrog
     
    Eric Biller, Nov 13, 2003
    #2
    1. Advertising

  3. Eric Biller wrote:

    > 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.

    --
    Toby A Inkster BSc (Hons) ARCS
    Contact Me - http://www.goddamn.co.uk/tobyink/?page=132
     
    Toby A Inkster, Nov 14, 2003
    #3
  4. Eric Biller

    Eric Biller Guest

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

    > 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

    --
    gruss
    Eric Biller aka Bilefrog
     
    Eric Biller, Nov 14, 2003
    #4
  5. Eric Biller

    Eric Biller Guest

    Eric Biller, Nov 14, 2003
    #5
  6. Eric Biller

    Eric Biller Guest

    Problem solved

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

    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
    --
    gruss
    Eric Biller aka Bilefrog
     
    Eric Biller, Nov 14, 2003
    #6
  7. Toby A Inkster wrote:

    > XHTML allows *any* element to embed an object!


    Should read:
    XHTML 2 allows *any* element to embed an object!

    --
    Toby A Inkster BSc (Hons) ARCS
    Contact Me - http://www.goddamn.co.uk/tobyink/?page=132
     
    Toby A Inkster, Nov 14, 2003
    #7
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. P. Flavin

    Re: Help ! (VRML with Java)

    P. Flavin, Sep 11, 2003, in forum: Java
    Replies:
    0
    Views:
    636
    P. Flavin
    Sep 11, 2003
  2. P. Flavin
    Replies:
    1
    Views:
    6,062
    P. Flavin
    Sep 12, 2003
  3. P. Flavin
    Replies:
    0
    Views:
    6,449
    P. Flavin
    Oct 17, 2003
  4. P. Flavin
    Replies:
    0
    Views:
    518
    P. Flavin
    Nov 3, 2003
  5. P. Flavin
    Replies:
    1
    Views:
    525
    Patrick Koegel
    Dec 19, 2003
Loading...

Share This Page