Post 9pMRDC0HNGFaPafPHc by Wolf480pl@niu.moe
 (DIR) More posts by Wolf480pl@niu.moe
 (DIR) Post #9pMFuriEygPulwHtxY by ayo@niu.moe
       2019-11-26T15:31:36Z
       
       0 likes, 0 repeats
       
       Age-old dilemma: I hate long URLs, but I also don't want to get fancy with using Javascript to create custom query encodings.E.g. A list of column names would encode in a query string as 'c=column_a&c=column_b' etc. But more efficient would be: "c=ab" (one character per selected column) or even "c=3" (yay for bit flags).
       
 (DIR) Post #9pMGYuKKg1eESpCMvA by ayo@niu.moe
       2019-11-26T15:38:46Z
       
       0 likes, 0 repeats
       
       Real example of a URL I just created:/u2/ulist?c=added&c=finished&c=modified&c=rating&c=rel&c=started&c=vote&c=voted&l=-1&l=1&l=11&l=12&l=2&l=3&l=4&l=5&l=6&l=7&o=d&p=2&s=labelThat could be *much* shorter!  :blobcatnotlikethis:
       
 (DIR) Post #9pMGq5mrK0GqvhjgkC by ayo@niu.moe
       2019-11-26T15:41:58Z
       
       0 likes, 0 repeats
       
       I'm just complaining about it because I don't feel like working on the CSS mess that needs my attention right now. :blobblush:
       
 (DIR) Post #9pMHHYMVBm53N7VBb6 by wasamasa@niu.moe
       2019-11-26T15:46:53Z
       
       0 likes, 0 repeats
       
       @ayo What does that have to do with JS? Granted, client-side routing never made much sense to me, I don't see anything preventing it to be done server-side.
       
 (DIR) Post #9pMHg8R8iPKACpOPPU by ayo@niu.moe
       2019-11-26T15:51:21Z
       
       0 likes, 0 repeats
       
       @wasamasa The naive and long query parameters can be generated through <form method="get">. That'll not work with custom encodings.
       
 (DIR) Post #9pMI2V1DR9icc4vn4C by ayo@niu.moe
       2019-11-26T15:55:25Z
       
       0 likes, 0 repeats
       
       @wasamasa For a real (and not very extreme) example, check out https://vndb.org/histThat filter selection section is just a plain CSS'd HTML form with checkboxes and radio buttons.
       
 (DIR) Post #9pMIYt97Gd9mi44SA4 by wasamasa@niu.moe
       2019-11-26T16:01:13Z
       
       0 likes, 0 repeats
       
       @ayo Thank you, that makes more sense. I can imagine some workarounds, but nothing less icky. Somehow I suspect the web doesn't exactly lend itself to complex user interfaces...
       
 (DIR) Post #9pMQQGO8Hca5oyUcEq by alcinnz@floss.social
       2019-11-26T17:29:20Z
       
       0 likes, 0 repeats
       
       @ayo Hmmm, I wonder if there's any tools I could help someone build that'd help you tidy up that mess...
       
 (DIR) Post #9pMRDC0HNGFaPafPHc by Wolf480pl@niu.moe
       2019-11-26T17:38:09Z
       
       0 likes, 0 repeats
       
       @ayoSend it via POST so that people don't see this mess :P