Page 1 of 1

ajax not working in FireFox browser?? WTF

Posted: Mon Jan 18, 2010 5:50 pm
by psychotomus
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?

Code: Select all

$(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);
            });
        
    });
});