The ajax call below is not going through. The function simply quits and neither of the alert messages below are shown. Any ideas why? I have placed a separate alert within the click function above the ajax call and it shows that the function is being called properly. This is my first time to use the jquery ajax and I am having a rough go of it.
I have soo many questions and I see so many different things. I see people with and without the .php on the url name. I see people with and without quotes on the data and around the url. Does anyone know the propor convention? Thanks.
$(document).ready(function() {
$(".folderopen a").click(function(event) {
e.preventDefault();
$.ajax ({
type:'GET',
url:'FolderOpen.php',
data: {userid:10},
success: function() { alert('success');},
error: function(){ alert('failure');}
});
});
});