hi there
I have very simple script that requests data through AJAX.
$.ajax({
dataType:'json',
crossDomain:false,
type:'get',
url:config.url,
data:{
'param1':'value1',
'param2':'value2'
},
success:function(data){
}
});
this code makes GET request
/controller/action/?param1=value1¶m2=value2
then on the same page I decided to use CAutoComplete widget
and my script starts to generate next request
/controller/action/?callback=blahBLAHblah¶m1=value1¶m2=value2
and of course I don’t get any results
Does anybody knows why this happens?