Live data from Hacker News

I just learned about HTML redirects (2020)

apitman.com

51–60 of 88 posts

Re: I just learned about HTML redirects (2020)

#51
post #49
post #47

Earlier quoted context omitted.

Looks like 'Comet' got coined in 2006. The CGI:IRC approach.. I had a smile and an "aha" on seeing the term "forever frames" :-) I think the wiki page is wrong that it involved chunked encoding

Woah! I completely and entirely forgot the term "forever frame" existed. Another term you don't see too often these days is the "holy grail" layout. I definitely remember the days of messing with negative margins and clearfix to get my page layouts to look nice while still working in IE 6 :)

Me too :-D

I think you're right that Comet refers more to the JavaScript techniques that came from those "forever frames".. but to me it was all about the streaming HTTP hack at the heart of it.

I guess it's academic now :-)

Regarding holy grail layout and IE6.. so you're telling me you're a masochist!

Re: I just learned about HTML redirects (2020)

#55
post #30
post #26

Earlier quoted context omitted.

I fondly remember html-only iframe chats.

IIRC CGI:IRC had an even more clever version of this: still no JavaScript needed, but Also no refresh needed, as the chat frame response would simply be held open and stream new messages. I never dug too deep into it, but it seemed to work surprisingly well.

Ha remember that too! It’s basically just keeping the socket open and continuously streaming a response. As if it’s just a slow download. It’d also send heartbeat null values to keep the connection open. Of course in the CGI days that really didn’t scale well as it required a whole process to run for each user.

Re: I just learned about HTML redirects (2020)

#56
I've recently deployed this trick on my company's confluence instance (with an HTML macro) to create a "poor man's" link shortener that allows me to change the link target after the fact.

Also recently deployed it as a very simple server side denounce: when the client first accesses page X a long running operation is dispatched. Subsequent requests for the same resource before it's done processing return a plain HTML response that says "Still thinking about it" and meta refresh after 1 second.

Re: I just learned about HTML redirects (2020)

#57
Combining it with the referrer tag and you can make some pretty interesting graphs. With frames you can even do Floyd's algorithm.

I made a demo of this about 20 years ago but I think it just confused people. One of my early flops that I thought was cool. It was all in perl and I think there was some JS in there as well but I don't remember anymore. No idea where it is now.

Rewrite it and make a hyped up pitch page. People will call you a genius and I'll pretend not to care

Re: I just learned about HTML redirects (2020)

#58
post #42
post #26

Earlier quoted context omitted.

I fondly remember html-only iframe chats.

controversial opinion, frames were awesome...for some things

I got PTSD... then again, a lot of things were wrong about that system. GET requests casually loading up whole database in memory while calling stored procedures that inexplicably modify like half of persisted version of it. and that's just to render some stupid list o_0

Re: I just learned about HTML redirects (2020)

#59
post #56

I've recently deployed this trick on my company's confluence instance (with an HTML macro) to create a "poor man's" link shortener that allows me to change the link target after the fact. Also recently deployed it as a very simple server side denounce: when the client first accesses page X a long running operation is dispatched. Subsequent requests for the same resource before it's done processing return a plain HTML…

[deleted]

Re: I just learned about HTML redirects (2020)

#60

This is also used as a poor man’s live feed: just use this element to reload the page or frame on a set interval.

This is one of the oldest tricks in the book and was used heavily before WebSockets and similar became mainstream.

Monit does to this produce a live feed. It’s kind of annoying sometimes, you lose highlighted text.
Post reply on HN