CN110992131B - Form processing method, form processing device and storage medium - Google Patents

Form processing method, form processing device and storage medium Download PDF

Info

Publication number
CN110992131B
CN110992131B CN201911141344.3A CN201911141344A CN110992131B CN 110992131 B CN110992131 B CN 110992131B CN 201911141344 A CN201911141344 A CN 201911141344A CN 110992131 B CN110992131 B CN 110992131B
Authority
CN
China
Prior art keywords
page
identification
form element
value
elements
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
Application number
CN201911141344.3A
Other languages
Chinese (zh)
Other versions
CN110992131A (en
Inventor
戴国光
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Pierbulaini Software Co ltd
Original Assignee
Beijing Pierbulaini Software Co ltd
Filing date
Publication date
Application filed by Beijing Pierbulaini Software Co ltd filed Critical Beijing Pierbulaini Software Co ltd
Priority to CN201911141344.3A priority Critical patent/CN110992131B/en
Publication of CN110992131A publication Critical patent/CN110992131A/en
Application granted granted Critical
Publication of CN110992131B publication Critical patent/CN110992131B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention discloses a form handling method, the method being adapted to be executed in a computing device, the computing device being adapted to present a page, the page comprising one or more forms, each form comprising at least one form element, the method comprising the steps of: obtaining a submit request on a current rendered page, the submit request adapted to submit a form in the current page to a server communicatively coupled to the computing device for processing; when the submitting request is received, one or more form elements embedded with preset attributes in each form of the current page are obtained; acquiring the identification of each form element and a corresponding value; the identity of the one or more form elements retrieved and their corresponding values are stored in association prior to submitting the form to the server for processing. The invention also discloses a corresponding device and a storage medium.

Description

Form processing method, form processing device and storage medium
Technical Field
The present invention relates to the field of information processing technologies, and in particular, to a form processing method, a form processing device, and a storage medium.
Background
At present, many websites have scenes in which users need to fill in forms, in order to improve user experience, the user needs to automatically fill form information filled in before the user into the current form when entering the current form page or other pages again after submitting the forms, the user is prevented from inputting the same information again, and the effect of improving user experience is achieved.
In the prior art, a specific page corresponds to a form or a plurality of forms, the same information to be filled in different pages also belongs to different form elements, the user needs to repeatedly fill in the same information, the error rate is high, and the user experience is poor. And if the page table elements are too many, the filling efficiency is low, and the maintainability and the reusability are poor.
Disclosure of Invention
To this end, the present invention provides a form processing method, apparatus, and storage medium in an effort to solve or at least alleviate at least one of the problems presented above.
According to one aspect of the present invention there is provided a form handling method adapted to be executed in a computing device adapted to render a page comprising one or more forms, each form comprising at least one form element, the method comprising the steps of: obtaining a submit request on a current presented page, the submit request adapted to submit a form in the current page to a server communicatively connected to the computing device for processing; when a submitting request is received, one or more form elements embedded with preset attributes in each form of the current page are obtained; for each of the one or more form elements obtained, obtaining an identity of each form element and a corresponding value; and associatively storing the identity of the one or more form elements and their corresponding values obtained prior to submitting the form to the server for processing.
Optionally, in the form processing method according to the present invention, storing the obtained identity of the one or more form elements and their corresponding values in association includes the steps of: the local storage is used as an associated storage location, and the acquired identification of the one or more form elements and corresponding values thereof are stored on the associated storage location.
Optionally, in the form processing method according to the present invention, the predetermined attribute is named data-cookie and/or the form processing method further includes storing the predetermined attribute as a data-cookie.
Optionally, in the form processing method according to the present invention, when a page or a new page is re-presented, one or more form elements embedded with a predetermined attribute in each form of the current page are acquired; for each form element of the one or more form elements obtained, obtaining an identification of each form element, and obtaining a value corresponding to the identification of the form element from an associated storage location according to the identification; and filling the value corresponding to the identification of the form element into a position corresponding to the identification of the form element in the form.
Optionally, in the form processing method according to the present invention, the step of acquiring the identifier of the form element further includes: acquiring a value associated with a predetermined attribute from the form element; and taking the acquired value as an identification of the form element; wherein the predetermined attribute and the identification are specified in the form of key-value pairs in the table element.
Optionally, in the form processing method according to the present invention, the form element further includes a page identifier, and the page identifier is adapted to be transmitted to the server together with the value of the form element, so that the server obtains the corresponding form unit value according to the page identifier of the form element for processing.
According to still another aspect of the present invention, there is provided a form processing apparatus including: a submit request obtaining unit adapted to obtain a submit request on a current presented page, the submit request adapted to submit a form in the current page to a server communicatively connected to the computing device for processing; the acquisition unit is suitable for acquiring one or more form elements embedded with preset attributes in each form of the current page when receiving a submitting request; the storage unit is suitable for acquiring the identification and the corresponding value of each form element for each form element in the acquired one or more form elements; and associatively storing the identity of the one or more form elements and their corresponding values obtained prior to submitting the form to the server for processing.
Optionally, in the form processing device according to the present invention, the form processing device further includes a form filling unit adapted to acquire one or more form elements embedded with predetermined attributes in each form of the current page when the page or the new page is re-presented; for each form element of the one or more form elements obtained, obtaining an identification of each form element, and obtaining a value corresponding to the identification of the form element from an associated storage location according to the identification; and filling the value corresponding to the identification of the form element into a position corresponding to the identification of the form element in the form.
According to yet another aspect of the present invention, there is provided a computing device comprising at least one processor; and a memory storing program instructions, wherein the program instructions are configured to be adapted to be executed by the at least one processor, the program instructions comprising instructions for performing a form handling method according to the invention.
According to yet another aspect of the present invention, there is provided a readable storage medium storing program instructions that, when read and executed by a client, cause the client to perform the form processing method of the present invention.
According to the technical scheme of the invention, the preset attribute is embedded in one or more form elements in each form of the page, and before the content on the page is submitted to the server, the form identification of each form element and the corresponding value thereof can be stored in a correlated mode in the local computing device, for example in a browser. Then, when the page or new pages are re-presented on the computing device, if the form identifiers of the form elements with the predetermined attributes are embedded in the pages, the values corresponding to the identifiers of the form elements stored before can be obtained according to the form identifiers, and the values can be directly filled into the positions corresponding to the form identifiers in the forms. Thus, for the form elements with the same form identifier, even if the form elements are in different pages, the user only needs to fill in once without repeatedly filling in, so that the user experience and the form filling efficiency are improved.
Drawings
To the accomplishment of the foregoing and related ends, certain illustrative aspects are described herein in connection with the following description and the annexed drawings, which set forth the various ways in which the principles disclosed herein may be practiced, and all aspects and equivalents thereof are intended to fall within the scope of the claimed subject matter. The above, as well as additional objects, features, and advantages of the present disclosure will become more apparent from the following detailed description when read in conjunction with the accompanying drawings. Like reference numerals generally refer to like parts or elements throughout the present disclosure.
FIG. 1 shows a schematic diagram of a form processing system 100 according to one embodiment of the invention;
FIG. 2 illustrates a schematic construction of a computing device 200 according to one embodiment of the invention;
FIG. 3 illustrates a flow chart of a form processing method 300 according to one embodiment of the invention;
FIG. 4 shows a flow chart of a form processing method 400 according to yet another embodiment of the invention;
FIG. 5 shows a schematic diagram of a form processing device 500 according to one embodiment of the invention;
FIG. 6 illustrates an operational interface diagram of a form processing method according to one embodiment of the invention;
fig. 7 shows an operation interface diagram of a form processing method according to still another embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
FIG. 1 shows a schematic diagram of a form processing system 100 according to one embodiment of the invention. As shown in FIG. 1, the form handling system includes a computing device 200 and a server 110, with a communication connection between the computing device 200 and the server. The server 110 may be one server or may be a server cluster formed by a plurality of servers, and the deployment mode of the server 110 is not limited in the present invention.
Computing device 200 may be implemented as a personal computer including desktop and notebook computer configurations. The computing device 200 has installed thereon client applications supporting network file transfer and storage, including native applications or browsers such as those including IE, chrome, and Firefox, and has stored locally various files such as photographs, audio, video, documents (e.g., documents in a Word, PDF, etc.). The application client may run on an operating system such as Windows, macOS. Computing device 200 may also be implemented as part of a small-form factor portable (or mobile) electronic device such as a cellular telephone, a Personal Digital Assistant (PDA), a personal media player device, a wireless web-watch device, a personal headset device, an application specific device, or a hybrid device that may include any of the above functions.
The browser is one of the client applications, and according to one embodiment of the present invention, the browser on the computing device 200 may make a request to the server, the browser sends the request to the server, requests the form to fill in the page, then the user fills in the form, and then sends a request to submit the form to the server for processing. The browser processes and displays the result returned by the server, and the logic function of the system can be better shown through the interface.
FIG. 6 is a diagram of an interface diagram of a method of handling forms, according to one embodiment of the present invention, for a requested page. In order to distinguish from other pages, it should be noted that, here, the form that needs to be filled in by the user is for the large special sales meeting of the general pick in beijing.
FIG. 2 shows a schematic diagram of a computing device 200 according to one embodiment of the invention. In a basic configuration 202, computing device 200 typically includes a system memory 206 and one or more processors 204. A memory bus 208 may be used for communication between the processor 204 and the system memory 206.
Depending on the desired configuration, the processor 204 may be any type of processing including, but not limited to: a microprocessor (μp), a microcontroller (μc), a digital information processor (DSP), or any combination thereof. Processor 204 may include one or more levels of cache, such as a first level cache 210 and a second level cache 212, a processor core 214, and registers 216. The example processor core 214 may include an Arithmetic Logic Unit (ALU), a Floating Point Unit (FPU), a digital signal processing core (DSP core), or any combination thereof. The example memory controller 218 may be used with the processor 204, or in some implementations, the memory controller 218 may be an internal part of the processor 204.
Depending on the desired configuration, system memory 206 may be any type of memory including, but not limited to: volatile memory (such as RAM), non-volatile memory (such as ROM, flash memory, etc.), or any combination thereof. The system memory 106 may include an operating system 220, one or more applications 222, and program data 224. The application 222 is in effect a plurality of program instructions for instructing the processor 204 to perform a corresponding operation. In some implementations, the application 222 can be arranged to cause the processor 204 to operate with the program data 224 on an operating system.
Computing device 200 may also include an interface bus 240 that facilitates communication from various interface devices (e.g., output devices 242, peripheral interfaces 244, and communication devices 246) to basic configuration 202 via bus/interface controller 230. The example output device 242 includes a graphics processing unit 248 and an audio processing unit 250. They may be configured to facilitate communication with various external devices, such as a display or speakers, via one or more a/V ports 252. The example peripheral interface 244 may include a serial interface controller 254 and a parallel interface controller 256, which may be configured to facilitate communication via one or more I/O ports 258 and external devices such as input devices (e.g., keyboard, mouse, pen, voice input device, touch input device) or other peripherals (e.g., printer, scanner, etc.). The example communication device 246 may include a network controller 260 that may be arranged to facilitate communication with one or more other computing devices 262 over a network communication link via one or more communication ports 264.
The network communication link may be one example of a communication medium. Communication media may typically be embodied by computer readable instructions, data structures, program modules, and may include any information delivery media in a modulated data signal, such as a carrier wave or other transport mechanism. By way of non-limiting example, communication media may include wired media such as a wired network or special purpose network, and wireless media such as acoustic, radio Frequency (RF), microwave, infrared (IR) or other wireless media. The term computer readable media as used herein may include both storage media and communication media.
In the computing device 200 according to the present invention, the application 222 includes form handling means 500, which are resident in the computing device 200, so that the computing device 200 performs a bullet box display by executing the form handling method 300.
FIG. 3 illustrates a flow chart of a form processing method 300 according to one embodiment of the invention. The method 300 is suitable for execution in a computing device, such as the computing device 200 described previously. As shown in FIG. 3, the form processing method begins at step 310.
In step S310, a commit request on the currently presented page is acquired. The submit request is adapted to submit the form in the current page to a server communicatively coupled to the computing device for processing. It should be noted that the current page includes one or more forms, each of which includes at least one form element. The table elements of the current page have predetermined attributes partially or fully embedded.
The form consists of two parts, form elements and form buttons. The form buttons include a submit button that when clicked by the user, corresponds to a submit request being initiated on the current page for submitting the form to the server. There are other form buttons to control other processing tasks defining processing scripts, which are not specifically described herein. It is noted that when the current page includes a plurality of forms, the submit request is only for submitting the current form.
The types of form elements may include text boxes, option boxes, buttons, radio box check boxes, and the like. The form elements include the values of the form elements, i.e., what the user needs to fill in for each form element.
According to one embodiment of the invention, the form element further comprises a page identity adapted to be transmitted to the server together with the value of the form element, so that the server obtains the corresponding form element value for processing based on the page identity of the form element. In this embodiment, the page identifier is the display text of the form element on the page.
The list unit of the current page has a part or all of embedded preset attributes, and whether the list unit is embedded with the preset attributes is preset according to the list processing system and the user needs. Such as the user name, user address, user contact information, desired product type, etc. that need to be filled in.
The method of adding a predetermined attribute to a table element may add a data-attribute to a table element according to one embodiment of the present invention. The data-global attribute is a class of attributes called custom data attributes, which can be embedded in all HTML elements, and all the custom data attributes can be accessed through a unified interface of the element to which they belong. The data-attribute includes two parts: the attribute names should not contain any capital letters; the attribute value may be any string. In this embodiment, the predetermined attribute of the form element is named a data-cookie. The predetermined attribute includes two parts: a predetermined attribute name, and a value associated with the predetermined attribute. Examples of codes are as follows:
Wherein the predetermined attribute name is a data-cookie and the value associated with the predetermined attribute is username.
Next, in step S320, when the submit request is received, one or more form elements embedded with a predetermined attribute in each form of the current page are acquired, and an identifier and a corresponding value of each form element are acquired.
For form elements with embedded predetermined attributes, the types still include text boxes, option boxes, buttons, radio box check boxes, and the like, and different types of form elements have different acquisition modes. For example, the input element is acquired by a val method, the span element is acquired by a text method, and the method for acquiring the form elements of different types is not limited by the invention.
According to one embodiment of the invention, the step of obtaining the identity of the form element further comprises: acquiring a value associated with a predetermined attribute from the form element; and taking the acquired value as an identification of the form element; wherein the predetermined attribute and the identification are specified in the form of key-value pairs in the table element.
Specifically, first, an element embedded with a predetermined attribute is acquired according to the predetermined attribute, and the predetermined attribute includes two parts: a predetermined attribute name, and a value associated with the predetermined attribute. When embedding a predetermined attribute into a form element, a value associated with the predetermined attribute may be set according to what the user needs to fill for that form element. For example, if a user needs to fill in a user name for a certain form element, the user name that needs to be filled in another form will not change, and then the value associated with the predetermined attribute of this form element is set to be username when the predetermined attribute is embedded.
Then, when the value associated with the predetermined attribute is acquired from the form element, the value associated with the predetermined attribute of the form element is used as the identification of the form element. The predetermined attributes and identifications are specified in table element pairs. For example, the predetermined attribute of the form element is a data-cookie, identified as username, then the specified manner on the form element is data-cookie = username.
Finally, in step S330, the identity of the retrieved form element or elements and their corresponding values are stored in association prior to submitting the form to the server for processing.
Wherein, when embedding the predetermined attribute into the form element, a value associated with the predetermined attribute may be set according to the content that the user needs to fill for the form element. When the form element is obtained, a value associated with the predetermined attribute is taken as an identification of the form element. The value of the form element is the content that the user needs to fill in for each form element. For example, the identifier of the form element is username, the content that the user needs to fill in is a user name, and if the user name is dgg, the username and dgg are stored in association.
According to one embodiment of the invention, the local store is used as an associated storage location, and the obtained identity of the one or more form elements and their corresponding values are stored on the associated storage location. Specifically, it is stored locally as a cookie. cookies are variables stored in a computing device. This cookie is sent each time the same computing device requests a page through the browser.
Cookies are composed of name, content, path, scope, protocol, and life cycle. cookie data is always carried in the homologous http request, i.e. cookies are passed back and forth between the browser and the server. In this embodiment, the information that the commit form sent to the server: the available form elements, url, client request header information, cookie. cookie data has the concept of a path, and the cookie can be limited to only belong to a certain path. Here, possibly across different pages, the cookie path is "/" or root path, and is shared across all homologous windows in order for all pages to be accessible. cookie distribution is achieved by extending the HTTP protocol, and the server prompts the browser to generate corresponding cookies according to the indication by adding a special indication line to the response header of HTTP. The cookie functions to interact with the server and exists as part of the HTTP specification. The obtained identification of one or more form elements and corresponding values thereof are stored in the cookie, and the cookie is convenient to access without modifying or adding additional storage.
By embedding predetermined attributes in one or more form elements in the respective forms of the page, the form identity of each form element and its corresponding value may be stored in association when a commit request on the current page is received.
Fig. 4 shows a flow chart of a form processing method 400 according to yet another embodiment of the invention.
In step S410, a commit request on the currently presented page is acquired. The submit request is adapted to submit the form in the current page to a server communicatively coupled to the computing device for processing. The table elements of the current page have predetermined attributes partially or fully embedded. The preset attribute comprises an attribute name and an attribute value, and whether the table element is embedded into the preset attribute or not, and the attribute name and the attribute value of the preset attribute are preset according to the form processing system and the user requirement.
It is worth noting here that the value associated with the predetermined attribute may be set according to what the user needs to fill for that form element. For example, the content that the user needs to fill in is the same for a plurality of form elements located in different forms, the values associated with the predetermined attributes of the form elements are set to the same value when the predetermined attributes are embedded.
Next, in step S420, when the submit request is received, one or more form elements embedded with a predetermined attribute in each form of the current page are acquired, and an identifier and a corresponding value of each form element are acquired. The value of the form element is the content which needs to be filled by the user for each form element, and the identification of the form element is the attribute value of the predetermined attribute of the form element. The values of the form elements are in one-to-one correspondence with the identifications of the form elements which have preset predetermined attributes.
Subsequently, in step S430, the identity of the one or more form elements obtained and their corresponding values are stored in association before submitting the form to the server for processing.
Further, in step S440, when the page or the new page is re-presented, one or more form elements embedded with the predetermined attribute in each form of the current page are acquired; for each form element of the one or more form elements obtained, obtaining an identity of each form element, and obtaining a value corresponding to the identity of the form element from an associated storage location according to the identity; and filling a value corresponding to the identification of the form element into a position corresponding to the identification of the form element in the form.
Taking the user name as an example, in steps S410-S430, for a form element embedded with a predetermined attribute being a data-cookie, the value of the predetermined attribute being usernames, the identifier being usernames has been stored in the associated storage location, the value corresponding to the identifier being the user name at the time of the last submission by the user, assuming that the user names are dgg, usernames and dgg are associated stores. When a user re-presents a page or a new page, one or more form elements embedded with predetermined attributes in each form of the current page are acquired. And acquiring the value of the predetermined attribute of the element, if the value of the predetermined attribute of the table unit element is username, the identification of the table element is username, and filling the value into the position corresponding to the identification of the table element in the table only by taking out the value of the table element with the identification of username from the associated storage position, namely dgg, and completing filling of one table element. The above steps are also used for storing and filling in other form elements. The filling of the form elements is not sequential, only the corresponding positions on the form are needed to be taken out from the associated storage positions and filled in according to the identification, the form elements are not needed to be taken out one by one and then assigned and filled one by one, and the filling rate is high.
The effect of this is that for a form element that has embedded a predetermined attribute, no matter on the same form after refreshing the page, or on another form that reopens a page, no repeated filling is required as long as the value of its predetermined attribute is the same. Further, by accessing the cookie, the cookie data has a concept of a path, and the cookie can be limited to only belong to a certain path. For the case of possibly crossing different pages, the cookie path is a "/" or root path in order for all pages to be accessible. cookies are also shared in all homologous windows, i.e., all forms under the path can be automatically filled out.
FIG. 7 illustrates an operational interface diagram showing a form processing method according to one embodiment of the present invention, for a user to reopen a page. The form in the page that the user needs to fill out is for the "Tianjin Ford (import) large special sales meeting". And the target filling information is automatically filled in when the new page is opened according to the information filled in by the user in the form of the page shown in fig. 6.
According to the scheme, for the form elements with the same form identification, a user only needs to fill in once, when a page or a new page is re-presented, a value corresponding to the identification of the form element stored before is acquired from an associated storage position, the value corresponding to the identification is target filling information, and the target filling information is filled in a position corresponding to the form identification in the form. Thus, for the form elements with the same form identifier, even if the form elements are in different pages, the user does not need to fill in repeatedly, so that the user experience and the form filling efficiency are improved.
FIG. 5 illustrates a schematic diagram of a form processing apparatus 500 residing in a computing device 200 for a bullet box display by the computing device 200 through execution of the form processing method 300, in accordance with one implementation of the invention.
An acquisition commit request unit 510 adapted to acquire a commit request on a current presentation page, the commit request being adapted to commit a form in the current page to a server in communicative connection with the computing device for processing. The processing logic and functions of the obtaining and submitting request unit may refer to the related description of step S310, which is not described herein.
The get form element unit 520 is adapted to, upon receiving the submit request, obtain one or more form elements embedded with predetermined attributes in each form of the current page. The processing logic and functions for obtaining the table unit element unit may be referred to the related description of step S320, and will not be described herein.
A storage unit 530 adapted to obtain, for each of the one or more obtained form elements, an identification of said each form element and a corresponding value; and storing in association the identity of the retrieved form element or elements and their corresponding values prior to submitting the form to the server for processing. The processing logic and functions of the storage unit may be referred to the description of step S330, and will not be repeated here.
According to one embodiment of the present invention, the form processing device further comprises a form filling unit 540 adapted to obtain one or more form elements embedded with predetermined attributes in each form of the current page when the page or the new page is re-presented; for each form element of the one or more form elements obtained, obtaining an identity of each form element, and obtaining a value corresponding to the identity of the form element from an associated storage location according to the identity; and filling a value corresponding to the identification of the form element into a position corresponding to the identification of the form element in the form. The processing logic and functions of the form filling unit may be referred to the related description of the foregoing step S440, and will not be repeated here.
In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be construed as reflecting the intention that: i.e., the claimed invention requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules or units or components of the devices in the examples disclosed herein may be arranged in a device as described in this embodiment, or alternatively may be located in one or more devices different from the devices in this example. The modules in the foregoing examples may be combined into one module or may be further divided into a plurality of sub-modules.
Those skilled in the art will appreciate that the modules in the apparatus of the embodiments may be adaptively changed and disposed in one or more apparatuses different from the embodiments. The modules or units or components of the embodiments may be combined into one module or unit or component and, furthermore, they may be divided into a plurality of sub-modules or sub-units or sub-components. Any combination of all features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or units of any method or apparatus so disclosed, may be used in combination, except insofar as at least some of such features and/or processes or units are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings), may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features but not others included in other embodiments, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments can be used in any combination.
Furthermore, some of the embodiments are described herein as methods or combinations of method elements that may be implemented by a processor of a computer system or by other means of performing the functions. Thus, a processor with the necessary instructions for implementing the described method or method element forms a means for implementing the method or method element. Furthermore, the elements of the apparatus embodiments described herein are examples of the following apparatus: the apparatus is for carrying out the functions performed by the elements for carrying out the objects of the invention.
As used herein, unless otherwise specified the use of the ordinal terms "first," "second," "third," etc., to describe a general object merely denote different instances of like objects, and are not intended to imply that the objects so described must have a given order, either temporally, spatially, in ranking, or in any other manner.
While the invention has been described with respect to a limited number of embodiments, those skilled in the art, having benefit of the above description, will appreciate that other embodiments are contemplated within the scope of the invention as described herein. Furthermore, it should be noted that the language used in the specification has been principally selected for readability and instructional purposes, and may not have been selected to delineate or circumscribe the inventive subject matter. Accordingly, many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the appended claims. The disclosure of the present invention is intended to be illustrative, but not limiting, of the scope of the invention, which is defined by the appended claims.

Claims (5)

1. A form handling method, the method being adapted to be executed in a computing device adapted to present a page comprising one or more forms, each form comprising at least one form element, the form element types comprising text boxes, option boxes, buttons, radio boxes, check boxes, the form element values being what a user needs to fill in, part or all of the form elements of each form being embedded with a predetermined attribute preset in accordance with the form handling system and the user needs, the predetermined attribute comprising an attribute name and an attribute value, the attribute name of the predetermined attribute of all of the form elements embedded with the predetermined attribute being a data-cookie, the attribute value being set in accordance with the user needs to fill in, if the user needs to fill in the same content for a plurality of form elements located in different forms, the values of the form elements associated with the predetermined attribute being set to the same value when the predetermined attribute is embedded, the method comprising the steps of:
obtaining a submit request on a current rendered page, the submit request adapted to submit a form in the current page to a server communicatively connected to the computing device for processing;
When the submitting request is received, one or more form elements embedded with preset attributes in each form of the current page are obtained;
For each form element in the one or more acquired form elements, acquiring an identification of each form element and a corresponding value;
before submitting the form to the server for processing, storing locally as an associated storage location and storing the identity of the acquired one or more form elements and their corresponding values on the associated storage location;
When refreshing a page or re-opening another page, acquiring one or more form elements embedded with preset attributes in each form of the opened page;
For each form element in the one or more acquired form elements, acquiring an identification of each form element, and acquiring a value corresponding to the identification of the form element from the associated storage location according to the identification;
Filling the value corresponding to the identification of the form element into a position corresponding to the identification of the form element in the form;
Wherein obtaining the identification of the form element comprises: and acquiring a value associated with the predetermined attribute from the form element, and taking the acquired value as an identifier of the form element, wherein the predetermined attribute and the identifier are specified in the form element in a key value pair mode.
2. The method of claim 1, wherein the form element further comprises a page identification adapted to be transmitted to the server with the value of the form element, such that the server obtains the corresponding form element value for processing based on the page identification of the form element.
3. A form handling device, comprising:
The system comprises an acquisition and submission request unit, a calculation device and a display unit, wherein the acquisition and submission request unit is suitable for acquiring a submission request on a current presentation page, and the submission request is suitable for submitting a form in the current page to a server in communication connection with the calculation device for processing;
The obtaining unit is used for obtaining one or more form elements embedded with preset attributes in each form of the current page when the submitting request is received;
A storage unit adapted to acquire, for each of the acquired one or more form elements, an identification of the each form element and a corresponding value; and before submitting the form to the server for processing, storing locally as an associated storage location and storing the identity of the one or more form elements and their corresponding values obtained on the associated storage location;
the form filling unit is suitable for acquiring one or more form elements embedded with preset attributes in each form of the opened page when refreshing the page or re-opening another page; for each form element in the one or more acquired form elements, acquiring an identification of each form element, and acquiring a value corresponding to the identification of the form element from the associated storage location according to the identification; filling the value corresponding to the identification of the form element into a position corresponding to the identification of the form element in the form;
Wherein obtaining the identification of the form element comprises: acquiring a value associated with the predetermined attribute from the form element, and taking the acquired value as an identifier of the form element, wherein the predetermined attribute and the identifier are specified in the form element in a key-value pair manner;
The form element types comprise text boxes, option boxes, buttons, radio boxes and check boxes, the values of the form elements are contents required to be filled by users, part or all of the form elements of each form are embedded with preset attributes preset according to a form processing system and user requirements, the preset attributes comprise attribute names and attribute values, the attribute names of all the preset attributes of the form elements embedded with the preset attributes are data-cookies, the attribute values are set according to the contents required to be filled by the users, and if the contents required to be filled by users for a plurality of form elements positioned in different forms are the same, the values associated with the preset attributes of the form elements are set to be the same values when the preset attributes are embedded.
4. A computing device, comprising:
At least one processor; and
A memory storing program instructions, wherein the program instructions are configured to be adapted to be executed by the at least one processor, the program instructions comprising instructions for performing the form processing method of claim 1 or 2.
5. A readable storage medium storing program instructions which, when read and executed by a client, cause the client to perform the method of any one of claims 1 or 2.
CN201911141344.3A 2019-11-20 Form processing method, form processing device and storage medium Active CN110992131B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911141344.3A CN110992131B (en) 2019-11-20 Form processing method, form processing device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911141344.3A CN110992131B (en) 2019-11-20 Form processing method, form processing device and storage medium

Publications (2)

Publication Number Publication Date
CN110992131A CN110992131A (en) 2020-04-10
CN110992131B true CN110992131B (en) 2024-04-19

Family

ID=

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8214362B1 (en) * 2007-09-07 2012-07-03 Google Inc. Intelligent identification of form field elements
CN105335404A (en) * 2014-07-29 2016-02-17 北京奇虎科技有限公司 Page information loading method and device
CN105573765A (en) * 2015-12-29 2016-05-11 武汉传神信息技术有限公司 Implementation method for dynamic form, client and server
CN107480117A (en) * 2017-07-25 2017-12-15 中国工商银行股份有限公司 Automate the restoration methods and device of page table list data
CN107656910A (en) * 2016-07-26 2018-02-02 北京京东尚科信息技术有限公司 Method and apparatus for generating list
CN109922132A (en) * 2019-01-18 2019-06-21 深圳壹账通智能科技有限公司 Method, apparatus, electronic equipment and the storage medium of form request processing

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8214362B1 (en) * 2007-09-07 2012-07-03 Google Inc. Intelligent identification of form field elements
CN105335404A (en) * 2014-07-29 2016-02-17 北京奇虎科技有限公司 Page information loading method and device
CN105573765A (en) * 2015-12-29 2016-05-11 武汉传神信息技术有限公司 Implementation method for dynamic form, client and server
CN107656910A (en) * 2016-07-26 2018-02-02 北京京东尚科信息技术有限公司 Method and apparatus for generating list
CN107480117A (en) * 2017-07-25 2017-12-15 中国工商银行股份有限公司 Automate the restoration methods and device of page table list data
CN109922132A (en) * 2019-01-18 2019-06-21 深圳壹账通智能科技有限公司 Method, apparatus, electronic equipment and the storage medium of form request processing

Similar Documents

Publication Publication Date Title
EP3172680B1 (en) Fast rendering of websites containing dynamic content and stale content
CN111427766B (en) Request processing method and device and proxy server
US20190065445A1 (en) Predictive resource identification and phased delivery of structured documents
US8397212B2 (en) Module hosting and content generation platform
CN106933871B (en) Short link processing method and device and short link server
US9087020B1 (en) Managing and retrieving content from a shared storage
US8682964B1 (en) Progressively loading network content
US20190340230A1 (en) System and method for generating websites from predefined templates
US20160224530A1 (en) Mapping stored client data to requested data using metadata
KR101709882B1 (en) Systems and methods to map page states
CN103699674A (en) Webpage storing method, webpage opening method, webpage storing device, webpage opening device and webpage browsing system
US10467790B2 (en) On-demand image spriting
US11080322B2 (en) Search methods, servers, and systems
US20130286416A1 (en) System and Method of Installing Printer Applications on a Printer
US11004054B2 (en) Updating account data for multiple account providers
CN109495553A (en) A kind of webpage display control method, system and Reverse Proxy
CN106294417A (en) A kind of data reordering method, device and electronic equipment
CN111444235A (en) Django-based data serialization method and device, computer equipment and storage medium
CN110992131B (en) Form processing method, form processing device and storage medium
US20160224553A1 (en) Search methods and terminals
CN111444448B (en) Data processing method, server and system
CN105808628A (en) Webpage transcoding method, apparatus and system
CN110992131A (en) Form processing method and device and storage medium
US9779387B2 (en) Business-to-business document user interface and integration design
WO2015154681A1 (en) Link address generation method, device, and server

Legal Events

Date Code Title Description
PB01 Publication
SE01 Entry into force of request for substantive examination
GR01 Patent grant