My code is as follows:
$.getJSON("http://xx.xx.x.x/directory/index.php?c=json&m=get_listing&jsoncallback=?", { action:'listings' }, function(data) {
// code
});
This works just fine. But now I’m having a lot of troubles with other libraries that don’t play friendly with query strings being enabled. If I turn query strings off, and change the URL above to:
http://xx.xx.x.x/directory/index.php/json/get_listing/jsoncallback=?
Doesn’t work. Any ideas on a work around?
EDIT:
When I turn off query string, and use this:
http://xx.xx.x.x/directory/index.php/json/get_listing/jsoncallback=?
Safari’s console shows the following error:
GET http://xx.xx.x.x/directory/index.php/json/get_listing/jsoncallback=jQuery17102770626428537071_1329431463691?action=categories&_=1329431463695 400 (Bad Request)
Fixed it. This works: