Ajax technology and ERP
The current mainstream ERP approach is a B / S architecture, the practical application of ERP, there are also many traditional Web development methods can not solve problems. While the Ajax technology to be further refined and mature, but in the ERP study of the development and introduction of appropriate ideas and Ajax development techniques, to solve the problem difficult to cope with traditional methods, no doubt developers and customers are beneficial.
Here's Ajax technology in the ERP application scenario may be a simple discussion.
(1) Data validation
Carrying out a form to complete and update the content, and sometimes the data needs to be updated to the database to look at data validation. Traditional data validation are usually two ways: one is a direct fill in and submit the form, this approach needs to be submitted on this page to the server-side validation, the whole process is not only a long time but also creates an unnecessary burden on the server; Article two kinds of approach is improved verification process, the user can verify by clicking the appropriate button to open a new window, view the validation results, but this needed to open a new browser window or dialog box, but also require special preparation of authentication page, compare the system cost resources. The use of Ajax techniques, you can send authentication requests from the XML Http Request objects, according to the HTTP response to return to judge the success of authentication, the whole process does not require a new pop-up window does not need to submit the entire page to the server, fast and without increasing the burden on the server.
(2) Tree structure
Classification tree or a tree-like structure used in the ERP system was very extensive. Application of Ajax technology can improve the classification tree of the implementation mechanism. In the initial page, only to obtain first-level sub-classification of data and display; When the user points to open a classified section point, the page request to the server through Ajax current classification belongs to two sub-classification of all data; if another request has been presented by two categories of a node, the request to the server again, belongs to the current classification of all three sub-categories of data, and so on. Page based on the user's actions to the server requests the data it needs, so that there will be no data redundancy, reducing the total amount of data downloaded. At the same time, update pages do not need to reload all the content, only updates need to update that part of the contents can be compared to previous background processing, and heavy way, greatly reducing the waiting time for users.
(3) Data automatically updated
Before the advent of Ajax, the user in order to understand if the corresponding content must constantly refresh the page to see if there are new changes in the content, or refresh the page itself to achieve the timing function. Is likely to happen; content of the website for some time without any change, but users do not know, still constantly refresh the page; or the user has lost patience and gave up refresh the page, but which are possible in this new The message appears, so missed the first time, the opportunity to get the message.
Ajax applications can improve this situation, the page loads after the engine through Ajax poll timing in the background, send a request to the server to see if the latest news. If there will be new data (but not all data) downloaded and the page updates dynamically, through a certain way and notify the user (to achieve such a function is JavaScript's strengths). That would avoid the user continue to refresh the page manually for any inconvenience, but also refresh the page will not repeat the waste of resources.
Should be noted that, although Ajax has received wide support, but the actual development, or pay attention to cross-browser problems, mainly in the JavaScript programming section. But many popular frameworks encapsulates some of these details, you can solve this problem. On the other hand, if the user is still relatively large-scale use of early versions of the browser, Ajax technology may not be able to work, put in place when it is significant.
Ajax for Web application development provides new opportunities, but also for ERP systems is presented new demands. When due to Ajax technology allows users to feel the new experience when the winner will not be just a user. |