A kind of implementation method of dynamic list, client and server
Technical field
The present invention relates to Internet technical field, particularly relate to a kind of implementation method of dynamic list, client and server.
Background technology
List (Form) primary responsibility data acquisition function in webpage, a list has three elements, one is form tags, contain the CGI (CommonGatewayInterface that processing list forms data is used, CGI (Common gateway interface)) program URL (Uniform/UniversalResourceLocator, URL(uniform resource locator)) and be submitted to the method for server; Two is form fields, and contain text box, password box, Hidden field, multiline text frame, check box, radio box, drop-down list box and files passe frame etc., frame is realized by steering order everywhere, and steering order comprises the controlling value controlling name and correspondence; Three is list button, comprises submit button, and the data for gathering are sent to the CGI scripting of server; Reset button, for cancelling input; Etc..Traditional list is generally static list, its implementation is: server based on data database table structure generation forms pages is distributed to client and stores, when client receives the acquisition request of the forms pages that user sends, then show the local forms pages stored, gather user data by forms pages and be committed to server and process.The data of traditional list and represent that form normally customizes, if need the data of amendment list and represent form, the exploitation of the list of specialty and designer is then needed to re-start design and development, and again the source code of publishing table single-page to client, restart client could realize, this process is not only consuming time, and at substantial human and material resources, reduce the efficiency of list exploitation.
Summary of the invention
The present invention provides the entrance of customized information in micro-letter public number by custom menu, enter into business public sentiment customized information system, the essential information of micro-credit household is obtained by micro-letter webpage licensing scheme of micro-letter public number, the essential information of micro-credit household is registered to business public feelings information custom-built system, by business public feelings information custom-built system to subscriber authorisation, micro-credit household just can check the customized information of oneself without the need to login.
The invention provides a kind of implementation method of dynamic list, client and server, the data of dynamic allocation list single-page and represent form, promote the efficiency of list exploitation.
The invention discloses a kind of implementation method of dynamic list, it is characterized in that, comprising:
Server settings preserves some business demand elements;
Server settings preserves some form templats and multidate information;
Business demand element and form templat and multidate information are bound by server, generate unique identification;
Server settings preserves initial table single-page;
When client receives the acquisition request of user to forms pages, obtain initial table single-page from server;
Client receives user's request element in initial table single-page, sends to server;
Server carries out retrieval according to user's request element and business demand element and mates, and obtains form templat and the multidate information of user's request, and sends to client;
Described client receives the form templat and multidate information that match, dynamically updates, form the second forms pages to described initial table single-page;
Described second forms pages of described client display, to respond described acquisition request;
Described client user by described second forms pages editor submit to after, formative dynamics list;
Dynamic list and multidate information are sent to server by described client;
User's request element, dynamic list and multidate information are preserved by described server, and cluster.
Preferably, described multidate information be in described form templat can edit file.
Preferably, described multidate information be in initial table single-page can edit file.
Preferably, described client dynamically updates described initial table single-page, forms the second forms pages, comprising: described client is modified to the described initial table single-page that described client stores according to calling call back function, forms the second forms pages.
The invention also discloses a kind of client, it is characterized in that, comprising:
Acquisition module, for obtaining initial table single-page, also for obtaining the requirement elements of user from server when the acquisition request receiving forms pages;
Update module, for dynamically updating described initial table single-page thus forming the second forms pages;
Forms pages display module, for showing initial table single-page, the second forms pages;
Editor module, for forming user's request element to initial table single-page editor, also at the second forms pages editor formative dynamics list;
Respond module, for showing described second forms pages, to respond described acquisition request.
Transport module, for receiving initial table single-page from server, the form templat matched and multidate information, also for sending user to server to the acquisition request of forms pages, dynamic list and multidate information;
Preserve module, for preserving the initial table single-page that server is issued, also for preserving user's request element, the second forms pages of formation, dynamic list and multidate information.
The invention also discloses a kind of server, it is characterized in that, comprising:
Setting module, for setting some business demand elements, some form templats and multidate information, also for generating initial table single-page;
Assignment module, for business demand element and form templat and multidate information being bound, generates unique identification;
Preserve module, for preserving some business demand elements, some form templats and multidate information, user's request element, dynamic list and multidate information;
Retrieval matching module, mates for carrying out retrieval according to user's request element and business demand element, obtains form templat and the multidate information of user's request;
Transport module, sends initial table single-page to client, the form templat matched and multidate information, for receiving user from client to the acquisition request of forms pages, dynamic list and multidate information;
Cluster module, for carrying out cluster by list masterplate and multidate information, dynamic list and multidate information.
Beneficial effect of the present invention: the data of dynamic allocation list single-page and represent form, promotes the efficiency of list exploitation.
Accompanying drawing explanation
Accompanying drawing described herein is used to provide a further understanding of the present invention, and form a application's part, schematic description and description of the present invention, for explaining the present invention, does not form inappropriate limitation of the present invention, in the accompanying drawings:
Fig. 1: be the process flow diagram of the implementation method of a kind of dynamic list of the present invention;
Fig. 2: be the structural drawing of a kind of client of the present invention;
Fig. 3: be the structural drawing of a kind of server of the present invention.
Embodiment
Below in conjunction with drawings and Examples, the present invention is further described.
As shown in Figure 1, the invention discloses a kind of implementation method of dynamic list, it is characterized in that, comprising:
Server settings preserves some business demand elements;
Server settings preserves some form templats and multidate information;
Business demand element and form templat and multidate information are bound by server, generate unique identification;
Server settings preserves initial table single-page;
When client receives the acquisition request of user to forms pages, obtain initial table single-page from server;
Client receives user's request element in initial table single-page, sends to server;
Server carries out retrieval according to user's request element and business demand element and mates, and obtains form templat and the multidate information of user's request, and sends to client;
Described client receives the form templat and multidate information that match, dynamically updates, form the second forms pages to described initial table single-page;
Described second forms pages of described client display, to respond described acquisition request;
Described client user by described second forms pages editor submit to after, formative dynamics list;
Dynamic list and multidate information are sent to server by described client;
User's request element, dynamic list and multidate information are preserved by described server, and cluster.
Preferably, described multidate information be in described form templat can edit file.
Preferably, described multidate information be in initial table single-page can edit file.
Preferably, described client dynamically updates described initial table single-page, forms the second forms pages, comprising: described client is modified to the described initial table single-page that described client stores according to calling call back function, forms the second forms pages.
As shown in Figure 2, the invention also discloses a kind of client, it is characterized in that, comprising:
Acquisition module, for obtaining initial table single-page, also for obtaining the requirement elements of user from server when the acquisition request receiving forms pages;
Update module, for dynamically updating described initial table single-page thus forming the second forms pages;
Forms pages display module, for showing initial table single-page, the second forms pages;
Editor module, for forming user's request element to initial table single-page editor, also at the second forms pages editor formative dynamics list;
Respond module, for showing described second forms pages, to respond described acquisition request.
Transport module, for receiving initial table single-page from server, the form templat matched and multidate information, also for sending user to server to the acquisition request of forms pages, dynamic list and multidate information;
Preserve module, for preserving the initial table single-page that server is issued, also for preserving user's request element, the second forms pages of formation, dynamic list and multidate information.
As shown in Figure 3, the invention also discloses a kind of server, it is characterized in that, comprising:
Setting module, for setting some business demand elements, some form templats and multidate information, also for generating initial table single-page;
Assignment module, for business demand element and form templat and multidate information being bound, generates unique identification;
Preserve module, for preserving some business demand elements, some form templats and multidate information, user's request element, dynamic list and multidate information;
Retrieval matching module, mates for carrying out retrieval according to user's request element and business demand element, obtains form templat and the multidate information of user's request;
Transport module, sends initial table single-page to client, the form templat matched and multidate information, for receiving user from client to the acquisition request of forms pages, dynamic list and multidate information;
Cluster module, for carrying out cluster by list masterplate and multidate information, dynamic list and multidate information.
The above; be only the present invention's preferably embodiment, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; the change that can expect easily or replacement, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection domain of claim.