Reputation: 5758
this is my website i develop http://alessandro.babonmultimedia.com/ when we clicked at contact (navigation at top), there will be contact us form loaded via jquery AJAX,
the question is:
this is work in Firefox 3.6.1, but in google chrome 7.0.517.41 the submit button do nothing..
Thx..
Upvotes: 1
Views: 824
Reputation: 28883
Looking at my error log it seems you are still referencing console
. If the console isn't open then window.console
is undefined and will halt execution.
function contact_us(){
/**************REMOVE*******************/
console.log('AJAXnya start');
/**************THIS*******************/
$('#contactus form').fadeTo('slow', .2);
$.ajax({
type : 'POST',
url : '/wp-content/themes/second-edition/js/form-contactus.php',
dataType : 'json',
data : {
name : $('#contactus input[name="name"]').val(),
surname : $('#contactus input[name="surname"]').val(),
email : $('#contactus input[name="email"]').val(),
website : $('#contactus input[name="website"]').val(),
message : $('#contactus textarea[name="message"]').val()
},
success : function(data){
alert(data.msg);
$('#contactus form').fadeTo('slow', 1);
},
error: function(XMLHttpRequest, textStatus, errorThrown){
alert('There Was an Error, please contact Web Administrator');
}
});
}
Upvotes: 1