PDA

View Full Version : httpproxy



bauchinj
29 Oct 2009, 7:03 AM
Hello!

Why does this work:


new Ext.data.HttpProxy({
url : 'php/uga.php?action=selectUser&id='+user
})and this not:


new Ext.data.HttpProxy({
url : 'php/uga.php,
params : {
action:'selectUser',
id:user
})

aw1zard2
29 Oct 2009, 8:43 AM
Cause your missing a ' before the comma. :)

Jaitsu
29 Oct 2009, 10:43 AM
as far as i know it sends those parameters as POST in the second example, your first example contains GET variables