21 Feb 2011 7:30 AM #1
Ajax "Communication failure" on connection server through localhost:portnumber
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
23 Feb 2011 5:06 AM #2
Ok, I figured out its possibly the same-origin-issue to prevent xss.
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:
Will try this solution.
By mgutz in forum Ext 3.x: Help & DiscussionReplies: 1Last Post: 4 Feb 2011, 12:50 AM
By pipiet06 in forum Ext 2.x: BugsReplies: 0Last Post: 22 Jul 2010, 7:33 PM
By xonmac in forum Community DiscussionReplies: 0Last Post: 27 Sep 2009, 8:16 PM
By ianfer in forum Ext 1.x: BugsReplies: 3Last Post: 4 Jun 2007, 11:49 AM