JQUERY live() AJAX Request

JQUERY live() AJAX Request

I have a strange issue, works fine in safari, but not in firefox....
Oh, and the form with the class .fjax is being loaded itself by ajax.

/// football form
    $('.fjax').live("submit", function() {       
        var fields = $(this).serialize();
        var path = this.action;
        $.ajax({
            type: "POST",
            url: "pages/" + path,
            data : fields,
            //dataType : "xml",
            success: function(msg) {
                alert('ok');
                $('input[type=submit]', this).attr('disabled', 'disabled');                   
            }, error: function(){ alert('Failed for some reason'); }
        });
       
        return false;
       
       });

Any pointers?






















    • Topic Participants

    • andy