PDA

View Full Version : Problems with var conn = new Ext.data.Connection();



andredecotia
6 Jan 2011, 11:44 AM
var conn = new Ext.data.Connection(); shows it as not defined after first requesting...

fay
6 Jan 2011, 12:49 PM
Post the code where it's failing.

andredecotia
6 Jan 2011, 1:00 PM
var conn = new Ext.data.Connection();

conn.request({
url: 'nomeDaAction',
params: {
'idProdutoNaAction': idProdutoDoGrid
},
});

fay
6 Jan 2011, 2:01 PM
I've never had any problem with Ext.data.Connection; the only thing that I can see in your code that would cause a problem in IE is the trailing comma:



}, // <-- remove
});


EDIT: Remove the single quotes from around 'idProdutoNaAction'