seco
11-22-2010, 09:31 PM
So this works in everything but IE, if you click the orange quote buttons a form shows. In any other browser it returns a thank you result, in IE it doesnt return the result but it still sends the email.
http://www.emergentsx.com/brocade.html
here is the jquery, see any problems IE might have with it?
on a side note, it works in IE on the front page but not any other.
$(document).ready(function () {
$("#ajax-contact-form").submit(function () {
var str = $(this).serialize();
$.ajax({
type: "POST",
url: "/maint_contact_reg.php",
data: str,
success: function (msg) {
$("#note").ajaxComplete(function (event, request, settings) {
if (msg == 'OK')
{
result = '<div class="notification_ok">Your message has been sent. Thank you!</div>';
$("#fields").hide();
}
else {
result = msg;
}
$(this).html(result);
});
}
});
return false;
});
});
http://www.emergentsx.com/brocade.html
here is the jquery, see any problems IE might have with it?
on a side note, it works in IE on the front page but not any other.
$(document).ready(function () {
$("#ajax-contact-form").submit(function () {
var str = $(this).serialize();
$.ajax({
type: "POST",
url: "/maint_contact_reg.php",
data: str,
success: function (msg) {
$("#note").ajaxComplete(function (event, request, settings) {
if (msg == 'OK')
{
result = '<div class="notification_ok">Your message has been sent. Thank you!</div>';
$("#fields").hide();
}
else {
result = msg;
}
$(this).html(result);
});
}
});
return false;
});
});