1. #1
    Ext User
    Join Date
    Jun 2010
    Posts
    8
    Vote Rating
    0
    lebesnec is on a distinguished road

      0  

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

    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]
    I have not been able to find the cause of this error using firebug or firephp ... Any ideas ??

    regards,
    Christophe

  2. #2
    Ext User
    Join Date
    Jun 2010
    Posts
    8
    Vote Rating
    0
    lebesnec is on a distinguished road

      0  

    Cool


    I have resolved the problem.

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

    PHP Code:
    $api->setRouterUrl('../../includes/ExtDirect/router.php'); // default 
    The above code will work.

    PHP Code:
    $api->setRouterUrl($_SERVER['DOCUMENT_ROOT'] .'/includes/ExtDirect/router.php'); // default 
    The above code will crash ...

    I have no idea why, but use relative path !

Similar Threads

  1. uncaught exception: [Exception... "Component returned failure code
    By dannyg in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 7 Dec 2009, 8:29 PM
  2. Replies: 8
    Last Post: 22 Jun 2009, 8:56 PM
  3. Replies: 2
    Last Post: 4 Apr 2009, 1:03 PM
  4. Javascript error stating "events null""
    By prashanthn in forum Ext 2.x: Help & Discussion
    Replies: 6
    Last Post: 21 Sep 2008, 10:19 PM
  5. uncaught exception: Error listening for "mousedown"
    By rouet in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 13 Mar 2008, 6:18 AM

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar