About callback URL-s

About callback URL-s

Hi, I am trying to use autocomplete.

The problem I have is that the URL that the callback function calls is like :

$.ajax({
url: "http://lovalhost/searchJSON",
dataType: "jsonp",
data: {
name_startsWith: request.term
},






And calls like :
http://localhost/searchJSON?name_startsWith=Pa

Well , I use cakphp and I would like to call more an URL like :

http://localhost/searchJSON/ajax_countries/name_startsWith:PA

or even :
http://localhost/searchJSON/ajax_countries/PA

So it can integrate easier in the framework.

Can I do that without affecting/modifying the js ?

Yes basically I am requesting how to alter the separators in the ajax request.

(PS: I am not really good with JS)