Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

VRML and URLs

0 views
Skip to first unread message

Pascal Heraud

unread,
Jun 9, 1999, 3:00:00 AM6/9/99
to
Hi all VRMLers

I put code like that in a VRML world :
Anchor {
url ["http://artisweb.cjb.net/expos/pan/pan.html?PAN-EXPO2_1"]
parameter [ "target = contenu" ]
children
Shape {

It seems that, with netscape 'target=contenu" works well, but with IE,
it doesn't work, it open the link in a new window but the second time
you click it will open the link in aonther window ( with Netscape, it
will open it the same window ! )
( both with cosmo player !)

Pascal
( please post here and e-mail me response ... )

--
Pascal HERAUD - Société ÆGIS
___________________________________________
>>>>ÆGIS
>>>>Savoie Technolac - Bâtiment Triplan
>>>>73374 Le Bourget-du-Lac Cédex
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Bureau : 04-79-25-26-05 Pascal...@univ-savoie.fr
Domicile : 04-76-71-75-45 her...@multimania.com
Web: http://www.multimania.com/heraudp/
Visitez l'exposition virtuelle d'Artis : http://artisweb.cjb.net/
Altern.org a redémarré, la loi sur l'hébergement gratuit a changé
Sur Internet, la mobilisation porte ses fruits...

RovingG

unread,
Jun 9, 1999, 3:00:00 AM6/9/99
to
>Hi all VRMLers
>
>I put code like that in a VRML world :
> Anchor {
> url ["http://artisweb.cjb.net/expos/pan/pan.html?PAN-EXPO2_1"]
> parameter [ "target = contenu" ]
> children
> Shape {
>
>It seems that, with netscape 'target=contenu" works well, but with IE,
>it doesn't work, it open the link in a new window but the second time
>you click it will open the link in aonther window ( with Netscape, it
>will open it the same window ! )
>( both with cosmo player !)
>
>Pascal
>( please post here and e-mail me response ... )

The only success I've had in controlling add'l windows successfully from VRML
has involved calling JavaScript functions in the HTML page containing the
embedded VRML scene. The VRML world runs within the context of the overall
page, so you have access to all JS functions on the main page.

ed

Paul S. Hoffman

unread,
Jun 10, 1999, 3:00:00 AM6/10/99
to Pascal Heraud
Pascal Heraud wrote:

> Hi all VRMLers
>
> I put code like that in a VRML world :
> Anchor {
> url ["http://artisweb.cjb.net/expos/pan/pan.html?PAN-EXPO2_1"]
> parameter [ "target = contenu" ]
> children
> Shape {
>
> It seems that, with netscape 'target=contenu" works well, but with IE,
> it doesn't work, it open the link in a new window but the second time
> you click it will open the link in aonther window ( with Netscape, it
> will open it the same window ! )
> ( both with cosmo player !)

I found out recently that IE has broken some of the rules about how it
handles requests for files that don't end in the expected document
extension for the mime type. In other words, it's fine if you end the
request with ".html" or ".wrl", but not otherwise. Microsoft's error!

(BTW - this also breaks the ability to load a VRML world at a specific
viewpoint - it won't take "myworld.wrl#viewPointTwo".)

- Paul
***********************************
Paul S. Hoffman
Senior Interface Designer, Cognetics Corporation
pau...@pluto.njcc.com, pa...@cognetics.com
Company URL - http://www.cognetics.com
Personal URL - http://pluto.njcc.com/~paulsam
609-799-5005 ext.237 - FAX 609-799-8555

Leonard Daly

unread,
Jun 15, 1999, 3:00:00 AM6/15/99
to
I have also found that out. For my examples page, I had to put a dummy
parameter in the QUERY_STRING portion of the URL so that the same file
could be used for both plain/text and VRML MIME types. IE appears to just
look at the last file type on the URL, even if it is in the QUERY_STRING. I
added '&IE=.wrl' or '&IE=.txt' to the end of the string to make IE work.
The VRML Example page is at http://www.realism.com/vrml/example.html


Leonard Daly <da...@realism.com>
Information Visualization Specialist & VRML Educator
Daly Realism - Interactive Web Solutions
(http://www.realism.com)

Treasurer, LA VR User's Group: http://lavug.org/
Co-Chair, Web3D Content Development WG

Jane Williams

unread,
Jun 15, 1999, 3:00:00 AM6/15/99
to
On Tue, 15 Jun 1999 07:47:20 -0700, Leonard Daly <da...@realism.com>
wrote:

>I have also found that out. For my examples page, I had to put a dummy
>parameter in the QUERY_STRING portion of the URL so that the same file
>could be used for both plain/text and VRML MIME types. IE appears to just
>look at the last file type on the URL, even if it is in the QUERY_STRING. I
>added '&IE=.wrl' or '&IE=.txt' to the end of the string to make IE work.

>Paul S. Hoffman wrote:
>> (BTW - this also breaks the ability to load a VRML world at a specific
>> viewpoint - it won't take "myworld.wrl#viewPointTwo".)

So that's what's doing it!

Leonard, could you just explain that a bit more slowly for a beginner,
please? If I want an anchor to a viewpoint like Paul describes, to
take me from (say) the inside of a building back to the right bit of
the main city, how would I code it? Say I want to go to
"city.wrl#outsideDoor". Do I use "city.wrl#outsideDoor &IE=.wrl", or
what?

What effect will this have on IE, anyway? And on other, sensible,
browsers?


Leonard Daly

unread,
Jul 1, 1999, 3:00:00 AM7/1/99
to
Jane,

I'm sorry I didn't see your message sooner. I wrote a very simple world
(cone and cube) with 3 viewpoints (View1, View2, and View3). The
world is at http://www.realism.com/vrml/Example/ViewpointEntry/ViewpointEntry.wrl

You can use any of the 3 Viewpoints as a starting place. I have checked this
with NS and CP and it works. IE (V4) and CP do not work.

For my work, I was using a single world file (VRML) that I needed to display
as either a VRML world or plain text (for viewing source code). The link was
to a CGI that set the MIME type depending upon the source of the link. I found
that for IE, setting the MIME type was insufficient. I also had to specify the
file extension for things to work correctly.


Leonard Daly <da...@realism.com>
Information Visualization Specialist & VRML Educator
Daly Realism - Interactive Web Solutions
(http://www.realism.com)

Treasurer, LA VR User's Group: http://lavug.org/
Co-Chair, Web3D Content Development WG

0 new messages