have some problem with CAutoComplete

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&param2=value2

then on the same page I decided to use CAutoComplete widget

and my script starts to generate next request

/controller/action/?callback=blahBLAHblah&param1=value1&param2=value2

and of course I don’t get any results

Does anybody knows why this happens?

You should configure CAutoComplete::url Otherwise the current page URL (where GET parameters are part of) will be used.

EDIT: Sorry, after reading a second time i found, my solution doesn’t really make sense as you talk about a AJAX request. Still, maybe it’s worth a try.