PDA

View Full Version : ajax not working in firefox browsers? WTF???


Sim
01-19-2010, 12:50 AM
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);
});

});
});

seco
01-19-2010, 02:36 AM
a url to the page would help more

tonynoname123
01-19-2010, 04:00 AM
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);
});

});
});

http://rpg.antgaming.com/gamefiles/admin/js/ajax/newsadd.php
it says "you dont belong here" you need to change "dont" to "don't"
same with http://rpg.antgaming.com/gamefiles/admin/js/ajax/crimegroupadd.php

Dormilich
01-19-2010, 02:19 PM
as far as I can see there is no client side code involved.