3 ms·
You could even do that before XmlHttpRequest, and on non-MS browsers. But it was unusual for anyone to bother. People mostly didn't think of it until XHR beca
by jlokier 6y ago
You could even do that before XmlHttpRequest, and on non-MS browsers. But it was unusual for anyone to bother.
People mostly didn't think of it until XHR became popular.
- TedDoesntTalk 6y agoUh, how?
- sergeykish 6y agoThere was RSExecute, claimed to work with IE3+ and NN3+. IE4 implemented XML Data Islands with Java Applets, anyone could do it. MSXML XMLHTTP was ActiveX component, as was one of the crossorigin tools - Flash, anyone could do it. I have to check JSONP support.
- TedDoesntTalk 6y ago> anyone could do it Plugins like flash and java applets were non-starters for many enterprises. XML Data Islands, as I recall, did not do any network requests. They were chunks of XML. Anyone could not do network requests with XML Data Islands. RSExecute... I looked it up. Ok I stand corrected although it is not clear when that was released for IE. JSONP? What? JSON did not exist back then. Are you trolling?
- sergeykish 6y agoRSExecute: I've got Microsoft Scripting Libary 1.0a > Copyright 1999 Microsoft Corporation. All Rights Reserved. Versions above are from the article [1]. XML Data Islands network requests: <OBJECT width=0 height=0 classid="clsid:550dda30-0541-11d2-9ca9-0060b0ec3d39" id="xmldso"> </OBJECT> <SCRIPT for=window event=onload> var doc = xmldso.XMLDocument; doc.load("books.xml"); JSONP: I've referred it as an idea of loading data in remote <script> callback. >>>> You could even do that before XmlHttpRequest MSXML is just a widely deployed ActiveX control, not part of the browser like favicon. Anyone could implement it or java applet. [1] https://daurril.org/wrox/ASPToday/990930-191.htm https://daurril.org/wrox/ASPToday/990930-191.htm
- jlokier 6y agoJSONP, or the iframe equivalent. I know, you're thinking JSON didn't exist back then, I must be trolling. I'm not, and it did! JSON is short for "JavaScript Object Notation". With rare exceptions, it's valid JavaScript already! So JSONP only needs pure JavaScript, nothing else. However, back then it wasnt necessary to use object notation at all. As it was returning a script to run, the script could just call functions directly instead of assembling an object. Aside from JavaScript, people also used a Java applet or Flash to do the communication (faster than JSONP) as most browsers had at least one of those installed. Java and Flash could both be called from JavaScript.