views:

90

answers:

1
$.post($(this).attr("action"), $(this).serialize(), function(json) {
            alert('red');
            AddItemAjax(json);
        }, "json");

This works in Chrome but not IE or FF.. it fails to just run this line of code. Ive made sure it gets to this point but fails when trying the post! (note i have the alert('red'); to let me know if it run it fine)

+2  A: 

thanks guys but i found out the issue.. "$(this).attr("action")" was returning a null.. and Chrome didn't have a problem with this but everything else (FF and IE8) did!!!

but thanks for the help!

Steve