[X3D-Public] Has anyone gotten Contact working in Firefox/Chrome?
Dave A
dave at realmofconcepts.com
Wed Jun 29 17:55:46 PDT 2011
The world loads fine stand-alone, but it's not meant to work
stand-alone, it needs to interact with a web page. It works fine in IE,
using getWorld, getNode, and setNodeEventIn work great. The strange
'listener' looks something like this, and only works in IE:
<script for="Contact" event="OnEvent(e, v, t)">
... script here ...
Where internal script does something like this:
Browser.loadURL('OnEvent( params');
I'm more used to setting up actual listeners and such, (Flux/Vivaty),
but this didn't work with Contact.
If you can find the time to send a code snippet of your html container
and whatever glues it to the scene, that would be so lovely.
Thanks
Dave A.
On 6/29/2011 5:42 PM, GLG wrote:
> We have the officetowers.com world working with Contact in
> IE, FF, Chrome and even Safari and Opera (although Opera
> is not officially supported because it tends to be too
> slow and we're having other issues with it). This is one
> of the most complex worlds out there, with plenty of SAI
> scripts interfacing with CGI, SQL, cookies, MU server
> among others without trouble. I do not have much time to
> look over your code atm but at least now you know it
> should work. What happens when you run your world
> stand-alone in Contact? If you have the same issues then
> it is probably not the web browsers.
>
> Cheers,
> Lauren
>
>> -----Original Message-----
>> From: x3d-public-bounces at web3d.org [mailto:x3d-public-
>> bounces at web3d.org] On Behalf Of
>> dave at realmofconcepts.com
>> Sent: Wednesday, June 29, 2011 6:26 PM
>> To: x3d-public at web3d.org
>> Subject: [X3D-Public] Has anyone gotten Contact
>> working in Firefox/Chrome?
>>
>> Hi all.
>>
>> I'm having trouble getting anything like SAI or EAI or
>> whatever working
>> with Contact 7.2 and anything but IE.
>>
>> I can't set any value to any field on any node. I
>> can't even getWorld on
>> it. I can getVersion ok, and a few other API's, so I
>> know it's not brain
>> dead per-se. The scene loads ok via the SRC param to
>> the 'embed', but I
>> can't get anything into or out of the scene.
>>
>> And, how do you set up a 'listener'? I have this odd
>> thing working in IE
>> but it doesn't work the same way in FF or Chrome. Is
>> it a DOM thing of
>> some sort to set up?
>>
>> Any working examples would get you my eternal
>> gratitude and beverage of
>> your choice when next we meet.
>>
>> Dave A.
>>
>> PS: the code:
>>
>> <HTML>
>> <HEAD>
>> <TITLE>Not IE</TITLE>
>> <script>
>>
>> function SetSomething()
>> {
>> var n = document.Contact.getWorld();
>> alert (n); // always null
>> alert (document.Contact.getVersion());
>> // this is ok!
>> document.Contact.setNodeEventIn
>> ('MyText', 'string',
>> 'test'); // fail
>> }
>> </script>
>> </HEAD>
>> <body>
>> <BODY>
>> <embed
>> id = 'Contact' name='Contact'
>> width="96%%" height="96%%"
>> SRC="SimpleScene.x3dv"
>> DASHBOARD="TRUE"
>> PrimitiveQuality="HIGH"
>> antialias="TRUE"
>> MaxTextureSize="0"
>> LoadScreen="TRUE"
>> RightMouseMenu="FULL"
>> >
>> <input type='button' onClick='SetSomething()'
>> value='set'/>
>> </center>
>> </BODY>
>> </HTML>
>>
>>
>>
>> _______________________________________________
>> X3D-Public mailing list
>> X3D-Public at web3d.org
>> http://web3d.org/mailman/listinfo/x3d-public_web3d.org
>
>
> -----
> No virus found in this message.
> Checked by AVG - www.avg.com
> Version: 10.0.1388 / Virus Database: 1516/3733 - Release Date: 06/29/11
>
>
More information about the X3D-Public
mailing list