Jquery smart UI introduction (IV)-powerful applicability and problems [project usability overview]

Source: Internet
Author: User

Thank you for your support for the smart UI. We apologize for the inconvenience caused by the version of the code downloaded over the past two days. Due to the environment problems, there are always more or less problems. Wait for the time to complete the download of vs2005-vs2010 versions.

Many friends are very interested in smart UI and many have raised many accurate questions. Thank you for your attention. I was going to release the last "Architecture explanation" of the "smart UI introduction series" today, but I decided to add one, briefly describe the applicability of smart UI in development and some problems.

Smart UI is an independent and complete development framework that can complete project development independently. However, smart UI can also be embedded into any web framework,You can use smart UI in the original framework.. It can be used flexibly. The key is to see how it can be used flexibly in projects.

  • Embedded Development Framework

Because all the smart UI uses HTM + JS, this feature allows it to be combined with any other web development framework and solution, both aspx, PHP, and MVC can be used with the smart UI. Therefore, the use of smart UI does not affect the storage of the original development mode and architecture.Independent function modulesOrUsed with various Server Pages (aspx, PHP).

Developed based on jquery, smart UI is very small and efficient, and cannot be found after all content is compressed.110 K. In addition,Provides a very detailed foreground structure to help the architecture better plan the UI Layer..

In terms of data interaction, smart UI provides a data interface with a simple structure. Whether it is using any data layer framework, you only need to assign values to the data objects according to the type defined by smart UI. In addition, the JSON data returned from the front-end is the same. during conversion, the data entity or other objects (for example, entity in Orm, datatable In ADO or dictionary ), therefore, it is compatible with various data frameworks (such as nhib.pdf and EF). [at the beginning, the smart UI uses EF as the data backend, but EF has poor scalability and performance, changed to nbearlite ].

  • Jquery plugin

On the other hand, the smart UI can also be seen as a set of jquery plug-ins. The smart UI provides a set of jquery components for daily development.Select Control, date, list, tree, verification, message, menu, and uploadAll of them are centrally planned, interfaces, and configurations. In addition, the introduction of other JQ plug-ins also provides uniform egress and specifications, which facilitates the update and replacement of various plug-ins.

  • JS public class library

The smart UI also provides a series of public libraries that support web development.Propertype Extension,Common Methods of JS, data type verification, conversion, formatting, etc., To the jquery extended page operation,Value and value assignment, unified Ajax exitAnd so on. It is very helpful for project development.

  

The following is a brief description of the current smart UI problems:

  • Search Engine

  Yesterday, many friends raised the question about the search engine. Currently, the smart UI uses ajax to read content pages. This situation does exist. In fact, the initial intention of the smart UI is also for enterprise project development. Therefore, the currently released smart UI version 1.0 is better for enterprise development. The question of searching also needs to be determined from different perspectives.

However, this problem will be solved in the future, and there are some ideas at present. [This problem will be gradually improved later, and a version will be released separately, but it is still dominated by the existing framework reinforcement]

First, change the Ajax load page to direct jump;

Second, read the content page in the background and generate a pure static page.

  

  • Multiple Languages

Currently, smart UI fully supports multiple languages in controls and constant classes (by loading different. but the static text on the page is not yet well supported. Currently, the smart UI can implement the solution of re-uploading an HTM content page, convert to the corresponding language and load the page JS library in the master. However, this method is not very convenient.

In addition, there are two solutions to be implemented in the future:

1. Define rules and use the JS language library to dynamically fill in static page text.

2. The other is to expand in the current solution. First, configure all the content, and then use the tool to generate the language versions of the Content Page Template.

  • Development Mode

This problem is currently the biggest:

First, the smart UI uses the frontend-only development UI, which is different from the traditional development method, so that developers need a certain period of adaptation and the required front-end language capabilities.

Second, although the development tool provides JS intelligent sensing and the complete solution is also available in the smart UI, it is not perfect and cannot achieve the effect of vs background development.

Third, debugging, Vs and various browsers support script debugging, but most developers do not have access to this part. In addition, in the smart UI, the Code on the Content Page is hidden (secure but inconvenient for debugging) and cannot be captured using a debugging tool. You must use the JS library code and reference it on the master.

Fourth, it is not a problem. Smart UI is semi-configuration development. Therefore, you must have a good plan and design, and define various data interfaces and pages, otherwise, repeated configurations affect the development efficiency. During coding, the names of various foreground objects must be standardized. Otherwise, the call error object may occur during static load content pages.

  

Of course, there are many other problems that need to be improved step by step. However, at the same time, a framework cannot satisfy all its needs. It mainly focuses on improving the core content. I hope you will give more valuable comments.

In addition, I would like to thank all of you for your support and comments from Aries.

Note: All content is original. For details, refer to the source by jquery smart UI-Roy Zhang.

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.