News for hackers. Stuff that matters.
Re:Only 90s Web Developers Remember This by jeswin on Thursday January 25, 2024 @04:02AM (#39127618)
I don't remember if this was a common technique, but before XmlHttpRequest (came in 2000, i think) we used to do "Ajax" by loading data into an invisible iframe and reading the contents. Worked well iirc.
Re:Only 90s Web Developers Remember This by geek_at on Thursday January 25, 2024 @04:05AM (#39127635)
Oh right I forgot about that.

Also back then (up until ~2005) browsers were hilariously insecure. For example I was in a forum of a local youth club and you could have signatures that were displayed under every post so I added some edgy image linked from my own webserver.

Some day I accidentally put the whole folder on a password protection which prompted the "username password" login window on every page my signature was linked to. FOR ALL USERS.

I realized users would think that the forum software would ask them to log in again for some reason so I basically got all passwords of people in the forum in plaintext on my webserver.

Crazy times

Re:Only 90s Web Developers Remember This by arkh on Thursday January 25, 2024 @04:14AM (#39127669)
> reading the contents

Or having some javascript code in the page loaded by the iframe which could call some parent. function.

Re:Only 90s Web Developers Remember This by beejiu on Thursday January 25, 2024 @05:29AM (#39128089)
You could even do realtime stuff by leaving the HTTP socket open and writing out script tags when you needed to. https://en.wikipedia.org/wiki/Comet_(programming)
Re:Only 90s Web Developers Remember This by EasyMark on Thursday January 25, 2024 @06:15AM (#39128343)
did you ping pong communicate data back and forth between iframe and "main frame" like a queue/pipe?
Re:Only 90s Web Developers Remember This by clownbaby on Thursday January 25, 2024 @12:19PM (#39132010)
I also don't know how widespread this technique was back then, but I'm shocked this was left out of the article. This phenomenon was literally the method that transformed a "websites" into "webapps" in the early days. We would use pools of invisible iframes to constantly update different parts of the page for a "reactive" experience. The author mentions various important hacks that define the early days, but missing this one seems like a blunder to me.