Tag Archives: sesame beef and broccoli
by George Duran Ingredients: ¾ lb. skirt steak, cut in strips 1 lb. broccoli florets or broccolini cut into …
Read More
');
return false;
} else {
// Sending the data
var data = {
action: 'send_international_sales_email',
first_name: first_name,
last_name: last_name,
user_email: user_email,
postal_code: postal_code,
state_province: state_province,
user_message: user_message,
user_lang: user_lang,
user_ip: user_ip,
};
$('#intl-submit-the-form').hide();
// LOAD SPIN GIF $(".ajaxsave").show();
var $resultEmail = $.post("http://cookina.co/blog/wp-admin/admin-ajax.php", data,
function(response){
//$(".ajaxsave").hide();
$('#intl-submit-the-form').show();
$('#send-international-contact-email .mandatory').css('border', '1px solid #959595');
var return_message = "Unknown error.";
var the_response = parseInt(response);
switch(the_response) {
case 100:
return_message = "Your message was sent successfully. Thank you!";
break;
case 109:
return_message = "Your message was sent successfully. Thank you!
Warning: your email is already subscribed to the mailing list.
";
break;
case 404:
return_message = "
We encountered a problem when trying to send your message. Please try again later.
";
break;
default:
return_message = "
An error occured.
";
}
$("#intl_response").html(return_message);
});
setTimeout(function(){
$("#send-international-contact-email").unbind('submit');
$("#send-international-contact-email").submit();
}, 2500); //end of setTimeout
//$("#intl_response").html("Your message was sent successfully. Thank you!");
return false;
}
});
});
/* ]]> */