PDA

View Full Version : very long data to server



TTT
28 Jan 2008, 12:11 PM
Hi, my english very bad, sorry...
Ext 1.1.1 with Perl
I have a grid ~1000 rows
I want save all table as excel
how it do?


I try use Ext.lib.Ajax.request with POST:

{
text:'Save as Excel',
handler: function() {
jsonData = "[";
for(i=0;i<ds.getCount();i++) {
record = ds.getAt(i);
if(record.data) {
jsonData += Ext.util.JSON.encode(record.data) + ",";
}
}
jsonData = jsonData.substring(0,jsonData.length-1) + "]";
console.info(jsonData);
Ext.lib.Ajax.request(
'POST',
'/cgi-bin/save.cgi',
{
success:function(form, action){Ext.Msg.alert('Save','Ok');},
failure:function(form, action){Ext.Msg.alert('Save','Error');}
},
'data='+jsonData
);


}
}
'CONTENT_LENGTH' is 17000
but script get the truncate string (length any more ~2000-4000 )

I dont know what to do.
Help

RWaters
31 Jan 2008, 10:09 AM
Can you determine where it is being truncated? If you watch it in firebug is the full content getting sent to the server? As far as I know the javascript you have written shouldn't be truncating anything.

TTT
2 Feb 2008, 4:18 PM
Thank's for assist, all content is sent to the server. My apache is truncated the content. Now its ok.