4 ms·
Good idea, bad implementation. XmlHttpRequest was as bad a name choice as JsonRequest. There should be a data agnostic API used to communicate any kind of dat
by TweedHeads 18y ago
Good idea, bad implementation.
XmlHttpRequest was as bad a name choice as JsonRequest.
There should be a data agnostic API used to communicate any kind of data across web sites, with security in mind.
Name it HttpRequest, period.
- axod 18y agoWebSocket is a step in the right direction although afaik doesn't deal with different domains.
- mrfish 18y agoWhy? That would just confuse people.
- TweedHeads 18y agoNo, we shouldn't stuff browsers with an object for every data type in existance: XmlRequest, AsciiRequest, CSVRequest, EDIRequest, ASNRequest, TXTRequest, etc. Just one that allows same/remote connections and a few methods: get the data and check for errors. The parsing and validation should be done on the client after the data has been received and for that we have xml parsers and json parsers. The data transfer should have nothing to do with its format or content.