View Full Version : Javascript error "uncaught exception" while using Ext.Direct

1 Jun 2010, 7:51 AM

I'm trying to use ext-direct with PHP using Saki's example : http://blog.extjs.eu/know-how/mastering-ext-direct-part-1/

When I try to call the remote class (with "Example.car.start()" for example) I've got the following error in firebug :

uncaught exception: [Exception... "Component returned failure code: 0x805e000a [nsIXMLHttpRequest.open]" nsresult: "0x805e000a (<unknown>)" location: "JS frame :: http://localhost/includes/ExtDirect/ext/adapter/ext/ext-base.js :: i :: line 7" data: no]I have not been able to find the cause of this error using firebug or firephp ... Any ideas ??


1 Jun 2010, 11:46 PM
I have resolved the problem.

in api.php, the path to router.php must be relative not absolute :

$api->setRouterUrl('../../includes/ExtDirect/router.php'); // defaultThe above code will work.

$api->setRouterUrl($_SERVER['DOCUMENT_ROOT'] .'/includes/ExtDirect/router.php'); // defaultThe above code will crash ...

I have no idea why, but use relative path !