Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder seco's Avatar
    Join Date
    Nov 2008
    Location
    Oregon
    Posts
    687
    Thanks
    6
    Thanked 79 Times in 77 Posts

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

    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.

    Code:
    $(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;
        });
    });
    Last edited by seco; 11-22-2010 at 10:54 PM.

  • #2
    Senior Coder
    Join Date
    Feb 2009
    Location
    Ilkley, West Yorkshire, UK
    Posts
    2,957
    Thanks
    9
    Thanked 727 Times in 721 Posts
    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....

  • #3
    Regular Coder seco's Avatar
    Join Date
    Nov 2008
    Location
    Oregon
    Posts
    687
    Thanks
    6
    Thanked 79 Times in 77 Posts
    i fixed it, i have conflicting vars with the current ecom system im using.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •