Question : Cross browser jquery/javascript

Review the attached code,

When a button is clicked I run this function "submit_ajax", and the ajax external calls aweber link add the email and name to my aweber list and other page add email and name to the db, and for testing purposes there's a popup. I checked this in chrome and firefox in both browsers I get the popup upon button click but when I use FF seems the ajax calls wont work correctly. No data in my aweber list or in my db, if I test it from chrome things works perfect. Any idea ?
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
function submit_ajax(){
		var name = $("#name").val();
		var email = $("#email").val();
		var members = $("input[name=members]:checked");
		
		if(name == '' || email == ''){
			alert("Please enter both name and email");
			return false;
		}
		
if ($('#members').attr('checked')) {

		$.post("http://domain.com/capture.php", { email: ""+email+"", name: ""+name+"" },
  			function(data){
			//data is the output of your_php_page.php after it runs
     		alert("Here is the data returned: " + data);
			//you could also write the data on the page too
			$("#response").html(data);
   		});
		$.post("http://aweber.com/scripts/addlead.pl", { email: ""+email+"", name: ""+name+"" },
  			function(data){
			//data is the output of your_php_page.php after it runs
     		//alert("Here is the data returned2: " + data);
			//you could also write the data on the page too
			$("#response").html(data);
   		});
	}
	}

Answer : Cross browser jquery/javascript

It was cross domain ajax restrict by FF
Random Solutions  
 
programming4us programming4us