Why Microsoft and Google are Cleaning Up With AJAX
OSS_ilation writes "Google uses it, and Microsoft is pursuing it, so there's a lot of hype and hubbub surrounding AJAX (Asynchronous JavaScript and XML). AJAX brings together some hot properties, JavaScript, HTML/DHTML and HTML, according to Julie Hanna Farris, founder of Scalix, a Linux-based, e-mail systems vendor. Scalix is using AJAX in Scalix Web Access (SWA), a Web-delivered, e-mail application. AJAX enables advanced features like drag 'n drop, dropdown menus and faster performance capabilities, which are now making their way into Web applications, she said. These kinds of capabilities represent a significant leap in the advancement of Web apps."
Microsoft was using Ajax before anyone ever even heard of google. Outlook web interface anyone? Cmon, at least be semi-accurate.
The .Net alternative IS AJAX. VS.Net 2k5 has AJAX components built in. It takes a mater of seconds to get AJAX running in 2k5. There are also plug ins available for VS 2k2/2k3 to run AJAX.
-Rick
"Most people in the U.S. wouldn't know they live in a tyrannical state if it walked up and grabbed their junk." - MyFirs
The .NET alternative, which comes as a part of .NET 2.0/Visual Studio 2005, is Atlas.
Here's an overview.
Yes! I found it! What dogs hear
If you are typing on a web page that uses XMLHTTPRequest, then you should treat it as if you were running a live program remotely. I.E. the web page could forward information about everything you type, how you move your mouse, etc, without an explicit 'submit'. Example : it if were an email app, and you typed 'my boss is a dick and my SSN is 555-55-5555' in an edit control, and then thought better of it and erased what you typed and killed the browser window without submitting, the contents could already have been captured and forwarded to the host with XMLHTTPRequest and you never knew it. Looks like a good cross site scripting opportunity.
Of course, you usually don't know if a page is using XMLHTTPRequest in a hidden frame unless you look really hard, so I guess the bottom line is never type anything on a web page you don't want the world to see. On the other hand, AFAIK (which doesn't mean much) this hasn't shown up in practice, so maybe it isn't that big a deal.
I think the grandparent was saying that it would be nice to replace the J in AJAX with something else. But I am not sure what they meant and should let them speak for themselves. :-)
Currently hooked on AMP
Hi, My name is Dion Almaer, and I run a site called ajaxian.com which focuses on news, resources, and all things Ajax. We also have a podcast called Audible Ajax. Let us know if there is anything that you would like to see covered, and if there is anything cool in the Ajax world that we have missed. Cheers, Dion
"Microsoft invented the XmlHttpRequest functionality,"
Microsoft invented XMLHttpRequest because before that people were using tiny little java applets to accomplish the same thing. In fact the original version of remote scripting in IE also used a java applet. When MS decided that java was the enemy they figured a way to do it without java.
I for one see no need for AJAX, it's better to just write java applications or even applets (or thinlets).
evil is as evil does
Here is a fairly long list of websites that use AJAX -- http://en.wikipedia.org/wiki/List_of_websites_usin g_Ajax
Sun and Fun
1. The good ancient way.
....
Try this:
#!/usr/bin/perl
print "Content-type: text/plain\n\n";
$|=1;
(print '.'),sleep 1 while 1;
2. With XMLHttpRequest:
var req = new XMLHttpRequest();
req.multipart=1;
and the server-side part uses content-type: multipart/x-mixed-replace
The creatures outside looked from Alt-Right to Antifa; but already it was impossible to say which was which.
Moby, Ajax is being hyped a lot at the moment, that is very true. It is also true that building a very rich Ajax application on top of XHR isn't easy. However, one of the great things coming out of the attention, is that browsers are listening and adding support for apis such as "offline storage" which we have been wanting forever. Also, a lot of quality toolkits are out there now (Dojo, Zimbra, Prototype, ...) and they are doing the hard work of abstracting out the evil browser differences.
Unfortunely, a recent poll on ajaxian.com showed that most people are not using these frameworks.
What you get with Ajax is reach and open standards. That is why I am excited about its potential, even though we are seeing some abuse, the hype curve is nuts.
Cheers,
Dion
So you can't use it in software that might be sold to, for example US Government customers -- no national laboratories, no NASA, etc.
UNLESS -- you write your own accessibility aids and write your own UI framework that compiles into both an AJAX version and a web accessible version.
That's a tall order. However, there is help.
You can write your web pages in HTML with XForms and let XForms handle the dynamic page aspects, and then offer up the HTML+XForms as the accessible version. (See the DHTML Accessibility Roadmap.)
Everything that the AJAX cloud of applications does with the XMLHTTP object and updating the DOM on the fly to display choices can be done with XForms.
Then, you can use one of these mechanisms to convert the server-side XHTML+XForms file into AJAX:
If you want to serve up the XHTML+XForms directly, and not rely on any AJAX technologies, try these:
So, try them out, and see how much easier it is to write accessible code and properly separate your data and presentation layers when you use XHTML, CSS, and XForms. Then, choose a middleware solution or a browser-based solution and go forward knowing that you can meet architectural requirements without getting bogged down in JavaScript toolkits.
Existing APAX solutions use py2js so you write client code in python which is translated to javascript automagically.
See, e.g., Crackajax (or use plain py2js if you don't want a big framework).
http://www.aminus.org/blogs/index.php/phunt/2005/
I think TurboGears has something similar.
rage, rage against the dying of the light
Javascript is fine. Not perfect, but it is usable. It is HTML that blows for web apps. There are just so many basic things you can't do in HTML such as listboxes and treelists. And the widgets HTML does have are really nmeant for simple forms, not complex user interfaces. Sure, you can find ugly and slow Javascript implementations but what we need is a UI language such as XUL which can describe a fully functional application UI. Right now AJAX is OK for adding a little spice to traditional web applications, but it won't be a revolution until we have something besides HTML to describe the UI.
Javascript+XUL is very powerful. Consider that the entire Firefox front end is written in XUL and Javascript. You can use AJAX with XUL, BTW.
-matthew
"THERE IS NO JUSTICE, THERE IS ONLY ME." -Death
It is bullshit. AJAX does NOT give one the ability to deliver desktop quality applications through the web. Not even close. Sorry. At best, AJAX spices up traditional web applications. But it is still using HTML/CSS for the UI. The HTML/CSS document model simply doesn't work well for desktop quality applications.
Saying that AJAX will allow one to deliver desktop quality applications is like saying central heating will turn a mobile home into a mansion.
-matthew
"THERE IS NO JUSTICE, THERE IS ONLY ME." -Death
XUL provides both. AND you can use it with AJAX. But, alas, it only works with Mozilla based browers.
-matthew
"THERE IS NO JUSTICE, THERE IS ONLY ME." -Death
I was doing it in frames long before as well, have also used java, and flash, in fact MS's remote scripting (introduced with ie4, & asp 3 iirc) uses a java applet for its' communications.. there are similar frameworks for PHP etc.
I'm willing to give MS a big credit in this, however, since they did to XmlHttpRequest first, as well as their remote scripting, which makes easier tie ins on the server-side... their Atlas framework falls a little short of Ajax.Net's interfaces though.
Michael J. Ryan - tracker1.info
Turn off JavaScript and try and load Google Maps.
"Your web browser is not fully supported by Google"
There's no "basic version seamlessly" there.
You are forgetting that MS invented cross frame coding.
There should be no denying, MS lead the development of HTML into DHTML into what is basically refered to AJAX today. It might be that W3C defined certain things, but the "violation" of those definitions by MS (which many times W3C adopted) is the reason AJAX exists today.
Trace back the features you like today about AJAX and they all come down to MS features extending what was at the time the standard of web.
"From the moment I could talk, I was ordered to listen" - Cat Stevens