For this code:
Why does the ajax call only work if I return false? If I return true the ajax call returns as an error. I would like the onclick to return true so that the link is followed.Code:$('a').click(function(){ $.ajax({ type: "POST", url: "mysimplepage.php", async: true, data: { logDownload: true, file: $(this).attr("name") } }); return false; });



Reply With Quote


Bookmarks