File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes Ajax versus Macromedia Flex Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Ajax versus Macromedia Flex" Watch "Ajax versus Macromedia Flex" New topic
Author

Ajax versus Macromedia Flex

Vicky Pandya
Ranch Hand

Joined: Dec 16, 2004
Posts: 148
How would you compare Ajax against Macromedia Flex. Both are similar technologies and offer similar features (UI richness, partial page refresh etc.) I wonder survival of Flex ($12K or more/CPU ?) on the other no investment using Ajax.

[ November 15, 2005: Message edited by: Vicky Pandya ]
[ November 15, 2005: Message edited by: Vicky Pandya ]
Vicky Pandya
Ranch Hand

Joined: Dec 16, 2004
Posts: 148
anyone?
Max Habibi
town drunk
( and author)
Sheriff

Joined: Jun 27, 2002
Posts: 4118
Bueler? Beuler?


Java Regular Expressions
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61417
    
  67

I don't know anything about flex, but AJAX mechansims are already built into the browsers. So if they offer similar capabilities, why go with a proprietary solution?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Varun Khanna
Ranch Hand

Joined: May 30, 2002
Posts: 1400
I am not sure why would you compare Flex and Ajax

Flex is a thing of flash world and it's more of a technology. It provides rich set of flash based jazzy components and other broad range of related functionalities. I don't see any existing Flex user dumping Flex for AJAX.
Probably AJAX can complement Flash thuogh I am not sure how it would or whether it's feasable at all or not.
[ November 15, 2005: Message edited by: Varun Khanna ]

- Varun
Vicky Pandya
Ranch Hand

Joined: Dec 16, 2004
Posts: 148
Primary purpose of Flex is to develop RIAs (Rich Internet Applications), which costs around $12K or more/CPU. RIAs can be developed using AJAX (free of cost technologies). In both cases you can have your choice of technology on server side (J2EE, .NET). Why wouldn't one compare these technologies when he/she is wanting to develop RIA?

Originally posted by Varun Khanna:
I am not sure why would you compare Flex and Ajax

Flex is a thing of flash world and it's more of a technology. It provides rich set of flash based jazzy components and other broad range of related functionalities. I don't see any existing Flex user dumping Flex for AJAX.
Probably AJAX can complement Flash thuogh I am not sure how it would or whether it's feasable at all or not.

[ November 15, 2005: Message edited by: Varun Khanna ]

[ November 15, 2005: Message edited by: Vicky Pandya ]
reubin haz
Ranch Hand

Joined: May 12, 2005
Posts: 287
Originally posted by Vicky Pandya:
Why wouldn't one compare these technologies when he/she is wanting to develop RIA?


I guess to quote Arthor Nate Schutta's posting in another thread "Using the XMLHttpRequest object, we are able to send a request off to the server without interrupting the user. Rather than do a full page repaint, we can get a small chunk of data back and then update the DOM. To me, it's the A in Ajax .... " would answer your question.

-- For Flex, although its Rich Internet Applicatoin, it does not reduce user's operations on the GUI; it does not reduce traffic between server and client machines.

That makes the difference.


SCJA, SCJP5.0, SCBCD, SCWCD
Varun Khanna
Ranch Hand

Joined: May 30, 2002
Posts: 1400
I developed a product using Flex as a UI, and the extent to which I used Flex (flash-y Tabs, Tree, custom animated components and other functionalities) I really don't see AJAX replacing Flex on that front, not atleast as of now.
Moreover, I am not sure whether we should call AJAX a technology at all
It's just Asynch. Javascript and XML. I will prefer incorporating this with Flex, NOT replacing it.
Varun Khanna
Ranch Hand

Joined: May 30, 2002
Posts: 1400
seems Macromedia has already started working on Flex / Ajax integration

Link
Vicky Pandya
Ranch Hand

Joined: Dec 16, 2004
Posts: 148
Agreed on following. However you can still develop drag n drop and rich UI using AJAX.

Originally posted by Varun Khanna:
I developed a product using Flex as a UI, and the extent to which I used Flex (flash-y Tabs, Tree, custom animated components and other functionalities) I really don't see AJAX replacing Flex on that front, not atleast as of now.

In case of Flex, one needs to have Flash Player installed on client machine, AJAX doesn't require any plug-ins. Flex demands developers to learn new language (Action script) .mxml etc. Learning curve is minimal while using AJAX. Also, think about Flex's substantial licensing cost.
[ November 16, 2005: Message edited by: Vicky Pandya ]
Vicky Pandya
Ranch Hand

Joined: Dec 16, 2004
Posts: 148
You can achieve partial refresh using Flex as well.
Originally posted by reubin yi:


I guess to quote Arthor Nate Schutta's posting in another thread "Using the XMLHttpRequest object, we are able to send a request off to the server without interrupting the user. Rather than do a full page repaint, we can get a small chunk of data back and then update the DOM. To me, it's the A in Ajax .... " would answer your question.

-- For Flex, although its Rich Internet Applicatoin, it does not reduce user's operations on the GUI; it does not reduce traffic between server and client machines.

That makes the difference.
Vicky Pandya
Ranch Hand

Joined: Dec 16, 2004
Posts: 148
thanks for the link. let's keep this discussion alive.

Originally posted by Varun Khanna:
seems Macromedia has already started working on Flex / Ajax integration

Link
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Ajax versus Macromedia Flex