💾 Archived View for station.martinrue.com › aka_dude › 7ea90d796b0240908e969e229ea5808b captured on 2023-05-24 at 21:08:41. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-01-29)

➡️ Next capture (2023-07-22)

-=-=-=-=-=-=-

👽 aka_dude

Writing web chat without js 🤌

1 year ago · 👍 devyl, bimzhob

Actions

👋 Join Station

4 Replies

👽 aka_dude

Right now I am mostly having fun with HTML/CSS. It is nice to immediately see fruits of your work, more rewarding than my usual backend stuff. I have ideas for better bots/interactivity than existing (popular) chats have. If I end up implementing something interesting, I'll write about it. It's a shame Station is not that great for threads, I kinda don't want to setup my own capsule. · 1 year ago

👽 aka_dude

@dimitrigorvachov

display messages

Simplest case: chat's interface is located in / (root). What happens when browser requests / ? If there is cookie that corresponds to username/password, then return HTML page with messages; else return some kind of login page.

TL;DR: server-side HTML rendering for changing content, cookies (TLS certs, maybe?) for auth, plus some room for optimization, e.g. mentioned iframe-s · 1 year ago

👽 devyl

@dimitrigorvachov for example with php. on the frontend side you should go with frames. a iframe for the chat with a autoreload of... 30 secs? ... would work. all other in serverside scripting and sessionvars :) that's easier as you might think. · 1 year ago

👽 dimitrigorvachov

parden my ignorance, but isn't that impossible? how will you display your messages? and also, how would you assign nicknames/IDs to users? · 1 year ago