azraelGG Posted January 18, 2013 Share Posted January 18, 2013 im building function for delete rows from sql but im stuck on early stage of it and unable to solve it error msg in firebug console ReferenceError: ajaxDelete is not defined ajaxDelete(5, "stroj", "stroj_ID"); parametars that i get in console are correct, but i cant get that alert("works") code where i call function <td><a style="cursor:pointer;" onclick="ajaxDelete('.$stroj['stroj_ID'].', \'stroj\', \'stroj_ID\');" >Deletei</a></td> - jquery is included - it is not part of document ready functions (same results if its inside of it) //delete universal function ajaxDelete(id, tablica, tablica_col){ $.post("ajax/ajaxDelete.php", {id: id, tablica: tablica, tablica_col: tablica_col}, function(data){ alert("works"); }); };//endof delete universal Quote Link to comment https://forums.phpfreaks.com/topic/273311-another-reference-erroe/ Share on other sites More sharing options...
azraelGG Posted January 18, 2013 Author Share Posted January 18, 2013 this code works, but only inside same file not in header.php Quote Link to comment https://forums.phpfreaks.com/topic/273311-another-reference-erroe/#findComment-1406668 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.