Hi All
I’m new to AJAX and seem to be having some problems getting it to work with EE. As a test, I’ve created a template group called ajax and put some simple html in its default index.php file. Then in my site’s root page (index.php in the “site” template group) I’ve got a div with class “content”. I then run the following jquery on it:
// tell ajax not to cache
$.ajaxSetup ({
cache: false
});
var loadUrl = "/index.php/ajax/";
$("div.content").load(loadUrl);But instead of loading in my ajax template, it loads in the root page of the site (ie. the page ends up loading itself into div.content).
Am I missing something obvious here? I tested this on static html pages and it worked fine - but for some reason EE isn’t serving up the right template when it’s called via AJAX - it seems to be just defaulting to calling the root template. Any help would be much appreciated!
Thanks, Frank