1. #1
    Sencha User
    Join Date
    Sep 2010
    Posts
    2
    Vote Rating
    0
    sromberg is on a distinguished road

      0  

    Default Ajax "Communication failure" on connection server through localhost:portnumber

    Ajax "Communication failure" on connection server through localhost:portnumber


    Hi everyone,

    I hope I am in the right forum here. I am currently using ExtJs with Ext.ux.FileTreeMenu / Panel
    I am "routing" the connection to the actual server via a localhost:port.

    This gives me Ajax request failure "Communication failure". I think this might be because of the different "urls" on the server and client? I do see the Ajax request posted to the sever as the .php files is giving output to the console via firephp. So serverside it looks to work fine, there just no request captured on the client side.

    So at the point where I print the json as a returnvalue it simply seems not to go to the client at all.
    I am currently trying to debug this, but I am not so happy messing around in the core files of ExtJs.

    Maybe anyone of you had such an issue already and can point me in the right direction?

    Thanks a lot for your support

  2. #2
    Sencha User
    Join Date
    Sep 2010
    Posts
    2
    Vote Rating
    0
    sromberg is on a distinguished road

      0  

    Default


    Ok, I figured out its possibly the same-origin-issue to prevent xss.

    http://my.safaribooksonline.com/book...t-the-data/319

    So using scripttagproxy might help. But I understand this is ok for custom made Ajax-calls. How can I use this with the store loader of the tree Ext.tree.TreeLoader?

    Edit: I found this script example using scripttagproxy for TreeLoader in case anyone else is interessted:

    http://www.java2s.com/Code/JavaScrip...TopicStore.htm

    Will try this solution.

Similar Threads

  1. ext-base "communication failure" in Chrome Packaged Application
    By mgutz in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 4 Feb 2011, 12:50 AM
  2. Replies: 0
    Last Post: 22 Jul 2010, 7:33 PM
  3. ExtJS and Rails - client-server communication "a-la" Netzke
    By xonmac in forum Community Discussion
    Replies: 0
    Last Post: 27 Sep 2009, 8:16 PM
  4. Replies: 3
    Last Post: 4 Jun 2007, 11:49 AM