Ria solution-flash-based flex
Introduction to flex
Macromedia is recognized as a leader in the emerging Ria market. Today, 98% of browsers use Macromedia Flash client software, so almost everyone can use flash-based Ria. Macromedia Flex is a new server product of Macromedia. It enables enterprise application developers to fully access the functions of RIA. Flex has a standard-based architecture that complements the tools, methods, and design patterns of current enterprise developers.
The main difference between flex applications and traditional HTML applications is that flex application processing is most suitable for running on the client, such as field verification, data format, classification, filtering, tooltip, video merging, behavior, and effect. Flex enables developers to better deliver applications that allow users to quickly respond, smoothly transition between different States and displays, and provide continuous workflows without interruption.
Flex Application Framework
As shown in, the flex application framework consists of mxml, actionscript 2.0, and flex class libraries. Developers use mxml and ActionScript 2.0 to write flex applications. Use mxml to define the user interface elements of the application, and use ActionScript 2.0 to define the customer logic and program control. The flex class library includes flex components, managers, and behaviors. With the development model based on flex components, developers can add pre-built components to programs, create new components, or add pre-built components to composite components.
Here we will focus on mxml. Like HTML, It is a markup language that describes user interfaces that reflect content and functions. Unlike HTML, mxml can provide declarative abstraction for the presentation layer logic to bind with user interfaces and server data. Mxml can completely separate the representation from the business logic to maximize developers' productivity and reuse of applications.
Limitations of flex
Currently, Macromedia has released the flex 1.0 Updater, but the IDE code "brady" has not yet been officially launched. Beta 3 testing is still underway. Aside from IDE, I believe that flex is not yet mature and is not conducive to use in actual projects.
For example, zipcodevalidator In Flex only provides zip code rules in the United States and Canada. It cannot be customized without any other options. It seems that only validator can be defined by yourself. But what is the difference between this and writing regular expressions in JS (the amount of code is similar to that in JS )? The user needs zipcodevalidator, which is international, to improve work efficiency.
Summary in one sentence
The current flex version is 1.0, which is not perfect in many places, so you have to customize it to fulfill specific requirements. We are looking forward to the release of Brady and flex later versions!
Ria solution-js-based bindows
Bindows Introduction
"Bindows has played JavaScript to the ninth layer !" -- The netizen commented on bindows in this way.
Running bindows
Indeed, Erik and other compiling frameworks have brought JavaScript OOP and IE6-based DHTML to the extreme! When bindows 0.93 was released, it has fully developed the built-in functions of IE, including filter, XMLHTTP, Web Service, and VML. Javascript is used to display and process the client interface, and XMLHTTP is used to transmit information between the client and the server. The expressiveness of JavaScript on the client is unquestionable. Let's look at the capabilities presented by www.bindows.net and use JavaScript to accomplish almost all the things that Windows applications can do, XMLHTTP has always been used to implement "refreshing" Web pages. It works with JavaScript to transmit data from servers and clients.
Bindows Deficiency
Erik prefers the method of loading all at a time to implement the script library. After using bindows, it will find that it takes a long wait process during the loading period of the window, even the browser process will produce no response. According to v0.93, the script file size is more than 600 KB. In a common web application, we will not use all bindows functions in more cases, this bindows does not follow the "how much to use" principle. In addition, excessive JavaScript code will suddenly increase the CPU usage and cause potential problems.
A large amount of internal use of IE6 technology, without considering non-Microsoft platform browsers, limits the popularity of bindows. VML technology is widely used in charts. In ie5 and ie5.5, The VML engine is not so mature. In many places, the display is not smooth enough and may be limited by bandwidth and hardware, over-looking graphics will eventually cause user crashes. "In terms of graphics, I used VML. I was too paranoid at the beginning. If SVG is used for implementation, it may be much better. That is, during that time, I spent a lot of time on web development." -- Some netizens say this.
Summary in one sentence
From a technical point of view, you can learn a lot from bindows, but it seems that its academic value is greater than its commercial value.
Postscript
It's time to use RIA to transform the existing B/S model. First of all, we are constrained by the imperfection of the network and hardware environments. I think no user is willing to spend a lot of time waiting for the "fancy" page to be seen, don't want to wait for something to overload your machine, but it's just a good experience? The market decides everything, not any new technology! Second, the current Ria solution is not mature, and I am optimistic about flex. Unfortunately, it takes a long wait for results. Of course, there are still many Ria solutions. I feel that Ms's smart client + Web Service is not too small.
This article is called "welcome to the era of RIA". I am full of the beautiful hopes of RIA. I look forward to one day performing a virtual reality interactive experience in the environment of Ria!
Thank you! Ria ChinaWithout them, I don't think I have such knowledge of RIA today !!!
References
Flex White Paper
IDC--RIA White Paper
Return to C/S? Bindows
Welcome to the regression of Client/Server mode
Flex: a pioneer in RIA, an indestructible silver bullet?
Return of rich client
(Please note! This document shall indicate the original author Rosen Jiang and its source:Http://blog.csdn.net/rosen)