This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > VRML > April 2004 > opening vrml embedded in html page





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author opening vrml embedded in html page
Andrea

2003-12-04, 12:57 pm

Hi.

I wrote this html page:

<html>
<head>

<SCRIPT LANGUAGE=JavaScript>

function openVrml() {
var vrmlObj;
vrmlObj=document.getElementById('vrmlObj');
vrmlObj.src='second.wrl';
}

</SCRIPT>

</head>

<body>

<embed ID=vrmlObj src="first.wrl" type="x-world/x-vrml"
vrml_dashboard="false" vrml_background_color="#C0FFFF" contextmenu="false">

<INPUT TYPE=button VALUE="Open second" ONCLICK="openVrml();">

</body>
</html>



When I load this page in a browser it shows "first.wrl" and the button "Open
second" (that's ok!) but when I click "Open second" nothing happen!!! (I
expect second.wrl is loaded!).

Anyone can help me? Where's the problem?



Thanks.


Alexei Shein

2003-12-04, 12:57 pm

When i want to change the world opened through OBJECT tag, i use both
obj_tag.url = .. & obj_tag.src = ""
That`s because of different plugins (Cortona & CC3D-like (Blaxxunor BS))
---------
AShein, assincorp@hotmail.com


demetris

2004-04-15, 7:07 am

quote:
Originally posted by Alexei Shein
When i want to change the world opened through OBJECT tag, i use both
obj_tag.url = .. & obj_tag.src = ""
That`s because of different plugins (Cortona & CC3D-like (Blaxxunor BS))
---------
AShein, assincorp@hotmail.com



Did this thing eventually work? I tried too, but it doesn't do anything.
Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews