10 minutes ago, Geoffreyk wrote
*snip*
No, the real power of ajax is to refresh the content of a web page without having to do a complete server round trip and complete page redraw.
Going across domains is not ajax. That would be a mashup. You are confusing the two.
Go back and re-read my posts. Slowly this time. I did not once confuse Ajax and cross-site scripting.
Web 2.0 != ajax. It would be correct to say that web 2.0 is a use of ajax.
No sh1t, Sherlock. I said:
However, the real power of Ajax is in the ability to create mash-ups using multiple web services across domains, and being able to not only GET the data from those services, but to also POST across domains to those services. That, IMO, is the quintessential Web 2.0.
Translation: Web 2.0 is the goal. Ajax is a method to achieve it.
Using Ajax just to eliminate full-page re-rendering is yesterday's news. Being able combine experiences from multiple web services into something completely seamless is the next step, and just getting data from the different web services is yesterday's news too. Being able to POST and share data across domains is what makes Web 2.0 special.
Google get credit for being the first, large, successful use of ajax. Not for "inventing" it. I have never, ever, heard anyone say that.
The use of iframes != ajax. Even in the modern web context, iframes are used mainly for advertising. They are only used to POST data when that data can not be transmitted in a GET. And this technique has only really caught on because the iframe itself has been abstracted away in libraries like jquery.
Dude, you're so set on trying to find some technical inaccuracies in what I posted, that you're seeing claims that I never made. My point from the start is that Microsoft came up with two technologies, XmlHttpRequest and iframe, which are essential for Ajax and cross-site scripting.
Translation: If you want to have both Ajax AND cross-site scripting, both XmlHttpRequest and iframe are essential.
How do you get "Ajax = cross-site scripting" from that?
Beyond that, you're just getting into a pissing match about the importance of the iframe.
So what if it's been abstracted away? So has XmlHttpRequest by libraries like jQuery. What's your point?
Sure iframes are used considerably for ads, but that's not the only and most important use case. Take a look at any site that uses DISQUS for a commenting system. DISQUS uses a toolkit called easyXDM that enables cross-site posting of data. You enter your comments from a site like Engadget, the comments get posted on DISQUS' web service, and the posted comments render on the originating site. easyXDM uses iframes and cross-origin resource sharing (CORS) to achieve cross-domain posting. Does it seem like somewhat of a hack? Damn straight, it does. So what? If a service like DISQUS depends on it, it's good enough for me.
Add your 2¢