I am not trying to start a debate or anything. However I am very curious as to why anyone should write ajax vs flash. Having used both, it has been my observation that Flash can do everything that Ajax can. Plus you don't have to worry about writing browser specific code as you would using Ajax. What are the pros and cons? Thanks in advance!
You are comparing apples to oranges. AJAX and Flash can do similar things but they are nothing alike.
Flash is also not language. But it is much more than passing of data. It uses ActionScript to create interactivity for a client machine. But also can be used as a mere graphic or video as designed within the IDE. Flash doesn't require any programming in order to run.
What aspect of these very different objects are you attempting to compare?
If the post was helpful...Rate it! Remember to use [code] or [php] tags.
I agree with you that AJAX is an implementation of passing data via xml.
However, generally the reason people use ajax is so that their website will resemble a Desktop application. That is pretty much the point of passing the xml data within the form as opposed to making a request to another server and then reloading the whole page.
Sorry, I am not trying to create a war or anything. I am just very curious as to why it would be better to go the route of html + ajax vs flash route. Thanks in advance!
4. Good roots. AJAX is a technology been in existence since the 90's. It has been standard and the standard was set high when it began.
Flash has been around since the 90's too .
Personally I prefer AJAX to Flash for several reasons:
I don't have a copy of Flash. To use AJAX I just use a text editor.
AJAX isn't owned by anybody, I'm a bit of an open-source advocate, so AJAX is preferable to Flash in that respect.
AJAX doesn't require any special plugins. The browser needs to support it, but pretty much all modern browsers do so it's a non-issue.
Most important: AJAX is simple. With Flash I get all these bells and whistles to do all these fancy things like animations and playing sounds. AJAX addresses a single need: to interact with the server without refreshing the page. Also other libraries like jQuery make AJAX even simpler to use without adding much overhead.
I also use Ajax and Flash, and Ajax is (to me) much much easier. Of course, flash can do anything ajax can do with a little bit of actionscript, but some users may not have flash. also, making ajax browser specific is not very difficult. you can just do something like this:
// Firefox, Opera 8.0+, Safari
// Internet Explorer
alert("Your browser does not support AJAX!");
so it's really just a matter how much time you want to put into something
Last edited by PeejAvery; July 21st, 2007 at 03:35 PM.