Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using Ajax Validation - onStepChanging Event #161

Open
yogeshkoli opened this issue Oct 7, 2015 · 3 comments
Open

Using Ajax Validation - onStepChanging Event #161

yogeshkoli opened this issue Oct 7, 2015 · 3 comments

Comments

@yogeshkoli
Copy link

onStepChanging: function(event, currentIndex, newIndex)
{
        if(currentIndex == 0)
         {
            $.post("ValidateEmail.php",{email:email},function(data, status){
                if(data == 1)
                {
                   return false;
                }
                else
                {
                   return true;
               }
           });
        }
}

When I tried this, it keeps on the same step does't go to the next step, is there any issue in my code or it does't support with ajax validation ?

@simono
Copy link

simono commented Oct 8, 2015

@yogeshkoli The jQuery POST is asynchronous but onStepChanging doesn't support this. See #151 for a possible solution.

@t3chboy
Copy link

t3chboy commented Oct 27, 2015

Have made new changes to code,hope it is helpful to all
see New changes

@yogeshkoli
Copy link
Author

Thanks @simono it works for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants