-
1 Jun 2010 7:51 AM #1
Javascript error "uncaught exception" while using Ext.Direct
Javascript error "uncaught exception" while using Ext.Direct
hello,
I'm trying to use ext-direct with PHP using Saki's example : http://blog.extjs.eu/know-how/master...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 :
I have not been able to find the cause of this error using firebug or firephp ... Any ideas ??Code: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]
regards,
Christophe
-
1 Jun 2010 11:46 PM #2
I have resolved the problem.
in api.php, the path to router.php must be relative not absolute :
The above code will work.PHP Code:$api->setRouterUrl('../../includes/ExtDirect/router.php'); // default
The above code will crash ...PHP Code:$api->setRouterUrl($_SERVER['DOCUMENT_ROOT'] .'/includes/ExtDirect/router.php'); // default
I have no idea why, but use relative path !
Similar Threads
-
uncaught exception: [Exception... "Component returned failure code
By dannyg in forum Ext 3.x: Help & DiscussionReplies: 2Last Post: 7 Dec 2009, 8:29 PM -
[FIXED][3.??] Ext.Direct "exception" event raises "tid has no properties" error
By j.bruni in forum Ext 3.x: BugsReplies: 8Last Post: 22 Jun 2009, 8:56 PM -
Forms in tabs- uncaught exception: [Exception... "Component returned failure...
By larest in forum Ext 2.x: Help & DiscussionReplies: 2Last Post: 4 Apr 2009, 1:03 PM -
Javascript error stating "events null""
By prashanthn in forum Ext 2.x: Help & DiscussionReplies: 6Last Post: 21 Sep 2008, 10:19 PM -
uncaught exception: Error listening for "mousedown"
By rouet in forum Ext 2.x: Help & DiscussionReplies: 1Last Post: 13 Mar 2008, 6:18 AM


Reply With Quote