Skip to content

login form ajax #59

@deathrace37

Description

@deathrace37

Sorry, i'm french and my english is verry bad.
I want to using ajax :
`var dataString = $('#login-form').serialize(); // Collect data from form
$.ajax({
type: "POST",
url: $('#login-form').attr('action'),
data: dataString,
timeout: 6000,
error: function (request, error) {

            },
            success: function (response) {
                response = $.parseJSON(response);
               if (response.success) {
                    alert('ok');
                 } 
               
            }
            
            
        });
        return false;`

But I do not know how. Please help me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions