Jul 20, 2018 01:33 PM
(This post was last modified: Jul 20, 2018 01:37 PM by .eXe.)
Hey guys
So I've got some ajax load functions that load different pages in to divs, however, when I click to load the second page, it only works for the first click. Then I get the error in the subject. Any ideas how to diagnose?
My JS functions as below:
Fixed it. I was calling jQuery a second time on the second page and didn't realise.
So I've got some ajax load functions that load different pages in to divs, however, when I click to load the second page, it only works for the first click. Then I get the error in the subject. Any ideas how to diagnose?
My JS functions as below:
Code
function loadClients() {
$("#mainbody").load("views/clients.php");
}
function loadArenas() {
$("#mainbody").load("views/arena.php");
}
function loadHorses() {
$("#mainbody").load("views/horses.php");
}Fixed it. I was calling jQuery a second time on the second page and didn't realise.
aint my sig design skills sick?

