• Limonene@lemmy.world
    link
    fedilink
    English
    arrow-up
    3
    arrow-down
    4
    ·
    3 days ago

    Search is easier to implement without Javascript than with.

    <form method="GET" action="/search">
    <input name="q">
    <input type=submit>
    </form>
    
    • Victor@lemmy.world
      link
      fedilink
      English
      arrow-up
      5
      arrow-down
      2
      ·
      3 days ago

      Does that little snippet include suggestions, like I mentioned? Of course it’s easier with less functionality.

      • humorlessrepost@lemmy.world
        link
        fedilink
        English
        arrow-up
        4
        ·
        edit-2
        3 days ago

        Back in my day, we’d take that fully-functional form and do progressive enhancement to add that functionality on top with js. You know, back when we (or the people paying us) gave a fuck.

        • Victor@lemmy.world
          link
          fedilink
          English
          arrow-up
          1
          ·
          2 days ago

          Ah yes. Progressive enhancement, I remember that. I wonder when and how that morphed into graceful degradation.