CN101667207B - Method for quickly recognizing and selecting employees' identity based on AJAX in WEB2.0 - Google Patents

Method for quickly recognizing and selecting employees' identity based on AJAX in WEB2.0 Download PDF

Info

Publication number
CN101667207B
CN101667207B CN2009101833524A CN200910183352A CN101667207B CN 101667207 B CN101667207 B CN 101667207B CN 2009101833524 A CN2009101833524 A CN 2009101833524A CN 200910183352 A CN200910183352 A CN 200910183352A CN 101667207 B CN101667207 B CN 101667207B
Authority
CN
China
Prior art keywords
ajax
function
input
name
information
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.)
Expired - Fee Related
Application number
CN2009101833524A
Other languages
Chinese (zh)
Other versions
CN101667207A (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.)
NANJING CITY LINKAGE SYSTEM INTEGRATION CO Ltd
Original Assignee
NANJING CITY LINKAGE SYSTEM INTEGRATION CO Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by NANJING CITY LINKAGE SYSTEM INTEGRATION CO Ltd filed Critical NANJING CITY LINKAGE SYSTEM INTEGRATION CO Ltd
Priority to CN2009101833524A priority Critical patent/CN101667207B/en
Publication of CN101667207A publication Critical patent/CN101667207A/en
Application granted granted Critical
Publication of CN101667207B publication Critical patent/CN101667207B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention relates to a method for quickly recognizing and selecting employees' identity based on AJAX in WEB2.0, which comprises the following steps: using the regular expression of JavaScript to filter, control and match the input data; acquiring information of name, employee number or number, or Pinyin or letters input by an employee by the string matching of JavaScript; deciding the querying line by the name, the employee number or the Pinyin; transmitting the input information of the foreground WEB client to a background processing program in real time by Ajax; and writing the content processed by the background back to the foreground WEB page in time through the preset Ajax call back function, thereby achieving the purpose of quickly, effectively and dynamically querying the employees' identity in time. In addition, the Ajax technology is used for realizing the background operation of the WEB page.

Description

Employee's identity method for quickly recognizing and selecting based on AJAX among the WEB2.0
One, technical field
The AJAX technology among the WEB2.0 of the invention belongs to is to the identity method for quickly recognizing and selecting.
Two, background technology
Traditional web data upgrades, and is the browser (Browser) of just data being sent back to client (Client) after service end (Server) Data Update mostly, just web page contents can be upgraded (Fig. 1) when request that browser obtains upgrading.After the user carried out loading operation, the message status of operation is not passback as yet, and tend to cause message status to lose if carry out next operation again this moment.
The AJAX full name is " Asynchronous JavaScript and XML " (asynchronous JavaScript and XML), is a kind of webpage development technology (Fig. 2) that interaction network page is used of creating.And JavaScript is a kind of based on object and event-driven and script with security performance, has had JavaScript to make webpage become lively.The purpose of using it is to be implemented in the webpage a plurality of objects of link with HTML Hypertext Markup Language, java script language, with the network client reciprocation, thereby can develop the application program of client.It is by realizing in the html language that embeds or be tuned in standard.
When using JavaScript, when archives or database from the server end or will deliver to the server end, can use the HTML forms, and by the submit button data be delivered to server end, wait-for-response message then with the mode of GET or POST; And use AJAX, and doing communication with the XMLHttpRequest object of JavaScript with server, can directly upgrade all or the page partly from the data of server response.
The advantage of AJAX
● whole webpages needn't be upgraded, the partly page can be only upgraded.
● optimized the communication between browser and the server.Reduce unnecessary data transmission, time and reduce data traffic on the network.
● balance the load of front and back ends.Former notebook data is many is responsible for processing by the rear end, and the AJAX technology allows client share a little work, has alleviated the load of rear end.
The shortcoming of AJAX
● the inconsistency of the browser version of each user side, may cause the problem of can't moving.
● the client overload, too much program code can improve cost of developing in client.
● service end can be by malicious attack, alter, and cause security breaches.
In system platform, because personnel's uncertain factor, in the design in the past, when needs inquiry associate information, search conditions such as name, job number must be passed through and qualified personnel could be searched for, and enumerate out (figure three) with the form of form, the operator selects related personnel's information again from tabulation.More loaded down with trivial details on this design operation, need to consider many sport technique segments in the design simultaneously.Though client provides the fuzzy query function, if input is not right, query manipulation need repeat.
How in time, locate personal information effectively, fast, be to need the problem that solves.Mode of operation can directly draw personal information (figure four, figure five, figure six) as long as the phonetic of importing name, job number, name in the information input frame such as writes a Chinese character in simplified form at mode.
Three, summary of the invention
The present invention seeks to, a kind of personal information method that provides in time in the WEB webpage design, locatees effectively, fast is provided.
Technical scheme of the present invention is: based on the employee's identity method for quickly recognizing and selecting of AJAX among the WEB2.0, at first need to solve how to distinguish various initial conditions, comprising: Chinese character, numeral and letter.And the regular expression of JavaScript powerful and effective function can be filtered the control coupling to the data of input, each regular expression is as follows:
Chinese character: reg=/[^ u4E00-u9FA5]/g
Numeral: reg=/[^ d]/g
The letter: reg=/[^ [a-z] | [A-Z]/g
The information that string matching by JavaScript can obtain importing is name, job number (numeral) or phonetic (letter), and how decision is inquired about;
The input of foreground WEB will be arrived the WEB service background by the service transmission of Ajax, in order to realize according to different querying conditions: name, job number (numeral) or phonetic (letter) inquiry employee information, we need realize that the backstage presses information category classified inquiry function in service end:
● there is relevant storage field in name with job number in database, can realize direct inquiry
● the phonetic of name is owing to the Email email address of personal information in the database is that so we can inquire about (part before the coupling @) according to the Email email address according to individual Pinyin coding
We can realize that the real-time input information with foreground WEB client is transferred to the background process program by the Ajax technology, and with the contents processing on backstage in time by the predefined Ajax call back function write-back foreground WEB page, realize in time, dynamic queries fast and effectively.
We need adopt the Ajax technology to realize the consistency operation of the WEB page for the demand that realizes us:
1. realize the triggering function of input frame---when user's input information, can trigger the main body function of Ajax,
2. realize the registration of call back function---be input to the call back function of registration in the backstage service data data of back after will handling by the Ajax transmission engine that dispose,
3. realize the write-back function of call back function---by the data write-back WEB front page layout of call back function with input.
The present invention adopts the Ajax technology to realize the consistency operation of the WEB page, when user input data information, trigger Ajax engine (and registered callbacks function), the data of realization from the page of client to service end are submitted to, and the data query result call back function that initiatively calls registration of the engine by Ajax again realizes result set is returned client functionality.
Realize client to the communication of the Ajax of service end,, need control the frequency that sends for avoiding the frequent mutual of data; For prevent to expose service end by malicious attack, alter and cause security breaches, added the function that grammer filters at the service routine of service end, increased the subscriber authentication function simultaneously, utilize the validity of Session to judge far-end operation person's identity.
Beneficial effect of the present invention is realized locating personal information in time, effectively, fast, the inconvenience of having avoided the action of operation in the past to bring
Four, description of drawings
The conventional B/S working method of Fig. 1
Fig. 2 is that the present invention uses the B/S working method under the Ajax
Fig. 3 personal information query interface
Fig. 4 is by Chinese character personnel query information
Fig. 5 is by job number personnel query information
Fig. 6 is by name pinyin queries personal information
Fig. 7 is the service end treatment scheme
Fig. 8 is a client process flow
Five, embodiment
Step 1 according to the Ajax working model, is set up the service function of WEB service end, and the function according to employee's name, job number, pinyin queries employee information is provided.For this reason, design has been write corresponding Servlet service and has been accepted code, and this section code is responsible for accepting query requests, the realization proof of identity from client and returning Query Result, and workflow as shown in Figure 7.
Step 2 in the Jsp at exhibiting foreground interface code, needs to realize the client code (realization of JavaScript language) of Ajax working model.At first, write the initial method of Ajax engine; Make up the engine sending method of Ajax, send relevant data by the Put method that realizes Http to server, the while is to the engine registered callbacks function of Ajax, to realize the processing capacity of return data.
Step 3, the matching feature of the regular expression of use JavaScript language is realized the filtering function of input information, input inquiry information is divided into according to name, job number, pinyin queries three major types, in employee's entry information frame, add the information incoming event simultaneously, when input information, trigger the client code of Ajax, realize timely communication.
Step 4, the call back function of realization Ajax is realized the JavaScript function of data write-back function, and when calling the Ajax engine its registration is used for the Ajax engine.Function has been realized, after service end is returned Query Information, shows these data and other relevant auxiliary function.Workflow as shown in Figure 8.
For ensureing the information security in the communication process, reduce service end by malicious attack, alter and cause security breaches, service routine in service end has added the function that grammer filters, and has increased the subscriber authentication function simultaneously, utilizes the validity judgement far-end operation person's of Session identity.

Claims (2)

1. based on the employee's identity method for quickly recognizing and selecting of AJAX among the WEB2.0, it is characterized in that:
Utilize the regular expression of JavaScript that the data of input are filtered the control coupling, each regular expression is as follows:
Chinese character: reg=/[^ u4E00-u9FA5]/g
Numeral: reg=/[^ d]/g
The letter: reg=/[^ [a-z] | [A-Z]/g
The information that string matching by JavaScript obtains employee's input is name, job number numeral or phonetic or letter; And decision is by name, job number numeral or phonetic or alphabetical querying line:
The input of foreground WEB will be arrived the WEB service background by the service transmission of Ajax, for realizing according to different querying conditions: name, job number or numeral or phonetic or letter inquiry employee information, press information category classified inquiry function on service end realization backstage:
● there is relevant storage field in name with job number in database, realize directly inquiry,
● the phonetic of name adopts the preceding part of coupling @ owing to so the Email email address of personal information in the database is to inquire about according to the Email email address according to individual Pinyin coding;
The input information with foreground WEB client real-time by Ajax is transferred to the background process program, and with the contents processing on backstage in time by the predefined Ajax call back function write-back foreground WEB page, realize in time, dynamic queries fast and effectively;
And adopt the Ajax technology to realize the consistency operation of the WEB page:
Realize the triggering function of input frame---when user's input information, trigger the main body function of Ajax;
Realize the registration of call back function---be input to the call back function of registration in the backstage service data data of back after will handling by the Ajax transmission engine that dispose;
Realize the write-back function of call back function---by the data write-back WEB front page layout of call back function with input.
2. the employee's identity method for quickly recognizing and selecting based on AJAX among the WEB2.0 as claimed in claim 1 is characterized in that: realizing client to the communication of the Ajax of service end, for avoiding the frequent mutual of data, need control the frequency that sends; For prevent to expose service end by malicious attack, alter and cause security breaches, added the function that grammer filters at the service routine of service end, increased the subscriber authentication function simultaneously, utilize the validity of Session to judge far-end operation person's identity.
CN2009101833524A 2009-09-18 2009-09-18 Method for quickly recognizing and selecting employees' identity based on AJAX in WEB2.0 Expired - Fee Related CN101667207B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009101833524A CN101667207B (en) 2009-09-18 2009-09-18 Method for quickly recognizing and selecting employees' identity based on AJAX in WEB2.0

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009101833524A CN101667207B (en) 2009-09-18 2009-09-18 Method for quickly recognizing and selecting employees' identity based on AJAX in WEB2.0

Publications (2)

Publication Number Publication Date
CN101667207A CN101667207A (en) 2010-03-10
CN101667207B true CN101667207B (en) 2011-09-28

Family

ID=41803823

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009101833524A Expired - Fee Related CN101667207B (en) 2009-09-18 2009-09-18 Method for quickly recognizing and selecting employees' identity based on AJAX in WEB2.0

Country Status (1)

Country Link
CN (1) CN101667207B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102446221A (en) * 2011-12-22 2012-05-09 南京联创科技集团股份有限公司 Dynamic tree structured directory retrieval method in BS (browser/server) structure software
CN102932332B (en) * 2012-09-28 2015-10-21 用友软件股份有限公司 Data verification system and data verification method
CN104038344B (en) * 2014-06-19 2017-03-22 电子科技大学 Identity authentication method based on regular expression
CN104657479A (en) * 2015-02-17 2015-05-27 广东新农人农业科技股份有限公司 Method and system for displaying updated data on webpage
CN104731976B (en) * 2015-04-14 2018-03-30 海量云图(北京)数据技术有限公司 The discovery of private data and sorting technique in tables of data

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6216131B1 (en) * 1998-02-06 2001-04-10 Starfish Software, Inc. Methods for mapping data fields from one data set to another in a data processing environment
CN1877531A (en) * 2006-06-30 2006-12-13 浙江大学 Embedded compiled system scanner accomplishing method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6216131B1 (en) * 1998-02-06 2001-04-10 Starfish Software, Inc. Methods for mapping data fields from one data set to another in a data processing environment
CN1877531A (en) * 2006-06-30 2006-12-13 浙江大学 Embedded compiled system scanner accomplishing method

Also Published As

Publication number Publication date
CN101667207A (en) 2010-03-10

Similar Documents

Publication Publication Date Title
CN104102537B (en) A kind of application call method and user terminal
CN101667207B (en) Method for quickly recognizing and selecting employees' identity based on AJAX in WEB2.0
US20080021696A1 (en) System and method of providing a fast path link for an identified set of data
CN108765113A (en) A kind of examination of invoice, reimbursement, management system
CN107590145A (en) A kind for the treatment of method and apparatus of page static resource
CN102209098A (en) Smart card remote detection method and system
CN104318356A (en) Novel customer identification and form-filling preprocessing system based on multichannel processing
CN104408626A (en) Novel printing method based on two-dimensional code
CN104320482A (en) Bank teller front-end system
CN103777980A (en) Website commenting information loading method and browser
KR20130014712A (en) One-source multi-language banking system and controlling method therefore
CN102831493A (en) Mobile terminal real-time management system and method
CN104778616A (en) System and method for inputting invoice information quickly
CN110990486A (en) Block link evidence issuing and storing method and device based on network data interaction
CN110851248A (en) Asynchronous task data processing method and device and computer readable storage medium
US10084660B2 (en) Method and system for collecting statistics on network communication data
CN107438054A (en) The method and system of menu information control are realized based on public platform
CN103309989A (en) Intelligent browser for human resource and social security field
CN105808518A (en) Data form filling system based on browser plug-in and integrating method thereof
CN108550017B (en) Consumption finance core system based on SAAS platform
CN113051389B (en) Knowledge pushing method and device
CN110442819A (en) Data processing method, device, storage medium and terminal
CN101996353A (en) Internet based self-service terminal, air ticket booking server and system
EP2229649A1 (en) Method and system for entering data into a web page
CN102982011A (en) Method and device for identifying out-of-sequence texts

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20110928

Termination date: 20210918

CF01 Termination of patent right due to non-payment of annual fee