CN106294760B - Form processing method, server and client - Google Patents
Form processing method, server and client Download PDFInfo
- Publication number
- CN106294760B CN106294760B CN201610656819.2A CN201610656819A CN106294760B CN 106294760 B CN106294760 B CN 106294760B CN 201610656819 A CN201610656819 A CN 201610656819A CN 106294760 B CN106294760 B CN 106294760B
- Authority
- CN
- China
- Prior art keywords
- codes
- server
- control
- client
- code
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/958—Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/166—Editing, e.g. inserting or deleting
- G06F40/177—Editing, e.g. inserting or deleting of tables; using ruled lines
- G06F40/18—Editing, e.g. inserting or deleting of tables; using ruled lines of spreadsheets
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- Data Mining & Analysis (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Stored Programmes (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a form processing method, a server and a client, which are used for solving the technical problem that a server cannot sense various codes of standard forms in the prior art. The method comprises the following steps: the server acquires codes of the standard form; the server classifies the codes of the standard form; and the server respectively stores the codes of different classes of the standard form.
Description
Technical Field
The invention relates to the field of internet, in particular to a form processing method, a server and a client.
Background
An online form is a window where a website and visitor interact. The standard form is one of the online forms, and the contents of the form layout, characters and the like are closer to various forms filled in the actual life compared with the non-standard form, such as an application form, a report form and the like. The standard form may be used to send data in a web page. For example, based on the standard form, the user can input a user name and a password on a webpage to realize the registration or login function.
The code of a standard form has three basic components: control code, non-control code, and JavaScript script. The control refers to elements such as a text box, a password box, a hidden field, a check box and a button which are included in the webpage; the JavaScript script is the code for running the control; the non-control refers to elements such as tables, characters and the like in the webpage.
In the formula form, the control source codes are regular, and data can be extracted according to a certain format specification. However, the source codes of the table layout and the characters are irregular, and data cannot be extracted, so that the source codes of the non-control can only be directly stored. In the prior art, in order to store all information of controls and non-controls in a unified manner, the source codes of the controls and the non-controls are usually direct, that is, the entire system form is stored in a webpage source code format. The webpage source code comprises code of a control, JavaScript script and code of a non-control. And when the client requests the form from the server, the client directly acquires the webpage source code. The client can obtain the code of the control, the code of the non-control and the JavaScript script of the system form based on the webpage source code. Further, the client operates respectively for various types of codes, for example, drawing pages, rendering, and running JavaScript scripts.
Because the existing server stores various codes of the standard form as a whole and does not sense different code servers, the server needs to store all the codes of the standard form after being changed again under the condition that the codes of the standard form are changed at all, and the load of the memory and the bandwidth of the server is increased. Moreover, the processing of various codes of the standard form can only be performed by the client, and the processing efficiency is low.
From the above, the technical problem that the server cannot sense various codes of the standard form exists in the prior art.
Disclosure of Invention
The invention aims to provide a form processing method, a server and a client, which are used for solving the technical problem that the server cannot sense various codes of standard forms.
In order to achieve the above object, the present invention provides a form processing method, including:
the server acquires codes of the standard form;
the server classifies the codes of the standard form;
and the server respectively stores the codes of different classes of the standard form.
Optionally, the method further comprises:
the server modifies the first type of codes; the first type of codes are any one of codes of the standard form;
and the server stores the modified first-type codes again.
Optionally, the code of the system form includes control code, and the method further includes:
the server receives a form request message sent by a client; the form request message is used for acquiring the code of the standard form;
the server acquires the control code and adjusts the control code based on control authority information;
and the server sends a response message for responding to the form request message to the client, wherein the response message comprises the adjusted control code.
Optionally, the method further comprises:
the server receives a form request message sent by a client; the form request message is used for acquiring the code of the standard form;
and the server sends a response message for responding to the form request message to the client, wherein the response message comprises various codes of the standard form and indication information for indicating the processing sequence of the various codes.
Optionally, the types of codes of the standard form include at least one of the following codes: control code, non-control code, JavaScript script.
Optionally, the respectively storing, by the server, the different types of codes of the standard form includes:
the server stores the control code and the JavaScript script based on a universal transmission format.
The invention also provides another form processing method, which comprises the following steps:
a client sends a form request message to a server, wherein the form request message is used for acquiring codes of a standard form in the server;
the client receives a response message sent by the server, wherein the response message comprises various codes of the standard form and indication information used for indicating the processing sequence of the various codes; the server stores various codes of the standard form in a classified manner;
and the client processes various codes of the system form according to the indication information.
Optionally, the various codes of the system form include control codes, non-control codes and JavaScript scripts; the client processes various codes of the standard form according to the indication information, and the processing comprises the following steps:
the client draws a form page by using the non-control code according to the indication information;
after the form page is drawn, rendering a control according to the control code;
and running the JavaScript script after the control rendering is finished.
Optionally, the response message includes a control code adjusted by the server according to the control authority information;
after the form page is drawn, the rendering of the control according to the control code comprises:
and the client side carries out control rendering according to the adjusted control codes.
The present invention also provides a server comprising:
the acquisition unit is used for acquiring codes of the standard form;
the classification unit is used for classifying the codes of the standard form;
and the storage unit is used for respectively storing different types of codes of the standard form.
Optionally, the method further comprises:
the modifying unit is used for modifying the first type codes; the first type of codes are any one of codes of the standard form;
the storage unit is further used for storing the modified first-class codes again.
Optionally, the code of the system form includes a control code, and the client further includes:
the receiving unit is used for receiving a form request message sent by a client; the form request message is used for acquiring the code of the standard form;
the adjusting unit is used for acquiring the control code and adjusting the control code based on the control authority information;
and the sending unit is used for sending a response message for responding to the form request message to the client, wherein the response message comprises the adjusted control code.
Optionally, the method further comprises:
the receiving unit is used for receiving a form request message sent by a client; the form request message is used for acquiring the code of the standard form;
and the sending unit is used for sending a response message for responding to the form request message to the client, wherein the response message comprises various codes of the system form and indication information for indicating the processing sequence of the various codes.
Optionally, the various codes of the system form include control codes and JavaScript scripts; the storage unit is specifically configured to: and storing the control code and the JavaScript script based on the common transmission format.
The present invention also provides a client, including:
a sending unit, configured to send a form request message to a server, where the form request message is used to obtain a code of a system form in the server;
a receiving unit, configured to receive a response message sent by the server, where the response message includes various codes of the system form and indication information used for indicating a processing sequence of the various codes; the server stores various codes of the standard form in a classified manner;
and the processing unit is used for processing various codes of the standard form according to the indication information.
Optionally, the various codes of the system form include control codes, non-control codes and JavaScript scripts; the processing unit is specifically configured to:
drawing a form page by using the non-control code according to the indication information;
after the form page is drawn, rendering a control according to the control code;
and running the JavaScript script after the control rendering is finished.
Optionally, the response message includes a control code adjusted by the server according to the control authority information; the processing unit is specifically configured to:
and rendering the control according to the adjusted control code.
According to the technical scheme, after the server acquires the codes of the standard form, the codes are classified and stored, and the technical problem that the server cannot sense various codes of the standard form is solved. Furthermore, the server can restore the changed codes under the condition of changing a certain code of the standard form, and does not need to restore all the codes of the standard form, thereby reducing the load of the memory and the bandwidth of the server. Moreover, the server can sense various codes of the standard form, so that partial processing aiming at different codes can be performed by the server in advance, and the processing efficiency of the client after acquiring the codes of the standard form is further improved.
Additional features and advantages of the invention will be set forth in the detailed description which follows.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention and not to limit the invention. In the drawings:
FIG. 1 is a prior art system architecture diagram;
fig. 2 is a schematic flowchart of a form processing method according to an embodiment of the present invention;
FIG. 3 is a flow chart of another form processing method according to an embodiment of the present invention;
FIG. 4 is a flowchart illustrating a further form processing method according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a server according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a client according to an embodiment of the present invention.
Detailed Description
The following detailed description of embodiments of the invention refers to the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating the present invention, are given by way of illustration and explanation only, not limitation.
In order to make it easier for those skilled in the art to understand the improvement of the embodiment of the present invention on the prior art, a brief description will be first given of the related technical solutions in the prior art.
As shown in fig. 1, the client is connected to the server through the internet, and the client may be a computer, a smart phone, a tablet computer, or other electronic device equipped with a browser. The server may be a Web server, such as a Web server, or a CDN (Content Delivery Network) server, and the like, and is configured to provide the document to the browser.
The server stores the website source code of the standard form. The process of displaying the standard form in the browser by the client mainly comprises the following steps:
loading: performing domain name resolution according to a requested URL (Uniform Resource Locator), initiating a form request message to the server, and receiving a web page source code of a system form returned by the server. The web page source code may include an HTML (HyperText Markup Language) code, a JavaScript script, and a CSS (Cascading Style Sheets) source code. Wherein the HTML code includes code for a control of a system form.
And (3) analysis: and parsing the syntax of the acquired webpage source code, and establishing a corresponding internal data structure, such as a DOM (Document Object Model) tree of HTML, an Object attribute table of JavaScript, a style rule of CSS, and the like.
Rendering: and constructing a rendering tree, performing position calculation, style calculation and the like on each element, and rendering the page according to the rendering tree, namely a process of displaying each element on the webpage, which is also called page drawing.
In the prior art, since the web server stores all codes of the standard form as a whole, all the codes of the modified standard form all need to be stored again when the web server modifies any part of the codes, which causes an overload of a server memory and a bandwidth. Moreover, when the control of the system form needs to be displayed or hidden according to the authority, the web server does not sense the control code of the system form, and only after the web source code of the system form is loaded by the client, the authority information of the control can be acquired from the server, so that the client may render the control of the system form first and then hide the control according to the authority information, which may cause the control to flicker. In addition, the client is uncontrollable in the loading sequence of the JavaScript script and the DOM element and cannot load the DOM element while running the JavaScript script, so that the client can switch and execute the DOM element and the JavaScript script for multiple times, the webpage rendering efficiency is reduced, and the abnormity is easy to occur.
As can be seen from the above description, imperceptibility of the server to various types of codes of the standard form may cause problems of overload of a server memory and a broadband, flickering of a control, and low rendering efficiency of a browser. In order to solve the above technical problem, an embodiment of the present invention provides a form processing method, as shown in fig. 2, the method includes:
s201, the server obtains codes of the system form.
Specifically, the code of the standard form is the code that is drawn by a developer in a form designer, and then transmitted to a server when drawing is completed and saving is performed.
It is worth noting that there are many elements that a system form can include. The embodiment of the invention refers to elements used for interacting with a user in the standard form, such as text boxes, password boxes, check boxes and the like, as controls, and refers to elements in other standard forms, such as tables, characters, pictures and the like, as non-controls. The JavaScript script is the code in the system form for running the control.
In this way, in step S201, the codes of the system form acquired by the server include codes of the control, codes of the non-control, and codes of the JavaScript script. When a programmer writes codes of a system form, codes of different types of elements of the system form can adopt different formats. For example, code for controls and non-controls is written all in HTML format; or writing codes of the control and the JavaScript by adopting a general format, wherein the general format comprises a JSON (JavaScript Object Notation) format and an XML format, and writing codes of the non-control by adopting HTML or CCS.
S202, the server classifies the codes of the system form.
Specifically, the server may classify the codes of the standard form by using different methods according to different code writing methods.
In a possible implementation manner of the embodiment of the present invention, the codes of the system form acquired by the server in step S201 may include codes of a control written in a JSON format, codes of a JavaScript script written in XML, and codes of a non-control written in HTML. In this case, the server may classify according to the format of the code in step S202. That is to say, when the server detects the code format of the standard form, it determines that the code in the JSON format is the code of the control, the code in the XML format is the code of the JavaScript script, and the code in the HTML format is the code of the non-control.
It is worth mentioning that the redundancy of the code written in the JSON format or the XML format is smaller than that of the code written in the XML format. That is to say, compared with the prior art in which codes of standard forms are all written in the HTML format, the implementation method reduces the data size and is beneficial to transmission.
In another possible implementation manner of the embodiment of the present invention, the code of the system watchband acquired by the server in step S201 may include a control code in an HTML format, a non-control code, and a code of a JavaScript script. In this case, the server may detect information such as a tag and an ID of the code to classify the code in step S202. It should be noted that the ID of the code of the control is different from the tag of the non-control code, for example, for a control such as a text box or a password box, the tag is input, and the server can determine that the code is the code of the control when detecting that the tag is the code of the input.
S203, the server stores the codes of different types of the system form respectively.
Illustratively, the server stores the code of the control, the code of the non-control and the JavaScript script code respectively, and each type of code is stored in a different area.
By adopting the technical scheme, after the server acquires the codes of the standard form, the codes are classified and stored, so that the technical problem that the server cannot sense various codes of the standard form is solved. Furthermore, the server can restore the changed codes under the condition of changing a certain code of the standard form, and does not need to restore all the codes of the standard form, thereby reducing the load of the memory and the bandwidth of the server. Moreover, the server can sense various codes of the standard form, so that partial processing aiming at different codes can be performed by the server in advance, and the processing efficiency of the client after acquiring the codes of the standard form is further improved.
Specifically, in the embodiment of the present invention, the method may further include: the server modifies the first type of codes; the first type of code is any one type of code in the codes of the standard form; and the server stores the modified first-type codes again.
For example, after modifying the code of the control of the system form, the server may restore the modified code, and the code of the non-control and the code of the JavaScript script remain unchanged. Therefore, compared with the prior art that all the codes of the standard form need to be stored again after any part of the codes are modified, the embodiment of the invention reduces the memory and bandwidth load of the server.
In a case that the code of the system form includes a control code, the method may further include: the server receives a form request message sent by a client; the form request message is used for acquiring the code of the standard form; the server acquires the control code and adjusts the control code based on the control authority information; and the server sends a response message for responding to the form request message to the client, wherein the response message comprises the adjusted control code.
Illustratively, the control of the standard form comprises a text box, a password box and a check box, wherein the permission of the text box is hidden when the text box is initially loaded. In the embodiment of the invention, after receiving the form request message of the client, the server adjusts the stored code of the control according to the stored control permission information, so that the text box in the control is hidden during initial loading. In this way, after receiving the adjusted control code, the client directly hides the text box in the control and does not render the text box, thereby avoiding the situation of control flickering which may occur in the prior art.
In a possible implementation manner of the embodiment of the present invention, the response message sent by the server to the client for responding to the form request message may further include indication information for indicating a processing order of each type of code of the standard form. After receiving the response message, the client can process various codes of the system form according to the processing sequence indicated by the indication information.
Illustratively, the indication information indicates that the client draws a form page by using a non-control code of a standard form; after the form page is drawn, rendering controls according to control codes of the standard forms; and running the JavaScript script after the control rendering is finished. Therefore, due to the fact that the execution sequence of the codes is controllable, the situation that multiple times of switching between control rendering and JavaScript running in the prior art is avoided, and the rendering efficiency of the client browser is improved.
The above is only an example, and the indication information may also indicate that the client runs the JavaScript script first and then renders the control, which is not limited by the present invention.
An embodiment of the present invention further provides another form processing method, where an execution subject of the method is a client, and as shown in fig. 3, the method includes:
s301, the client sends a form request message to the server, and the form request message is used for acquiring codes of the system form in the server.
S302, the client receives a response message sent by the server, wherein the response message comprises various codes of the system form and indication information for indicating the processing sequence of the various codes; the server stores various codes of the standard form in a classified manner.
And S303, the client processes various codes of the system form according to the indication information.
By adopting the method, the execution sequence of the codes is controllable, so that the situation that the control rendering and the JavaScript running are switched for many times in the prior art is avoided, and the rendering efficiency of the client browser is improved.
For example, the various codes of the system form include a control code, a non-control code, and a code of a JavaScript script, and step S303 may include: the client draws a form page by using the non-control code according to the indication information; after the form page is drawn, rendering a control according to the control code; and after the control rendering is finished, running the JavaScript script.
Optionally, the response message further includes a control code adjusted by the server according to the control permission information, so that the client can perform control rendering according to the adjusted control code when performing control rendering. Therefore, the client side can not render the control needing to be hidden, and the phenomenon of flickering caused by rendering the control first and then hiding the control in the prior art is avoided.
By adopting the method, the server stores the system form in a classified manner, so that the server can perform partial preprocessing on different types of codes, and the processing efficiency of the client after receiving the codes of the system form is improved.
In order to make those skilled in the art understand the technical solution provided by the embodiment of the present invention, the following describes in detail a form processing method provided by the embodiment of the present invention through a detailed example, as shown in fig. 4, the method includes:
s401, the client sends a form request message to the server.
The form request message is used for acquiring codes expressed by the system stored by the server.
S402, the server receives the form request message and determines the control code of the system form.
The server stores various codes of the standard form in a classified manner. The various codes of the standard form at least comprise: at least one of control code, non-control code, and JavaScript code.
And S403, the server adjusts the control code according to the control authority information.
For example, for a control that is hidden when the right is initially loaded, the server may adjust the code of the control so that the control is directly hidden in the browser of the client.
S404, the server sends a response message to the client, wherein the response message comprises various codes of the system form and a response message of indication information indicating the processing sequence of the various codes, and the various codes comprise the adjusted control codes.
S405, the client receives the response message and draws a page by using a non-control code according to the indication information.
And S406, rendering by using the adjusted control code after the client finishes drawing the page.
It should be noted that, when the formats of the control code and the JavaScript script are JSON or XML, the client needs to convert the control code and the JavaScript script into HTML format first.
Specifically, for the control with the hidden permission, the client can be directly hidden without rendering, and the situation of control flicker caused by rendering before hiding is avoided.
And S407, after the rendering of the client is finished, running a JavaScript script.
From the above steps S405 to S407, the order in which the client processes various types of codes of the system form is controllable, which avoids the occurrence of multiple switching between control rendering and JavaScript script running in the prior art, and improves the rendering efficiency of the client browser.
For simplicity of description, the above method embodiments are described as a series of acts or combinations, but those skilled in the art will recognize that the invention is not limited by the order of acts or steps described. For example, the client runs a JavaScript script first and then renders the control. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
An embodiment of the present invention further provides a server 50, configured to implement corresponding steps in the foregoing method embodiment, as shown in fig. 5, where the server 50 includes:
an obtaining unit 501, configured to obtain codes of system forms;
a classifying unit 502, configured to classify codes of the standard form;
the storage unit 503 is configured to store different types of codes of the standard form respectively.
By adopting the server 50, after the server acquires the codes of the standard form, the codes are classified and stored, so that the technical problem that the server cannot sense various codes of the standard form is solved, and further, the server can store the changed codes again under the condition that a certain code of the standard form is changed, all codes of the standard form do not need to be stored again, and the load of the memory and the bandwidth of the server is reduced. Moreover, the server can sense various codes of the standard form, so that partial processing aiming at different codes can be performed by the server in advance, and the processing efficiency of the client after acquiring the codes of the standard form is further improved.
The various codes of the system form can include control codes, non-control codes and JavaScript scripts. The storage unit 503 may store the control code and the JavaScript script based on a common transport format, for example, store the control code and the JavaScript script code based on JSON or XML. Compared with the prior art that codes of the standard form are all written in the HTML format, the JSON or XML format code has smaller data volume and is beneficial to transmission.
Optionally, the server 50 further includes a modification unit 504, configured to modify the first type of code; the first type of codes are any one of codes of the standard form; the storage unit 503 is further configured to store the modified first type code again.
For example, after modifying the code of the control of the system form, the server may restore the modified code, and the code of the non-control and the code of the JavaScript script remain unchanged. Therefore, compared with the prior art that all the codes of the standard form need to be stored again after any part of the codes are modified, the embodiment of the invention reduces the memory and bandwidth load of the server.
Optionally, in a case that the code of the system form includes a control code, the server 50 further includes: a receiving unit 505, configured to receive a form request message sent by a client; the form request message is used for acquiring the code of the standard form; an adjusting unit 506, configured to obtain the control code, and adjust the control code based on the control permission information; a sending unit 507, configured to send a response message used for responding to the form request message to the client, where the response message includes the adjusted control code.
Illustratively, the control of the standard form comprises a text box, a password box and a check box, wherein the permission of the text box is hidden when the text box is initially loaded. In the embodiment of the invention, after receiving the form request message of the client, the server adjusts the stored code of the control according to the stored control permission information, so that the text box in the control is hidden during initial loading. In this way, after receiving the adjusted control code, the client directly hides the text box in the control and does not render the text box, thereby avoiding the situation of control flickering which may occur in the prior art.
In this embodiment of the present invention, the receiving unit 505 is further configured to receive a form request message sent by a client; the form request message is used for acquiring the code of the standard form; the sending unit 507 is further configured to send a response message used for responding to the form request message to the client, where the response message includes various types of codes of the system form and indication information used for indicating a processing order of the various types of codes.
Illustratively, the indication information indicates that the client draws a form page by using a non-control code of a standard form; after the form page is drawn, rendering controls according to control codes of the standard forms; and running the JavaScript script after the control rendering is finished. Therefore, due to the fact that the execution sequence of the codes is controllable, the situation that multiple times of switching between control rendering and JavaScript running in the prior art is avoided, and the rendering efficiency of the client browser is improved.
It should be noted that the above division of the unit of the server 50 is only one logical function division, and there may be another division manner in actual implementation. For example, the classification unit 502 and the adjustment unit 506 may be divided into one processing unit. Moreover, the physical implementation of the functional units may also have various implementations, for example, the adjusting unit 506 may specifically be a central processing unit (cpu) or an Application Specific Integrated Circuit (ASIC).
In addition, it should be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of each unit of the server described above may refer to corresponding processes in the foregoing method embodiments, and are not described herein again.
An embodiment of the present invention further provides a client 60, configured to implement corresponding method steps in the foregoing method embodiment, as shown in fig. 6, where the client 60 includes:
a sending unit 601, configured to send a form request message to a server, where the form request message is used to obtain a code of a system form in the server;
a receiving unit 602, configured to receive a response message sent by the server, where the response message includes various codes of the system form and indication information used for indicating a processing sequence of the various codes; the server stores various codes of the standard form in a classified manner;
and the processing unit 603 is configured to process various types of codes of the system form according to the indication information.
Illustratively, the types of codes of the system form include control codes, non-control codes and JavaScript scripts. The processing unit 603 is specifically configured to: drawing a form page by using the non-control code according to the indication information; after the form page is drawn, rendering a control according to the control code; and running the JavaScript script after the control rendering is finished.
Therefore, due to the fact that the execution sequence of the codes is controllable, the situation that multiple times of switching between control rendering and JavaScript running in the prior art is avoided, and the rendering efficiency of the client browser is improved.
The above is only an example, and the indication information may also indicate that the client runs the JavaScript script first and then renders the control, which is not limited by the present invention.
In a possible implementation manner of the embodiment of the present invention, the response message includes a control code that is adjusted by the server according to the control authority information; the processing unit 603 is further configured to: and rendering the control according to the adjusted control code. Therefore, the client side can not render the control needing to be hidden, and the phenomenon of flickering caused by rendering the control first and then hiding the control in the prior art is avoided.
It should be noted that the above division of the unit of the client 60 is only one logical function division, and there may be another division manner in actual implementation. Moreover, there may be a plurality of implementation manners for the physical implementation of the functional units, for example, the processing unit 603 may specifically be a renderer or an FPGA (Field Programmable Gate Array), which is not limited in this respect.
In addition, it should be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of each unit of the client described above may refer to corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute some steps of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing data, such as a usb disk, a removable hard disk, a RAM (Random Access Memory), a magnetic disk, or an optical disk.
The above description is only for the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (10)
1. A form processing method, comprising:
the method comprises the steps that a server obtains codes of system forms, wherein the codes of the system forms comprise control codes, non-control codes and JavaScript codes which are written in different formats respectively;
the server classifies the codes of the standard form;
the server respectively stores the codes of different classes of the standard form;
the server classifies the codes of the standard form, and the classification includes:
and the server classifies the codes of the standard form according to the format of the codes.
2. The method of claim 1, further comprising:
the server modifies the first type of codes; the first type of codes are any one of codes of the standard form;
and the server stores the modified first-type codes again.
3. The method of claim 1, wherein the code for the system form comprises control code, the method further comprising:
the server receives a form request message sent by a client; the form request message is used for acquiring the code of the standard form;
the server acquires the control code and adjusts the control code based on control authority information;
and the server sends a response message for responding to the form request message to the client, wherein the response message comprises the adjusted control code.
4. The method of claim 1, further comprising:
the server receives a form request message sent by a client; the form request message is used for acquiring the code of the standard form;
and the server sends a response message for responding to the form request message to the client, wherein the response message comprises various codes of the standard form and indication information for indicating the processing sequence of the various codes.
5. The method of claim 1, wherein the server storing the codes of the different classes of the canonical form separately comprises:
the server stores the control code and the JavaScript script based on a universal transmission format.
6. A form processing method, comprising:
a client sends a form request message to a server, wherein the form request message is used for acquiring codes of a system form in the server, and the codes of the system form comprise control codes, non-control codes and JavaScript codes which are written in different formats respectively;
the client receives a response message sent by the server, wherein the response message comprises various codes of the standard form and indication information used for indicating the processing sequence of the various codes; the server stores various codes of the standard form in a classified manner, wherein the various codes are obtained by classifying the codes of the standard form by the server according to the format of the codes;
and the client processes various codes of the system form according to the indication information.
7. The method of claim 6, wherein the types of codes of the system form include control codes, non-control codes, and JavaScript scripts; the client processes various codes of the standard form according to the indication information, and the processing comprises the following steps:
the client draws a form page by using the non-control code according to the indication information;
after the form page is drawn, rendering a control according to the control code;
and running the JavaScript script after the control rendering is finished.
8. The method of claim 7, wherein the response message includes a control code adjusted by the server according to the control authority information;
after the client draws the form page, the rendering of the control according to the control code comprises the following steps:
and the client side carries out control rendering according to the adjusted control codes.
9. A server, comprising:
the system comprises an acquisition unit, a processing unit and a display unit, wherein the acquisition unit is used for acquiring codes of system forms, and the codes of the system forms comprise control codes, non-control codes and JavaScript codes which are respectively written in different formats;
the classification unit is used for classifying the codes of the standard form;
the storage unit is used for respectively storing different types of codes of the standard form;
the classification unit is used for classifying the codes of the standard form according to the format of the codes.
10. A client, comprising:
the system comprises a sending unit, a receiving unit and a processing unit, wherein the sending unit is used for sending a form request message to a server, the form request message is used for acquiring codes of system forms in the server, and the codes of the system forms comprise control codes, non-control codes and JavaScript codes which are written in different formats respectively;
a receiving unit, configured to receive a response message sent by the server, where the response message includes various codes of the system form and indication information used for indicating a processing sequence of the various codes; the server stores various codes of the standard form in a classified manner, wherein the various codes are obtained by classifying the codes of the standard form by the server according to the format of the codes;
and the processing unit is used for processing various codes of the standard form according to the indication information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610656819.2A CN106294760B (en) | 2016-08-11 | 2016-08-11 | Form processing method, server and client |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610656819.2A CN106294760B (en) | 2016-08-11 | 2016-08-11 | Form processing method, server and client |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106294760A CN106294760A (en) | 2017-01-04 |
CN106294760B true CN106294760B (en) | 2020-02-14 |
Family
ID=57668806
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610656819.2A Active CN106294760B (en) | 2016-08-11 | 2016-08-11 | Form processing method, server and client |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106294760B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107291950B (en) * | 2017-07-21 | 2020-01-24 | 东软集团股份有限公司 | Form data updating method and device and computer equipment |
CN108037920A (en) * | 2017-11-03 | 2018-05-15 | 福建省华渔教育科技有限公司 | Client customizing form generation method, storage medium |
CN111813282B (en) * | 2020-05-29 | 2021-12-10 | 北京金山云网络技术有限公司 | Data form display method and device |
CN111539011A (en) * | 2020-07-07 | 2020-08-14 | 北京联想协同科技有限公司 | Data hiding method and device and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101241434A (en) * | 2008-03-04 | 2008-08-13 | 浪潮集团山东通用软件有限公司 | Form self-defining method |
CN101937463A (en) * | 2010-09-10 | 2011-01-05 | 西安交通大学 | Method for automatically generating form for workflow model |
CN103077185A (en) * | 2012-12-18 | 2013-05-01 | 厦门雅迅网络股份有限公司 | Object-based user-defined information-expanding method |
CN103631570A (en) * | 2012-08-21 | 2014-03-12 | 镇江雅迅软件有限责任公司 | Form self-definition method |
CN105653273A (en) * | 2015-12-31 | 2016-06-08 | 合肥大多数信息科技有限公司 | Personalized customizing method for client function under B/S architecture |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160026730A1 (en) * | 2014-07-23 | 2016-01-28 | Russell Hasan | Html5-based document format with parts architecture |
-
2016
- 2016-08-11 CN CN201610656819.2A patent/CN106294760B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101241434A (en) * | 2008-03-04 | 2008-08-13 | 浪潮集团山东通用软件有限公司 | Form self-defining method |
CN101937463A (en) * | 2010-09-10 | 2011-01-05 | 西安交通大学 | Method for automatically generating form for workflow model |
CN103631570A (en) * | 2012-08-21 | 2014-03-12 | 镇江雅迅软件有限责任公司 | Form self-definition method |
CN103077185A (en) * | 2012-12-18 | 2013-05-01 | 厦门雅迅网络股份有限公司 | Object-based user-defined information-expanding method |
CN105653273A (en) * | 2015-12-31 | 2016-06-08 | 合肥大多数信息科技有限公司 | Personalized customizing method for client function under B/S architecture |
Also Published As
Publication number | Publication date |
---|---|
CN106294760A (en) | 2017-01-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11647096B2 (en) | Method and apparatus for automatically optimizing the loading of images in a cloud-based proxy service | |
CN109582899B (en) | Page loading method and device, computer equipment and storage medium | |
CN109863527B (en) | Method and system for server-side rendering of rendered local content | |
US9846649B1 (en) | Providing files with cacheable portions | |
US8375296B2 (en) | Reusing style sheet assets | |
US8176416B1 (en) | System and method for delivering a device-independent web page | |
US9916285B2 (en) | Generating a preview of a web page for a mobile terminal | |
US10542123B2 (en) | System and method for generating and monitoring feedback of a published webpage as implemented on a remote client | |
CN106294760B (en) | Form processing method, server and client | |
US8682964B1 (en) | Progressively loading network content | |
US10447742B2 (en) | Information sharing method and device | |
US20140201617A1 (en) | Method for Browsing Web Page on Mobile Terminal | |
CN104426925B (en) | Web page resources acquisition methods and device | |
JP6203374B2 (en) | Web page style address integration | |
DE112015000299T5 (en) | Portable wireless self-hosted condition monitoring web server and usage method | |
EP2798533A1 (en) | Apparatuses and methods for web application converter systems | |
US9141596B2 (en) | System and method for processing markup language templates from partial input data | |
US20140095579A1 (en) | System and method for increasing web site serving performance | |
CN106547806B (en) | Page loading method and device | |
CN111339456A (en) | Preloading method and device | |
CN114297544A (en) | Remote browsing method, device, equipment and storage medium | |
US10095791B2 (en) | Information search method and apparatus | |
US20170053383A1 (en) | Apparatus and method for providing 3d content and recording medium | |
EP2806350A1 (en) | Image forming firmware web-based user interface localization | |
US20140237133A1 (en) | Page download control method, system and program for ie core browser |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |