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

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

Subject: Re: Cortona - Firefox focus - found a good fix
Sender: steve@geostudio3d.co.uk 18.05.07 02:10

We found a nice fix for this problem..
Send the database query from within cortona using GET query parameters.
The loadURL target parameter then directs the response back to the iframe containing the DHTML part of the application.

The following code works well with IE and firefox

q='../../../app/php/viewpointVectors.php?cmd=SHOW_VIEW_VECTORS&p1'+userID+'&p2='+sceneID;
p='target=framStat';
Browser.loadURL(q,p);


Using this we find that Cortona integrates very neatly with AJAX.

Steve Smith
Aberystwyth
I have cortona embedded on a html page with adjacent iframe containing form which submits to an Apache server. Communication between form and scene is via the EAI2.
Sometimes the form is submitted in response to clicking on a sensor in the scene.
In this case, when the focus is with the scene, firefox returns and error (see below) when the submit() is called.
I have a clunky workaround which makes the user click on a 'confirm to send' button.
This transfers focus to the form and then all is ok.
Is there some way I can make Cortona throw focus to the HTML page.
I have tried calling the focus() method on some form element just before submitting but no joy.

No problems with IE6/7

Cortona still rocks.
Thanks in advance

Steve Smith
Aberystwyth


Error: uncaught exception: [Exception... "Component returned failure code: 0x804b000a [nsIDOMHTMLFormElement.submit]"
nsresult: "0x804b000a (<unknown>)" location: "JS frame :: http://localhost/dev/htdocs/veps/vr/app/tools.php# :: onload :: line 1" data: no]


 


Cortona - Firefox focus problem / steve@geostudio3d.co.uk / 17.05.07 03:20
     Re: Cortona - Firefox focus - found a good fix / steve@geostudio3d.co.uk / 18.05.07 02:10
     Re: Cortona - Firefox focus problem / nalex@parallelgraphics.com / 17.05.07 05:08
         Re: Cortona - Firefox focus problem / steve@geostudio3d.co.uk / 17.05.07 06:38

Messages in thread: 4


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