OZONE Asylum
Forums
DHTML/Javascript
Eclipse goes Ajax
This page's ID:
27748
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
As stupid as the Ajax term is, it helped nail the concept of asynchronous application to a slightly broader public than the web developers who anyway have all done asynchronous applications for aeons. You should read Jim Ley's article about [url=http://jibbering.com/2002/4/httprequest.html]using the XML HTTP Request object[/url]. He provides a method to instanciate an XMLHttpRequest object that work in Internet Explorer on Windows, Safari on Mac OS-X, Mozilla on all platforms, Konqueror in KDE, IceBrowser on Java, and Opera on all platforms including Symbian. Beside the instanciation that is crippled in IE, the browser vendors have implemented the same methods. As there was no open standard they slightly differ in some parts ( such as when the readyState is reset to 1 when you re-open() a connection, ... ). [b]H][RO:[/b] You can use the XML 'mode' if the server return a [i]Content-type: text/xml/[/i] or [i]application/anything+xml[/i], and of course the XML document must be valid. A node not closed, or a gremlins in the attributes and bam! the [i]responseXML[/i] property of you XMLHttpRequest object will be [i]null[/i]. But it's really simple to generate a valid XML document.[quote]i mean JSON uses async etc.. [/quote]:confused: JSON is just a de/serializer of JavaScript objects. You can use it anywhere, regardless of the synchronous state of your code. And FWIW I don't really like JSON for it uses eval(). Eval() is evil. It has some security issues. On one hqnd I recognize that JSON is convenient because you don't have to parse a hell of XML document, but writing a parser is not hard and much cleaner. [url=http://www.p01.org/][img]http://poi.ribbon.free.fr/files/p01_ozoneasylum_sig_galaxy.gif[/img][/url] [small](Edited by [url=http://www.ozoneasylum.com/user/2185]poi[/url] on 04-09-2006 14:21)[/small]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »