The lesson of a famous big enterprise--using the AJAX framework with caution

Source: Internet
Author: User
Tags end error handling net
Ajax|ajax frame from the beginning to now, the Ajax wind rehearsal more intense, especially in the country, mostly a cheering voice. At present, it seems that many people are engaged in the framework based on Ajax, some foreign countries have been published. For this has been the existence of technology, Google, Microsoft, the hype, we seem to be a bit too hot. It seems that now we programmers are really groupies!

Is it really so good that Ajax is worth elevating to the height of the frame so that the system UI revolves around it? Simply from Ajax itself, the most important thing is to solve the problem on the Web page without refreshing data, coupled with the reduction of data transmission, the work of data analysis to the client, it can solve many traditional problems, very convenient to achieve some dynamic effects. However, in order to build a framework around Ajax, the majority of the UI end of the display of the content, I personally think it is a defect. Now many people on the website that Ajax a lot of mature, can achieve a lot of good results, but the problem is that Ajax technology itself mature, but the AJAX framework is very immature.

The author has been involved in a foreign well-known large companies of a product development, this system has been doing a few years ago, the system's UI is based on Ajax, the application of Ajax is the culmination (of course, at that time there is certainly no Ajax this term), The operational line of its interface is almost comparable to that of a desktop system. The system has a powerful AJAX framework, the only relevant base JS file is dozens of, the entire UI based on JavaScript event-driven, data by XMLHTTP. The whole package looks really good, and maybe that's what a lot of people are trying to achieve. But what is the actual situation? The effect is achieved, the program development and testing, maintenance efficiency is greatly reduced. Development will not say, the upfront investment, the system complexity is soaring, the program can only use IE access. When the test here Ajax JavaScript bugs flying, there debugging this error is extremely inconvenient, there is no good JS debugger, not to see the actual output of the HTML code. Maintenance that's bad, add a new function, JSP files, tags, JS, background class are all over again. Perhaps it is these difficult to overcome the problem, I saw in the recent development of supporting software, the basic no Ajax.

The attempt and experience of a large company may give us some enlightenment. In the end, all technology is pros and cons, and Ajax is the same. I personally think that Ajax is the most suitable for the Google Map of the online mapping system, the display scheme is relatively simple, but also very need to obtain data without refreshing. For those business more, show the style of a very diverse business system, must not mind a hot, really want to use what AJAX framework, the end of only for a little meaningless effect of smashing their own feet.

Finally, the Ajax is a good thing, in the project with it to achieve some auxiliary effect (the most traditional, such as user input data real-time verification, give relevant tips) that is fast and magical, but overuse is easy to let their system into trouble, must be prudent! In addition to the current published so-called AJAX frameworks are most of the implementation of a form or a part of the page without refreshing the number, there is no web framework, there is no need to hold too much hope. Recently down a few open source Ajax things looked at, feel for the general developers, Ajaxtags (http://sourceforge.net/projects/ajaxtags/) is a good thing, easy to understand, Can be modeled on its label to do some of their own implementation, it is worth a look.
Original address: http://www.blogjava.net/weidy/archive/2005/11/25/21451.html
    • Ajax: A new way to build Web apps
    • Discussion on the error handling mechanism of AJAX (2)
    • Discussion on the error handling mechanism of AJAX (1)
    • First experience. NET Ajax Brushless New technology
    • A brief analysis of Ajax development Technology in Rails system (4)


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.