-
Notifications
You must be signed in to change notification settings - Fork 30
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
handler pending line 425 #27
Comments
Hi @arfa2 Im alive :) but I had an operation acl surgery, so these days I could not take care of this plugin. Btw validetta still developing on branch develop. v1.0.1 is ready but I could not complete documentation yet. That's why I dont publish. As for the your problem, actually I dont fully understand. Can you explain a bit more? |
I am happy to hear from you. Great that you are alive. I hope all your medical things are settling OK. You don't look so old so hopefully the body behaves for a while on yet. Problem - Forcing the error Solution? basically I rem #425 > this.handler = 'pending'; - and it works. Otherwise it does not. Please remember that I am not a pro. coder so I may be a bit slow or incorrect with some things. Working through the sequential logic of > remoteRequest : function {}... done - fail - always -- I wonder why, regardless of the state of the preceding 3 tests, this final line is there? Bottom line is - I have it working OK for my setup. I haven't tested it on-line. I am an old PHP hack from way back and am enjoying working with your code. jquery is relatively new for me and trying to get validetta to do 'extra' things has given this old brain a comfortable challenge. I have other questions but will see if I can resolve on my own for now. |
I am working on a repeated-error example to post online but am quite busy just now. It also seems to have something to do with the form action=" " ... |
It would be great to see an online example. Im waiting for your example. |
Excuse me if I am wasting time but there is different behaviour (for me) between offline & online. Clearly online is where the truth must exist and it seems that remming that line makes no visible difference. You can view my two examples -- identical except the 1 line remm'd. Part of the reason I have taken this long is due to some erratic, inconsistent behaviours (offline) and part of this is likely due to my ignorance of json Two (I presume simple) questions: I will continue trying to reconcile offline differences and see if you have comments on this. |
Full form re-load then click submit (with no data, or just one line, entered) gives... |
ps: I have added |
Hi @arfa2 As I see it, you are on the wrong way. Firstly, Let me clarify that you should to use remote validation for validate a filed realtime. And If you read the the documentation for Remote Validation, The response from the ajax request must be a JSON formatted object, containing the properties "valid" and "message". You can not reach the value returned by using remote validation. Remote validation is only check a fileld is a valid or not. Remote validation is asynchronous. Therefore we use In this case, You should use this example http://lab.hasanaydogdu.com/validetta/demo/ajax.html Sory for the late reply. Thanks. |
Your reply is most welcome. BTW - I have reviewed several validation-script offerings and feel that yours is one of the best. Thank you. All I need to do is learn how to use it properly [grin] I still need to reconcile my offline-online anomalies. |
Im glad you love it, My pleasure if I can help you. Thank you |
I wonder if there is still any life here? 2014 was the peak... :)
Anyhow, I am pressing on.
Simple login > 2 fields to check against a small database. Both fields have
data-validetta='remote[check_change]'
Basically it works BUT... once both fields are true - to get the onValid to fire - I need to force another error - then it fires.
event.preventDefault(); alert( event.isDefaultPrevented() ); // true
This has been a bit of a hair puller. What I am currently testing is remming line 425
this.handler = 'pending';
I am only an amateur but wonder why, at the end of all the remote testing, this is thrown in.
I get positives for line 368 & 412 -- ie. all is good and clear but then... we are back to pending.
I will test this with other forms but so far taking out that closing line seems to fix it.
Anyone????
The text was updated successfully, but these errors were encountered: