JavaScript Client-Side form validation DOESN'T WORK - Here's Why

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 ธ.ค. 2024

ความคิดเห็น • 5

  • @krccmsitp2884
    @krccmsitp2884 ปีที่แล้ว +3

    I hope noone thinks validation on client-side only is "secure", so good that you address this topic. What drives me crazy, however, is that 1Password popup. 😒

    • @JamesQQuick
      @JamesQQuick  ปีที่แล้ว +1

      I know!! I'm trying to find a way to disable it on localhost. Sorry about that!

  • @sebastiandahlstrom4971
    @sebastiandahlstrom4971 ปีที่แล้ว

    KING! Keep going James. Ma fav. Thank you!

  • @lukecartwright613
    @lukecartwright613 ปีที่แล้ว

    You can also check response.ok which returns a Boolean if response 200-299.
    This might be better then checking response.status != 200
    200-299 errors are successful i.e. created or successful get.