Stepper, PHP validating MySQL Data (failure not stopping the


Topic: Stepper, PHP validating MySQL Data ("failure" not stopping the loader) - 4.6.0

Andrew Ford pro premium priority asked 6 years ago

*** This is 4.6.0 (Not on the list) ***

I'm pulling bits of code from all over MDB, the Ajax Contact Form tutorial.

// jQuery:
if
(data.code)

// PHP:
print
json_encode(array('message' => 'Email successfully sent!', 'code' => 1)); exit();

And I said I am working with the stepper with a Password Reset form, I am successfully triggering .nextStep(); if the email does exist in the database since I have 'code' => 1. But when I set the 'code'=>0, I put in my JS

if(data.code) {
var go_to_stp_two = setTimeout(function () { $('#horizontal-stepper').nextStep(); }, 2000);
} else {
clearTimeout(go_to_stp_two);
}

What I am hoping to accomplish is letting the person edit the input without refreshing the page to stop the spinner.


Jakub Mandra staff premium answered 6 years ago

Hi,

This approach is not compatible with validation on server side.
I will send the ticket to our JQ team to take future care of that issue.


FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Closed

Specification of the issue
  • User: Pro
  • Premium support: Yes
  • Technology: MDB jQuery
  • MDB Version: 4.5.15
  • Device: N/A
  • Browser: N/A
  • OS: N/A
  • Provided sample code: No
  • Provided link: No
Tags