Interesting about the onLoadComplete.
I didn't know you could do that.
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]);
}
"
}