💾 Archived View for station.martinrue.com › aka_dude › 7ea90d796b0240908e969e229ea5808b captured on 2024-05-10 at 12:44:47. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-07-22)

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

👽 aka_dude

Writing web chat without js 🤌

2 years 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. · 2 years 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 · 2 years 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. · 2 years 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? · 2 years ago