...

View Full Version : jQuery: IE error only: Object doesn't support this property or method..



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

SB65
11-23-2010, 08:33 AM
The likeliest candidate seems ajaxComplete, although I don't know why that would cause IE a problem. IE7 reports an error at line 105181862, implausibly....

seco
11-24-2010, 10:57 PM
i fixed it, i have conflicting vars with the current ecom system im using.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum