Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Sim
    Sim is offline
    New Coder
    Join Date
    Feb 2009
    Posts
    82
    Thanks
    1
    Thanked 1 Time in 1 Post

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

  • #2
    Regular Coder seco's Avatar
    Join Date
    Nov 2008
    Location
    Oregon
    Posts
    687
    Thanks
    6
    Thanked 79 Times in 77 Posts
    a url to the page would help more

  • #3
    New Coder
    Join Date
    Nov 2009
    Location
    www.nn11.darkbb.com
    Posts
    39
    Thanks
    2
    Thanked 0 Times in 0 Posts

    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

  • #4
    Senior Coder Dormilich's Avatar
    Join Date
    Jan 2010
    Location
    Behind the Wall
    Posts
    3,474
    Thanks
    13
    Thanked 361 Times in 357 Posts
    as far as I can see there is no client side code involved.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •