Sim Posted January 18, 2010 Posted January 18, 2010 when i submit my form, it shows teh alert box news successfully added in IE, but when I check it in FireFox, it doesnt show that message or add the news to the mySQL DB. any ideas whY? $(document).ready(function(){ $("#save").mouseup(function () { $("#error").html("Saving..."); var News = document.form1.textNews.value; var Subject = document.form1.textSubject.value; var GameName = document.form1.hidden.value; //$.post("./gamefiles/admin/js/ajax/crimegroupadd.php", $('#form1').serialize()), $.post("http://rpg.antgaming.com/gamefiles/admin/js/ajax/newsadd.php", { textNews: News, textSubject: Subject, hidden: GameName }, function(data) { alert(data); $("#error").html(data); }); }); }); Quote
Spudinski Posted February 10, 2010 Posted February 10, 2010 Seems like you are using jQuery, one of my favourites as well. Just read the documentation supplied, api.jquery.com But from a quick look at your script, your not even defining that it is an ajax request, you should really read up on jQuery before attempting to use it... Quote
DigitalGerm Posted April 7, 2010 Posted April 7, 2010 Error Console is your friend. Ctr+shift+j. Post your error report here. Quote
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.