Go Back   CodingForums.com > :: Client side development > JavaScript programming > Ajax and Design

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-18-2010, 11:50 PM   PM User | #1
Sim
New Coder

 
Join Date: Feb 2009
Posts: 81
Thanks: 1
Thanked 1 Time in 1 Post
Sim is an unknown quantity at this point
ajax not working in firefox browsers? WTF???

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:
$(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);
			});
		
	});
});
Sim is offline   Reply With Quote
Old 01-19-2010, 01:36 AM   PM User | #2
seco
Regular Coder

 
seco's Avatar
 
Join Date: Nov 2008
Location: Oregon
Posts: 682
Thanks: 5
Thanked 79 Times in 77 Posts
seco has a little shameless behaviour in the past
a url to the page would help more
seco is offline   Reply With Quote
Old 01-19-2010, 03:00 AM   PM User | #3
tonynoname123
New Coder

 
Join Date: Nov 2009
Location: www.nn11.darkbb.com
Posts: 40
Thanks: 2
Thanked 0 Times in 0 Posts
tonynoname123 is an unknown quantity at this point
Post

Quote:
Originally Posted by Sim View Post
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:
$(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/a...ax/newsadd.php
it says "you dont belong here" you need to change "dont" to "don't"
same with http://rpg.antgaming.com/gamefiles/a...megroupadd.php
__________________
www.nonamesite.forumotion.com
NO-NAME!
tonynoname123 is offline   Reply With Quote
Old 01-19-2010, 01:19 PM   PM User | #4
Dormilich
Senior Coder

 
Dormilich's Avatar
 
Join Date: Jan 2010
Location: Behind the Wall
Posts: 2,857
Thanks: 9
Thanked 288 Times in 284 Posts
Dormilich is on a distinguished road
as far as I can see there is no client side code involved.
Dormilich is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:44 AM.


Advertisement
Log in to turn off these ads.