News for hackers. Stuff that matters.
Re:D3.js 5.0 is out by realandreskytt on Friday March 23, 2018 @01:28AM (#16655320)
We used to do that stuff using frames back in the day. You’d have a hidden frame, change its url and look at what that dom contains. At scale, too. I was amazed at all the hoo-haa around that “new” xmlhttp API
Re:D3.js 5.0 is out by dustinmoorenet on Friday March 23, 2018 @09:32AM (#16657869)
We did the same thing, and to dynamically pull in content into the parent context, we created our own script block tag. <div type="javascript">...</div> so that we could extract the JS and eval it in the parent context. The clunky thing was that you had to hand escape reserved html characters (&, <, etc) in your JS code. So many bugs...
Re:D3.js 5.0 is out by cicloid on Friday March 23, 2018 @09:37AM (#16657927)
Wow, then I think that I jumped directly to that hoo-haa since I didn't even consider the technique you are describing, I wasn't expecting today learning something from dynamic HTML past of the web. Thanks!
Re:D3.js 5.0 is out by simcop2387 on Friday March 23, 2018 @03:36PM (#16661870)
Yea there were a few things like that to emulate it. Things like JSONP + document.write() were also very common, though very ugly.