ParallelGraphics Forums
Cortona VRML Client
You are here: [Forums]::[Browsers]::[Cortona VRML Client]

Registration 
Registration
Forgot your password?

Help 
Help
Support

Quick search 

Subscribe to newsletters 

Install Cortona VRML Client for FREE!
Outline 3D
Try RobinZone!
email:  password:
   Browsers - Cortona VRML Client

Subject: cortona.Engine.Nodes... doesn't work in Javascript
Sender: Lobotomy 4.05.08 01:12

I started to use this code in 2006 when it was needed to switch cameras by clicking on scripted links at HTML document with this Javascript code:
Scene.Engine.Nodes(camera_id).Fields("set_bind")=true

Now I read that for version 5.x code should be changed this way:
from:
cortona.Engine.Nodes.Item("SomeShape").Fields.Item("appearance").Value
to:
cortona.Engine.Nodes("SomeShape").Fields("appearance").Value
(http://www.parallelgraphics.com/l2/bin/vrml_automation_interface_changes.pdf)

But none of this cases works in Opera anymore like it was with previous versions! Though world loads successful during tests Opera couldn't find any object in it to operate with JS! Error Console reports:

Event thread: click
Error:
name: TypeError
message: Statement on line 4: Could not convert undefined or null to object
Backtrace:
Line 4 of inline#1 script in file://localhost/D:/Work/cortona_eai/index.html
(cortona.Engine.Nodes.Item("S1")).Fields.Item("startA").Value = true;
Line 1 of script
doit1();
At unknown location
[statement source code not available]

By the way Firefox works well with the same document. I realize that these browsers based on different engines but is there any way to solve the trouble in Opera too?

 


cortona.Engine.Nodes... doesn't work in Javascript / Lobotomy / 4.05.08 01:12

Messages in thread: 1


© 1998-2007 ParallelGraphics. All rights reserved. Terms of use.