Timeline for password protected post policy
Current License: CC BY-SA 3.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 16, 2018 at 13:47 | comment | added | Mark Kaplun | yeh, not sure this is what the OP looking for, but you have a point | |
Mar 16, 2018 at 11:10 | comment | added | Mike | I agree but it should be noted that the javascript solution will not work when creating a post programmatically. | |
Mar 16, 2018 at 9:42 | comment | added | Mark Kaplun | it should be done both sides. It is faster to have a response from avalidating JS code than wait for the at least 1 second delay required for ajax requests on most site (and that is probably optimistic estimate). In any case the ajax is not enough unless you are also blocking the submit while it is going on. | |
Mar 16, 2018 at 9:18 | comment | added | Mike | Because I assumed the password policy would be implemented in PHP. If it can be done on the client side, then sure, no need for an ajax request. | |
Mar 16, 2018 at 8:22 | comment | added | Mark Kaplun | not sure why do you want to send the AJAX request to the server, why not to just check the field client side. As for handling errors, you can always set a cookie to indicate an error | |
Mar 16, 2018 at 8:16 | history | answered | Mike | CC BY-SA 3.0 |