ParallelGraphics Forums
General
You are here: [Forums]::[General]

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:
  General

Subject: Re: How to Read Values from Text (.txt) or Databas
Sender: nalex@parallelgraphics.com 16.10.07 06:34
You could try this ...
Below is a code sample which lets a VRML scene communicate with PHP on an Apache server/

[...]

I suggest to connect Browser.createVRMLFromUrl completion event directly to the script node, thus eliminating polling with TimeSensor:

DEF S Script
{
field SFNode me USE S
eventIn SFString sendQuery
eventIn MFNode onLoadComplete
url "vrmlscript:
function sendQuery(p)
{
// p contains query parameter string eg ?name=steve&age=32
var u = new MFString('muStat.php'+p);
Browser.createVrmlFromURL(u, me, 'onLoadComplete');
}

function onLoadComplete(nodes)
{
var anchor = nodes[0];
print(anchor.parameter[0]);
}
"
}

 


How to Read Values from Text (.txt) or Database / denizfb81@hotmail.com / 4.10.07 12:58
     Re: How to Read Values from Text (.txt) or Databas / steve@geostudio3d.co.uk / 16.10.07 02:51
         Re: How to Read Values from Text (.txt) or Databas / nalex@parallelgraphics.com / 16.10.07 06:34
             Re: How to Read Values from Text (.txt) or Databas / steve@geostudio3d.co.uk / 16.10.07 09:04
         Re: How to Read Values from Text (.txt) or Databas / steve@geostudio3d.co.uk / 16.10.07 03:01

Messages in thread: 5


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