ajax not working in FireFox browser?? WTF

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
psychotomus
Forum Contributor
Posts: 487
Joined: Fri Jul 11, 2003 1:59 am

ajax not working in FireFox browser?? WTF

Post 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);
            });
        
    });
}); 
Post Reply