View Full Version : Send array from extjs to server

24 May 2010, 9:09 AM
Hi all, i can get array of ids, but i have no idea how to send it to server-side php script via POST?
Plz help me...

buttons: [{
text: 'Get Selected Jobs',
handler: function(){
var msg = '',selNodes = InactiveJobTree.getChecked();
Ext.each(selNodes, function(node){
if(msg.length > 0){
msg += ', ';
msg += node.id;

27 May 2010, 2:42 AM
why not just push the values to an array, and post that with an Ajax request. There are a ton of examples. Google for Ext.Ajax.request

I did and found: http://www.extjs.com/learn/Manual:Core:Ext.Ajax