I’m developing a site for my sports team. It’s displaying the next training and match dates from data in a a MySQL database through PHP.
I want to let the user add their presence on these appointments and update the div with confirmed users through AJAX.
I call the next function for it :
function swapContent(div, status, soort, itemid, userid) {
$("#"+div).html('<p>loading ...</p>').show();
var url = "training.php";
$.post(url, {status: status, soort: soort, itemid: itemid, userid: userid} ,function(data) {
$("#"+div).html(data).show();
});
}
The problem is that it’s working like a charm in Chrome, but not on FF and IE, both latest versions…
Any tips?
It is possible that they are having issues with the naming you used, ie:
try changing the argument names for the function and see if it helps.