Does JavaFX Spell The End Of AJAX? No.

World, this is a press release. Press release, say hi to the world…

Does JavaFX Spell The End Of AJAX?

You know all that AJAX code you’ve been writing and tearing your hair out over as you attempt to get the JavaScript working in both Internet Explorer and Firefox? Yeah, that AJAX code.

Oh, that thing I use JQuery for (or some another reasonable library)? No, I’ve never really had javascript compatibility issues - I’m more scared of the inconsistencies in HTML and CSS between the two browsers.

It’s all going to be useless real soon.

Sure, I’m sure there are more people with the Java Runtime installed with a vaguely decent internet browser than people with just a vaguely decent internet browser.

JavaFX will also trigger desktop integration of over-the-wire applications with Java, rather than relying on a constant connection for the JavaScript used in AJAX.

There are more perks with JavaFX, Sun officials claim. One of the knocks on AJAX applications, aside from browser compatibility, is that it requires a large amount of JavaScript to be sent over the wire; that script could have something malicious embedded in it.

Constant connection? Large amount of javascript? 3kb of cacheable javascript versus a 50mb JRE download? Ok, so javascript code that is plainly visible for anyone to read via their view source option in the browser, is worse than some proprietary module that sits on my machine and has potential access to my HDD?

So instead of relying on the browser to sandbox off JavaScript code, the applications use the security features in Java SE to control an application’s hard drive access. Because it runs on the client and is not dependent on code sent over the wire, it also means applications written in AJAX, such as Google Apps, can be used offline.

Where exactly are you going to get the information to return via JavaFX if you’re offline? Wait, unless all you’re talking about is fancy special effects… which AJAX can also do whilst disconnected…

I think someone has gotten very confused and is comparing JavaFX to the nearest big thing she/he could think of. JavaFX is obviously some kind of competitor to Silverlight and Adobe’s Flex or whatever it’s called, and hence is catering to a different kind of development problem that AJAX caters for.

No comments yet. Be the first.

Leave a reply