CN103631886B - In the method and apparatus that browser side is inputted - Google Patents
In the method and apparatus that browser side is inputted Download PDFInfo
- Publication number
- CN103631886B CN103631886B CN201310575117.8A CN201310575117A CN103631886B CN 103631886 B CN103631886 B CN 103631886B CN 201310575117 A CN201310575117 A CN 201310575117A CN 103631886 B CN103631886 B CN 103631886B
- Authority
- CN
- China
- Prior art keywords
- input
- sequence information
- keyboard sequence
- web page
- recognition result
- 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
- 238000000034 method Methods 0.000 title claims abstract description 92
- 230000001960 triggered effect Effects 0.000 claims abstract description 16
- 238000006243 chemical reaction Methods 0.000 claims description 18
- 230000008569 process Effects 0.000 claims description 13
- 238000012545 processing Methods 0.000 claims description 11
- 230000008859 change Effects 0.000 description 6
- 230000009286 beneficial effect Effects 0.000 description 5
- 235000013399 edible fruits Nutrition 0.000 description 5
- 230000008901 benefit Effects 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 238000004590 computer program Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 238000009434 installation Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000003032 molecular docking Methods 0.000 description 2
- 238000004422 calculation algorithm Methods 0.000 description 1
- 230000008878 coupling Effects 0.000 description 1
- 238000010168 coupling process Methods 0.000 description 1
- 238000005859 coupling reaction Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000001035 drying Methods 0.000 description 1
- 238000002347 injection Methods 0.000 description 1
- 239000007924 injection Substances 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 239000000243 solution Substances 0.000 description 1
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/951—Indexing; Web crawling techniques
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/02—Input arrangements using manually operated switches, e.g. using keyboards or dials
- G06F3/023—Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
- G06F3/0233—Character input methods
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Human Computer Interaction (AREA)
- Information Transfer Between Computers (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The invention provides a kind of method and apparatus inputted in browser side.Wherein, this method includes:The input focus of input element in current web page is intercepted, and obtains the input through keyboard sequence information triggered by user;Input through keyboard sequence information is uploaded into corresponding input identification server;Obtain the input recognition result returned from input identification server;The input recognition result that loading returns in browser side;According to selection of the user for input recognition result, the recognition result chosen is input in input element.By the embodiment of the present invention, existing input method workflow can be changed, word input is directly carried out in webpage, in addition, user equipment internal memory can be saved using the embodiment of the present invention.
Description
Technical field
The present invention relates to the Internet, applications field, more particularly to a kind of method inputted in browser side and sets
It is standby.
Background technology
With the high speed development of information-intensive society, people rely on more and more by network inquiry in addition learn it is unknown,
Uncomprehending things.The things inquired about on a web browser by the keyword of input inquiry things needs scans for becoming
People's life learning, the most common way for understanding unknown things or news.In the prior art, to computer equipment or shifting
Input word is all based on the progress of input method application program in dynamic equipment, and system default peace is required when being inputted in webpage
Input method is filled.System is fitted without input method, then word input can not be carried out in webpage, and is installed to the input in system
For method due to updating not in time, or character word stock imperfection causes user can not find the vocabulary of needs when using input method.
In addition, installation input method takes device memory into the equipment such as mobile device or computer, the device space is wasted.
The content of the invention
In view of the above problems, it is proposed that the present invention so as to provide one kind overcome above mentioned problem or at least in part solve on
State the method and apparatus inputted in browser side of problem.
According to one aspect of the present invention, there is provided a kind of method inputted in browser side, including:Intercept and work as
The input focus of input element in preceding webpage, and obtain the input through keyboard sequence information triggered by user;The keyboard is defeated
Enter sequence information and upload to corresponding input identification server;Obtain the input returned from the input identification server and identify knot
Fruit;The input recognition result of the return is loaded in browser side;According to selection of the user for the input recognition result, will select
In recognition result be input in the input element.
Alternatively, the input focus of input element in current web page is intercepted, and it is defeated to obtain the keyboard triggered by user
Before entering sequence information, in addition to:When the current web page loads, the web page element of the current web page is traveled through, works as identification
When the input element be present into the web page element, newly-built script element is injected;Add the webpage of the script element
Element obtains the input through keyboard sequence into the file document elements of the current web page, by the script element to be believed
Breath.
Alternatively, the web page element of the script element is added into the document elements of the webpage, including:To institute
Script element is stated to be initialized.
Alternatively, the input focus for intercepting input element in current web page, and obtain the key triggered by user
Disk list entries information, including:Intercept the input focus of input element in the current web page;According to the input intercepted
Focus obtains the input frame of the current web page;The input through keyboard sequence information is obtained in the input frame.
Alternatively, the input through keyboard sequence information is uploaded into corresponding input identification server, including:Pass through AJAX
The input through keyboard sequence information is uploaded into the input identification server, identifies that server passes through inquiry word by the input
Word database lookup is to the input recognition result.
Alternatively, the input through keyboard sequence information is uploaded into corresponding input identification server, including:By the key
Disk list entries information and prompting message are uploaded to the input identification server, wherein, carried in the prompting message
The conditional code prompted the processing mode of the input through keyboard sequence information.
Alternatively, the input through keyboard sequence information uploads to corresponding input identification server, including:When the keyboard
When list entries information is corresponding capitalization and/or digital sequence information, upload carries the prompting input identification and taken
Business device carries out the prompting message of the conditional code of direct conversion process to the input through keyboard sequence information, by the input identification clothes
Business device the input through keyboard sequence information is converted directly into according to the conditional code corresponding to capitalization and/or numeral;When
The input through keyboard sequence information is when can correspond to the sequence of word, and upload carries the prompting input identification server pair
The input through keyboard sequence information carries out the prompting message of the conditional code of indirect conversion processing, and server root is identified by the input
The input recognition result is obtained according to the conditional code and the word database.
Alternatively, the input recognition result includes:According to the input through keyboard sequence information and the related words number
The word matched according to storehouse;According to the input through keyboard sequence information and the related word database obtains with matching
Word is related, other words for candidate.
Alternatively, methods described is realized using browser plug-in.
According to another aspect of the present invention, a kind of equipment inputted in browser side is additionally provided, including:Focus
Blocker, it is configured to intercept the input focus of input element in current web page;Information acquirer, it is configured to obtain and is touched by user
The input through keyboard sequence information of hair;Information uploader, it is configured to the input through keyboard sequence information uploading to corresponding input
Identify server;Described information getter is additionally configured to, and obtains the input recognition result returned from the input identification server;
Information loader, it is configured to load the input recognition result of the return in browser side;As a result loader, it is configured to according to user
Selection for the input recognition result, the recognition result chosen is input in the input element.
Alternatively, the equipment inputted in browser side also includes:Walker, it is configured in the current web page
During loading, the web page element of the current web page is traveled through, and identifies in the web page element whether store input element;Addition
Device, it is configured to, when the walker recognizes and input element be present in the web page element, inject newly-built script element, and
The web page element of the script element is added into the file document elements of the current web page, is obtained by the script element
Take the input through keyboard sequence information.
Alternatively, the adder is additionally configured to:The script element is initialized.
Alternatively, the focus blocker is additionally configured to:Intercept the input element in the current web page;Obtain described work as
The input frame of preceding webpage, to obtain the input through keyboard sequence information in the input frame.
Alternatively, described information uploader is additionally configured to:The input through keyboard sequence information is uploaded to pair by AJAX
The input identification server answered, identify that server is known by inquiring about related words database lookup to the input by the input
Other result.
Alternatively, described information uploader is additionally configured to:The input through keyboard sequence information and prompting message are uploaded
Server is identified to the input, wherein, the processing mode of the input through keyboard sequence information is carried in the prompting message
The conditional code prompted.
Alternatively, the input through keyboard sequence and the prompting message are uploaded to the input by described information uploader
Identification server concrete mode be:If the input through keyboard sequence information is corresponding capitalization and/or digital sequence,
Upload the state for carrying and prompting the input identification server to carry out direct conversion process to the input through keyboard sequence information
The prompting message of code, identify that server directly changes the input through keyboard sequence information according to the conditional code by the input
For corresponding capitalization and/or numeral;If the input through keyboard sequence information is when can correspond to the sequence of word, upload is taken
With prompting the input to identify, server carries out carrying for the conditional code of succinct conversion process to the input through keyboard sequence information
Show message, the input identification server obtains Text region result according to the conditional code and word database.
Alternatively, the input recognition result includes:According to the input through keyboard sequence information and the related words number
The word matched according to storehouse;According to the input through keyboard sequence information and the related word database obtains with matching
Word is related, other words for candidate.
According to the embodiment of the present invention, after intercepting the input focus in webpage, the keyboard of user's triggering can be got
List entries information, the list entries information is uploaded to input identification server, and input identification clothes are shown in browser side
The input recognition result that business device returns, and then selected according to user, input recognition result is shown in input element.By it is above-mentioned can
Know, input method provided in an embodiment of the present invention solves in the prior art, when input method is only provided with local system
It can be carried out in webpage the problem of word input, change input method workflow of the prior art, reaching need not be
It is locally-downloaded and is carried out on the premise of input method is installed the beneficial effect of word or the input of other recognizable marks.Due to need not
It is being locally-downloaded and input method is installed, saving the storage resource of Internet resources and local, is improving Internet resources and sheet
The utilization rate of ground storage resource.In addition, by the embodiment of the present invention, the words library inquiry in input identification server can be utilized
It is corresponding with the input through keyboard sequence information of user's triggering to input recognition result, it is contemplated that the words base resource in server fills
Abundant, vocabulary is larger, and therefore, the character word stock vocabulary that the present invention can also solve local input method in the prior art is small, user
Sometimes the problem of vocabulary of needs can not be found.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention,
And can be practiced according to the content of specification, and in order to allow above and other objects of the present invention, feature and advantage can
Become apparent, below especially exemplified by the embodiment of the present invention.
According to the accompanying drawings will be brighter to the detailed description of the specific embodiment of the invention, those skilled in the art
Above-mentioned and other purposes, the advantages and features of the present invention.
Brief description of the drawings
By reading the detailed description of hereafter preferred embodiment, it is various other the advantages of and benefit it is common for this area
Technical staff will be clear understanding.Accompanying drawing is only used for showing the purpose of preferred embodiment, and is not considered as to the present invention
Limitation.And in whole accompanying drawing, identical part is denoted by the same reference numerals.In the accompanying drawings:
Fig. 1 shows the process chart of the method according to an embodiment of the invention inputted in browser side;
Fig. 2 shows the flow chart of the method inputted in browser side in accordance with a preferred embodiment of the present invention;
And
Fig. 3 shows the structural representation of the equipment according to an embodiment of the invention inputted in browser side.
Embodiment
Algorithm and display be not inherently related to any certain computer, virtual system or miscellaneous equipment provided herein.
Various general-purpose systems can also be used together with teaching based on this.As described above, required by constructing this kind of system
Structure be obvious.In addition, the present invention is not also directed to any certain programmed language.It should be understood that it can utilize various
Programming language realizes the content of invention described herein, and the description done above to language-specific is to disclose this hair
Bright preferred forms.
Referred in correlation technique, word input is carried out in webpage to be needed to be provided with input method in system, in addition, equipment sheet
The input method character word stock vocabulary of ground installation is small, and user can not find the vocabulary of needs, and locally-installed input method sometimes
Device memory is taken, wastes the device space.
In order to solve the above technical problems, the embodiments of the invention provide a kind of method inputted in browser side.Fig. 1
Show the process chart of the method according to an embodiment of the invention inputted in browser side.As described in Figure 1, should
Flow comprises at least step S102 to step S110.
Step S102, the input focus of input element in current web page is intercepted, and obtains the keyboard triggered by user
List entries information.
Step S104, input through keyboard sequence information is uploaded into corresponding input identification server.
Step S106, the input recognition result returned from input identification server is obtained.
Step S108, the input recognition result that loading returns in browser side.
Step S110, according to selection of the user for input recognition result, the recognition result chosen is input to the input
In element.
According to the embodiment of the present invention, after intercepting the input focus in webpage, the keyboard of user's triggering can be got
List entries information, the list entries information is uploaded to input identification server, and input identification clothes are shown in browser side
The input recognition result that business device returns, and then selected according to user, input recognition result is shown in input element.By it is above-mentioned can
Know, input method provided in an embodiment of the present invention solves in the prior art, when input method is only provided with local system
It can be carried out in webpage the problem of word input, change input method workflow of the prior art, reaching need not be
It is locally-downloaded and is carried out on the premise of input method is installed the beneficial effect of word or the input of other recognizable marks.Due to need not
It is being locally-downloaded and input method is installed, saving the storage resource of Internet resources and local, is improving Internet resources and sheet
The utilization rate of ground storage resource.In addition, by the embodiment of the present invention, the words library inquiry in input identification server can be utilized
It is corresponding with the input through keyboard sequence information of user's triggering to input recognition result, it is contemplated that the words base resource in server fills
Abundant, vocabulary is larger, and therefore, the character word stock vocabulary that the present invention can also solve local input method in the prior art is small, user
Sometimes the problem of vocabulary of needs can not be found.
Specifically, when current web page loads, the web page element in traversal current web page of the embodiment of the present invention, on recognizing
State in web page element when input element be present, the embodiment of the present invention intercepts the input focus in current web page, and injects newly-built
Script element.Inject after above-mentioned script element, the embodiment of the present invention continues to add the web page element of script element to current
The document element of webpage(Hereinafter referred to as document elements)In, the initialization of script element is carried out, for example, inputting boundary in user
Initialized and display field is initialized in inputting interface and according to user preferences to inputting interface in face of status bar
Color, style carry out personal settings.In the embodiment of the present invention, when intercepting user and will be inputted in current web page,
Newly-built script element can be injected in time, and personal settings are carried out to the inputting interface of current page according to user, carried
High Consumer's Experience.Intercept the input focus of input element in current web page and the script element to being injected into current web page is entered
After row initialization, the embodiment of the present invention continues executing with step S102, obtains the input through keyboard sequence information triggered by user.
Preferably, in the embodiment of the present invention, after traveling through current web page and intercepting the input focus of input element in current web page,
According to the input focus intercepted, the embodiment of the present invention intercepts the input frame of current web page, and it is above-mentioned intercept it is defeated
Enter the input through keyboard sequence information that inframe obtains user's triggering.
After step S102 is finished, step S104 as shown in Figure 1 is performed, the input through keyboard sequence got is believed
Breath inputs identification server corresponding to uploading to.Preferably, the embodiment of the present invention passes through AJAX(A kind of web development technologies name
Claim)Input through keyboard sequence information and prompting message are uploaded into input identification server, wherein, carried in prompting message pair
The conditional code that the processing mode of input through keyboard sequence information is prompted.Input identification server receives above-mentioned input through keyboard sequence
After column information, by inquiring about related words database lookup to input recognition result.Specifically, input identification server receives
To after above-mentioned input through keyboard sequence information and prompting message, if the input through keyboard sequence letter that input identification server receives
The sequence information for corresponding capitalization and/or numeral is ceased, then the conditional code in prompting message, input identification server pair
The input through keyboard sequence information received is directly changed, and input through keyboard sequence information is converted directly into corresponding capital letter
Female and/or numeral, if the input through keyboard sequence information that input identification server receives is the sequence that can correspond to word, root
According to the conditional code in prompting message, input identification server carries out indirect conversion to the input through keyboard sequence information received.This
In inventive embodiments, input identification server is by inquiring about input through keyboard sequence information that the conversion of related character word stock receives to right
The word answered.
From the above mentioned, input identification server is converted to the input through keyboard sequence information received pair according to prompting message
After the capitalization and/or numeral and/or corresponding word answered, the embodiment of the present invention continues executing with step S106 and step
S108, the input recognition result returned from input identification server is obtained, and knot is identified in the input that the loading of browser side returns
Fruit.Preferably, in the embodiment of the present invention, input recognition result is included according to input through keyboard sequence information and related character word stock
The word allotted, in addition to according to input through keyboard sequence information and that related character word stock obtains is related to the word matched
, other words for candidate.As described above, after the input recognition result that loading returns in browser side, step is performed
Rapid S110, according to selection of the user for input recognition result, the recognition result chosen is input in input element.
In language, many words spellings are close, and user is when input through keyboard is carried out, due to spelling error or right
The understanding mistake of words in itself may obtain nonideal input results, in the embodiment of the present invention, the key that is triggered according to user
The corresponding word and the candidate item related to the corresponding word that disk list entries information is matched are tied as input identification
Fruit, it is easy to user to obtain multiple input recognition results when inputting an input through keyboard sequence information as reference, it is accurate to obtain
Information is inputted, improves Consumer's Experience.In addition, the method provided in an embodiment of the present invention inputted in browser side is utilized and browsed
Device plug-in unit is realized, it is not necessary to which user downloads any input method, when using browser, needs to load the browser according to user and inserts
After part, user can input information at any time.
Embodiment one
Fig. 2 shows the flow chart of the method inputted in browser side in accordance with a preferred embodiment of the present invention,
For supporting any one above-mentioned method for being inputted in browser side.The above-mentioned method inputted in browser side is explained
State more clearly.
As shown in Fig. 2 this preferred embodiment originates in step S202, browser plug-in is opened, is traveled through when loading webpage
Current web page, and identify in the web page element of current web page whether be stored with input element.When recognizing in current web page element
When input element be present, step S204 is performed, obtains the input focus of input element in current web page, and obtains current web page
Input frame, to obtain the input through keyboard sequence information of user's triggering in the input frame.After getting above-mentioned input focus,
Step S206 is performed, injects newly-built script element to current web page, and carries out the initialization of script element, for example, in user
Inputting interface is initialized to status bar to be initialized in inputting interface to display field and according to user preferences to input
Color, the style at interface carry out personal settings.After script element initialization, circulation performs step S208 until in input frame
The middle input through keyboard sequence information for obtaining user's triggering.After getting input through keyboard sequence information, step S210 is performed, is passed through
Input through keyboard sequence information and prompting message are uploaded to input identification server by AJAX.Input identification server receives
After stating input through keyboard sequence information and prompting message, step S212 is performed, input identification knot is obtained according to related character word stock
Fruit simultaneously returns to browser.
Specifically, after input identification server receives above-mentioned input through keyboard sequence information and prompting message, if defeated
Enter to identify that the input through keyboard sequence information that server receives is the sequence information for corresponding to capitalization and/or numeral, then basis
Conditional code in prompting message, input identification server is directly changed to the input through keyboard sequence information received, by key
Disk list entries information is converted directly into corresponding capitalization and/or numeral, if the keyboard that input identification server receives
List entries information is that can correspond to the sequence of word, then the conditional code in prompting message, input identification server docking
The input through keyboard sequence information received carries out indirect conversion.In the embodiment of the present invention, input identification server is related by inquiring about
The character word stock input through keyboard sequence information that receives of conversion is to corresponding word.
From the above mentioned, input identification server is converted to the input through keyboard sequence information received pair according to prompting message
After the capitalization and/or numeral and/or corresponding word answered, the input identification knot that input identification server returns is received
Fruit, and input recognition result is shown in browser side, wherein, input recognition result include according to input through keyboard sequence information and
The word that related character word stock matches, in addition to according to input through keyboard sequence information and related character word stock obtain with matching
Word is related, other words for candidate.After above-mentioned input recognition result is shown in browser side, step is performed
S214, the input recognition result that user selects is input in input element, and be eventually displayed in browser input frame.
Based on the method inputted in browser side that each preferred embodiment provides above, based on same inventive concept,
The embodiments of the invention provide a kind of equipment inputted in browser side, above-mentioned inputted with realizing in browser side
Method.
Fig. 3 shows the structural representation of the equipment according to an embodiment of the invention inputted in browser side.
Referring to Fig. 3, the equipment inputted in browser side of the embodiment of the present invention comprises at least:Walker 310, focus blocker
320th, adder 330, information acquirer 340, information uploader 350, information loader 360 and result loader 370.
Now introduce each device or composition of the equipment inputted in browser side of the embodiment of the present invention function and
Annexation between each several part:
Walker 310, it is configured to, when current web page loads, travel through the web page element of current web page, and identifies webpage member
Whether input element is stored in element.
Focus blocker 320, it is configured to intercept the input focus of input element in current web page.
Adder 330, it is configured to, when walker 310 recognizes and input element be present in web page element, inject newly-built
Script element, and the web page element for adding script element obtains key into the document elements of current web page by script element
Disk list entries information.
Information acquirer 340, it is configured to obtain the input through keyboard sequence information triggered by user.
Information uploader 350, it is configured to input through keyboard sequence information uploading to corresponding input identification server.
Information acquirer 340 is additionally configured to, and obtains the input recognition result returned from input identification server.
Information loader 360, it is configured to the input recognition result returned in the loading of browser side.
As a result loader 370, it is configured to, according to selection of the user for input recognition result, the recognition result chosen be inputted
Into input element.
According to the embodiment of the present invention, after intercepting the input focus in webpage, the keyboard of user's triggering can be got
List entries information, the list entries information is uploaded to input identification server, and input identification clothes are shown in browser side
The input recognition result that business device returns, and then selected according to user, input recognition result is shown in input element.By it is above-mentioned can
Know, input method provided in an embodiment of the present invention solves in the prior art, when input method is only provided with local system
It can be carried out in webpage the problem of word input, change input method workflow of the prior art, reaching need not be
It is locally-downloaded and is carried out on the premise of input method is installed the beneficial effect of word or the input of other recognizable marks.Due to need not
It is being locally-downloaded and input method is installed, saving the storage resource of Internet resources and local, is improving Internet resources and sheet
The utilization rate of ground storage resource.In addition, by the embodiment of the present invention, the words library inquiry in input identification server can be utilized
It is corresponding with the input through keyboard sequence information of user's triggering to input recognition result, it is contemplated that the words base resource in server fills
Abundant, vocabulary is larger, and therefore, the character word stock vocabulary that the present invention can also solve local input method in the prior art is small, user
Sometimes the problem of vocabulary of needs can not be found.
Specifically, when webpage loads, the walker in the equipment that browser side is inputted 310 times as shown in Figure 3
Current web page is gone through, and identifies to whether there is in the web page element of current web page have input element.When recognizing above-mentioned web page element
In when input element be present, focus blocker 320 intercepts the input focus of input element in current web page, and obtains current web page
Input frame, so as to information acquirer 340 obtained in the input frame user triggering input through keyboard sequence information, and by with its
Newly-built script element is injected into current web page by the adder 330 of coupling.Inject after above-mentioned script element, adder 330
Continue the web page element of addition script element into the document elements of current web page, carry out the initialization of script element, example
Such as, status bar is initialized in user input interface and display field is initialized in inputting interface and liked according to user
Good color, style to inputting interface carries out personal settings., will be in current net intercepting user in the embodiment of the present invention
When page is inputted, newly-built script element can be injected in time, and the inputting interface of current page is carried out according to user
Personal settings, improve Consumer's Experience.After adder 330 initializes to script element, information acquirer 340, which obtains, to be used
The input through keyboard sequence information of family triggering, and uploaded to input through keyboard sequence information by coupled information uploader 350
Corresponding input identification server.Preferably, the embodiment of the present invention is disappeared input through keyboard sequence information and prompting by AJAX
Breath uploads to input identification server, wherein, the processing mode progress to input through keyboard sequence information is carried in prompting message
The conditional code of prompting.After input identification server receives above-mentioned input through keyboard sequence information, by inquiring about related words number
According to library lookup to input recognition result.
Specifically, after input identification server receives above-mentioned input through keyboard sequence information and prompting message, if defeated
Enter to identify that the input through keyboard sequence information that server receives is the sequence information for corresponding to capitalization and/or numeral, then basis
Conditional code in prompting message, input identification server is directly changed to the input through keyboard sequence information received, by key
Disk list entries information is converted directly into corresponding capitalization and/or numeral, if the keyboard that input identification server receives
List entries information is that can correspond to the sequence of word, then the conditional code in prompting message, input identification server docking
The input through keyboard sequence information received carries out indirect conversion.In the embodiment of the present invention, input identification server is related by inquiring about
The character word stock input through keyboard sequence information that receives of conversion is to corresponding word.
From the above mentioned, input identification server is converted to the input through keyboard sequence information received pair according to prompting message
After the capitalization and/or numeral and/or corresponding word answered, input identification server is received by information acquirer 340
The input recognition result of return.After information acquirer 340 gets the input recognition result that input identification server returns, lead to
Cross the input recognition result that information loader 360 returns in the loading of browser side.Preferably, in the embodiment of the present invention, input is known
Other result includes the word matched according to input through keyboard sequence information and related character word stock, in addition to according to input through keyboard sequence
Column information and other words related to the word matched, for candidate that related character word stock obtains.
As described above, information loader 360 is after the input recognition result that the loading of browser side returns, according to user
Selection, input element is input to by the result loader 370 in input equipment as shown in Figure 3 by the recognition result that user selects
In.In language, many words spellings are close, and user is when input through keyboard is carried out, due to spelling error or to words
The understanding mistake of itself may obtain nonideal input results, defeated according to the keyboard that user triggers in the embodiment of the present invention
Enter corresponding word and the candidate item related to corresponding word conduct input recognition result that sequence information is matched, just
Multiple input recognition results are obtained when user is inputting an input through keyboard sequence information as reference, obtain accurate input letter
Breath, improve Consumer's Experience.
According to the combination of any one above-mentioned preferred embodiment or multiple embodiments, the embodiment of the present invention can reach as follows
Beneficial effect:
According to the embodiment of the present invention, after intercepting the input focus in webpage, the keyboard of user's triggering can be got
List entries information, the list entries information is uploaded to input identification server, and input identification clothes are shown in browser side
The input recognition result that business device returns, and then selected according to user, input recognition result is shown in input element.By it is above-mentioned can
Know, input method provided in an embodiment of the present invention solves in the prior art, when input method is only provided with local system
It can be carried out in webpage the problem of word input, change input method workflow of the prior art, reaching need not be
It is locally-downloaded and is carried out on the premise of input method is installed the beneficial effect of word or the input of other recognizable marks.Due to need not
It is being locally-downloaded and input method is installed, saving the storage resource of Internet resources and local, is improving Internet resources and sheet
The utilization rate of ground storage resource.In addition, by the embodiment of the present invention, the words library inquiry in input identification server can be utilized
It is corresponding with the input through keyboard sequence information of user's triggering to input recognition result, it is contemplated that the words base resource in server fills
Abundant, vocabulary is larger, and therefore, the character word stock vocabulary that the present invention can also solve local input method in the prior art is small, user
Sometimes the problem of vocabulary of needs can not be found.
In the specification that this place provides, numerous specific details are set forth.It is to be appreciated, however, that the implementation of the present invention
Example can be put into practice in the case of these no details.In some instances, known method, structure is not been shown in detail
And technology, so as not to obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify the disclosure and help to understand one or more of each inventive aspect,
Above in the description to the exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes
In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:I.e. required guarantor
The application claims of shield features more more than the feature being expressly recited in each claim.It is more precisely, such as following
Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore,
Thus the claims for following embodiment are expressly incorporated in the embodiment, wherein each claim is in itself
Separate embodiments all as the present invention.
Those skilled in the art, which are appreciated that, to be carried out adaptively to the module in the equipment in embodiment
Change and they are arranged in one or more equipment different from the embodiment.Can be the module or list in embodiment
Member or component be combined into a module or unit or component, and can be divided into addition multiple submodule or subelement or
Sub-component.In addition at least some in such feature and/or process or unit exclude each other, it can use any
Combination is to this specification(Including adjoint claim, summary and accompanying drawing)Disclosed in all features and so disclosed appoint
Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification(Including adjoint power
Profit requirement, summary and accompanying drawing)Disclosed in each feature can be by providing the alternative features of identical, equivalent or similar purpose come generation
Replace.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments
In included some features rather than further feature, but the combination of the feature of different embodiments means in of the invention
Within the scope of and form different embodiments.For example, in detail in the claims, embodiment claimed it is one of any
Mode it can use in any combination.
The all parts embodiment of the present invention can be realized with hardware, or to be run on one or more processor
Software module realize, or realized with combinations thereof.It will be understood by those of skill in the art that it can use in practice
Microprocessor or digital signal processor(DSP)According to embodiments of the present invention set to realize what browser side was inputted
The some or all functions of some or all parts in standby.The present invention is also implemented as described here for performing
Method some or all equipment or program of device(For example, computer program and computer program product).This
The program of the realization present invention of sample can store on a computer-readable medium, or can have one or more signal
Form.Such signal can be downloaded from internet website and obtained, and either be provided or with any other on carrier signal
Form provides.
It should be noted that the present invention will be described rather than limits the invention for above-described embodiment, and ability
Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims,
Any reference symbol between bracket should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not
Element or step listed in the claims.Word "a" or "an" before element does not exclude the presence of multiple such
Element.The present invention can be by means of including the hardware of some different elements and being come by means of properly programmed computer real
It is existing.In if the unit claim of equipment for drying is listed, several in these devices can be by same hardware branch
To embody.The use of word first, second, and third does not indicate that any order.These words can be explained and run after fame
Claim.
So far, although those skilled in the art will appreciate that detailed herein have shown and described multiple showing for the present invention
Example property embodiment, still, still can be direct according to present disclosure without departing from the spirit and scope of the present invention
It is determined that or derive many other variations or modifications for meeting the principle of the invention.Therefore, the scope of the present invention is understood that and recognized
It is set to and covers other all these variations or modifications.
The embodiment of the invention also discloses a kind of methods inputted in browser side of A1., including:
The input focus of input element in current web page is intercepted, and obtains the input through keyboard sequence triggered by user and believes
Breath;
The input through keyboard sequence information is uploaded into corresponding input identification server;
Obtain the input recognition result returned from the input identification server;
The input recognition result of the return is loaded in browser side;
According to selection of the user for the input recognition result, the recognition result chosen is input to the input element
In.
A2. the method according to A1, wherein, intercept the input focus of input element in current web page, and obtain by
Before the input through keyboard sequence information that user is triggered, in addition to:
When the current web page loads, the web page element of the current web page is traveled through, when recognizing the web page element
In when the input element be present, inject newly-built script element;
The web page element of the script element is added into the file document elements of the current web page, by the pin
This element obtains the input through keyboard sequence information.
A3. the method according to A2, wherein, the web page element of the script element is added to the webpage
In document elements, including:The script element is initialized.
A4. the method according to A1 to any one of A3, wherein, the input for intercepting input element in current web page
Focus, and the input through keyboard sequence information triggered by user is obtained, including:
Intercept the input focus of input element in the current web page;
The input frame of the current web page is obtained according to the input focus intercepted;
The input through keyboard sequence information is obtained in the input frame.
A5. the method according to A1 to any one of A4, wherein, the input through keyboard sequence information is uploaded to corresponding
Input identification server, including:
The input through keyboard sequence information is uploaded to by the input identification server by AJAX, identified by the input
Server passes through query word database lookup to the input recognition result.
A6. the method according to A1 to any one of A5, wherein, the input through keyboard sequence information is uploaded to corresponding
Input identification server, including:
The input through keyboard sequence information and prompting message are uploaded to the input identification server, wherein, it is described
The conditional code prompted the processing mode of the input through keyboard sequence information is carried in prompting message.
A7. the method according to A6, wherein, the input through keyboard sequence information uploads to corresponding input identification service
Device, including:
When the input through keyboard sequence information is the sequence information of corresponding capitalization and/or numeral, upload carries
Prompting of the input identification server to the conditional code of the direct conversion process of input through keyboard sequence information progress is prompted to disappear
Breath, by the input identify server according to the conditional code input through keyboard sequence information is converted directly into corresponding to greatly
Write female and/or digital;
When the input through keyboard sequence information is that can correspond to the sequence of word, upload carries the prompting input and known
Other server carries out the prompting message of the conditional code of indirect conversion processing to the input through keyboard sequence information, is known by the input
Other server obtains the input recognition result according to the conditional code and the word database.
A8. the method according to A1 to any one of A7, wherein, the input recognition result includes:
The word gone out according to the input through keyboard sequence information and the related words database matching;
Obtained according to the input through keyboard sequence information and the related word database related to the word matched
, other words for candidate.
A9. the method according to A1 to any one of A8, wherein, methods described is realized using browser plug-in.
The embodiment of the invention also discloses a kind of equipment inputted in browser side of B10., including:
Focus blocker, it is configured to intercept the input focus of input element in current web page;
Information acquirer, it is configured to obtain the input through keyboard sequence information triggered by user;
Information uploader, it is configured to the input through keyboard sequence information uploading to corresponding input identification server;
Described information getter is additionally configured to, and obtains the input recognition result returned from the input identification server;
Information loader, it is configured to load the input recognition result of the return in browser side;
As a result loader, it is configured to according to selection of the user for the input recognition result, the recognition result chosen is defeated
Enter into the input element.
B11. the equipment according to B10, in addition to:
Walker, it is configured to, when the current web page loads, travel through the web page element of the current web page, and identify institute
State in web page element and whether store input element;
Adder, it is configured to when the walker recognizes and input element be present in the web page element, injection is newly-built
Script element, and add the web page element of the script element into the file document elements of the current web page, by
The script element obtains the input through keyboard sequence information.
B12. the equipment according to B11, wherein, the adder is additionally configured to:The script element is carried out initial
Change.
B13. the equipment according to B10 to any one of B12, wherein, the focus blocker is additionally configured to:
Intercept the input element in the current web page;
The input frame of the current web page is obtained, to obtain the input through keyboard sequence information in the input frame.
B14. the equipment according to B10 to any one of B13, wherein, described information uploader is additionally configured to:
The input through keyboard sequence information is uploaded to by corresponding input identification server by AJAX, known by the input
Other server is by inquiring about related words database lookup to the input recognition result.
B15. the equipment according to B10 to any one of B14, wherein, described information uploader is additionally configured to:
The input through keyboard sequence information and prompting message are uploaded to the input identification server, wherein, it is described
The conditional code that the processing mode of the input through keyboard sequence information is prompted is carried in prompting message.
B16. the equipment according to B15, wherein, described information uploader is by the input through keyboard sequence and described carries
Show that the concrete mode that message is uploaded to the input identification server is:
If the input through keyboard sequence information is corresponding capitalization and/or digital sequence, upload carries prompting
The input identification server carries out the prompting message of the conditional code of direct conversion process to the input through keyboard sequence information, by
The input through keyboard sequence information is converted directly into corresponding capital letter by the input identification server according to the conditional code
Female and/or numeral;
If the input through keyboard sequence information is when can correspond to the sequence of word, upload carries the prompting input and known
Other server carries out the prompting message of the conditional code of succinct conversion process, the input identification to the input through keyboard sequence information
Server obtains Text region result according to the conditional code and word database.
B17. the equipment according to B10 to any one of B16, wherein, the input recognition result includes:
The word gone out according to the input through keyboard sequence information and the related words database matching;
Obtained according to the input through keyboard sequence information and the related word database related to the word matched
, other words for candidate.
Claims (15)
1. a kind of method inputted in browser side, including:
The input focus of input element in current web page is intercepted, and obtains the input through keyboard sequence information triggered by user;
The input through keyboard sequence information is uploaded into corresponding input identification server;
Obtain the input recognition result returned from the input identification server;
The input recognition result of the return is loaded in browser side;
According to selection of the user for the input recognition result, the recognition result chosen is input in the input element;
Wherein, the input focus of input element in current web page is intercepted, and obtains the input through keyboard sequence triggered by user
Before information, in addition to:
When the current web page loads, the web page element of the current web page is traveled through, is deposited when recognizing in the web page element
In the input element, newly-built script element is injected in the current web page;
The web page element of the script element is added into the file document elements of the current web page, carries out the script
The initialization of element, the input through keyboard sequence information is obtained by the script element.
2. the method according to claim 11, wherein, the input focus for intercepting input element in current web page, and
The input through keyboard sequence information triggered by user is obtained, including:
Intercept the input focus of input element in the current web page;
The input frame of the current web page is obtained according to the input focus intercepted;
The input through keyboard sequence information is obtained in the input frame.
3. method according to claim 1 or 2, wherein, the input through keyboard sequence information is uploaded into corresponding input
Server is identified, including:
The input through keyboard sequence information is uploaded to by the input identification server by AJAX, by the input identification service
Device passes through query word database lookup to the input recognition result.
4. method according to claim 1 or 2, wherein, the input through keyboard sequence information is uploaded into corresponding input
Server is identified, including:
The input through keyboard sequence information and prompting message are uploaded to the input identification server, wherein, the prompting
The conditional code prompted the processing mode of the input through keyboard sequence information is carried in message.
5. according to the method for claim 4, wherein, the input through keyboard sequence information uploads to corresponding input identification clothes
Business device, including:
When the input through keyboard sequence information is the sequence information of corresponding capitalization and/or numeral, upload carries prompting
The input identification server carries out the prompting message of the conditional code of direct conversion process to the input through keyboard sequence information, by
The input through keyboard sequence information is converted directly into corresponding capital letter by the input identification server according to the conditional code
Female and/or numeral;
When the input through keyboard sequence information is that can correspond to the sequence of word, upload carries the prompting input identification clothes
Business device carries out the prompting message of the conditional code of indirect conversion processing to the input through keyboard sequence information, by the input identification clothes
Business device obtains the input recognition result according to the conditional code and word database.
6. method according to claim 1 or 2, wherein, the input recognition result includes:
The word gone out according to the input through keyboard sequence information and related words database matching;
According to the input through keyboard sequence information and that related word database obtains is related to the word matched, for waiting
Other words of choosing.
7. method according to claim 1 or 2, wherein, methods described is realized using browser plug-in.
8. a kind of equipment inputted in browser side, including:
Walker, it is configured to, when current web page loads, travel through the web page element of the current web page, and identifies the webpage member
Whether input element is stored in element;
Focus blocker, it is configured to intercept the input focus of input element in current web page;
Adder, it is configured to when the walker recognizes and input element be present in the web page element, in the current net
Newly-built script element is injected in page, and adds the web page element of the script element to the file of the current web page
In document elements, the initialization of the script element is carried out, input through keyboard sequence information is obtained by the script element;
Information acquirer, it is configured to obtain the input through keyboard sequence information triggered by user;
Information uploader, it is configured to the input through keyboard sequence information uploading to corresponding input identification server;
Described information getter is additionally configured to, and obtains the input recognition result returned from the input identification server;
Information loader, it is configured to load the input recognition result of the return in browser side;
As a result loader, it is configured to, according to selection of the user for the input recognition result, the recognition result chosen is input to
In the input element.
9. equipment according to claim 8, wherein, the focus blocker is additionally configured to:
Intercept the input element in the current web page;
The input frame of the current web page is obtained, to obtain the input through keyboard sequence information in the input frame.
10. equipment according to claim 8 or claim 9, wherein, described information uploader is additionally configured to:
The input through keyboard sequence information is uploaded to by corresponding input identification server by AJAX, taken by the input identification
Device be engaged in by inquiring about related words database lookup to the input recognition result.
11. equipment according to claim 8 or claim 9, wherein, described information uploader is additionally configured to:
The input through keyboard sequence information and prompting message are uploaded to the input identification server, wherein, the prompting
The conditional code that the processing mode of the input through keyboard sequence information is prompted is carried in message.
12. equipment according to claim 11, wherein, described information uploader is by the input through keyboard sequence and described
Prompting message is uploaded to the input and identifies that the concrete mode of server is:
If the input through keyboard sequence information is corresponding capitalization and/or digital sequence, upload is carried described in prompting
Input identification server carries out the prompting message of the conditional code of direct conversion process to the input through keyboard sequence information, by described
Input identification server the input through keyboard sequence information is converted directly into according to the conditional code corresponding to capitalization with/
Or numeral;
If the input through keyboard sequence information is when can correspond to the sequence of word, upload carries the prompting input identification clothes
Business device carries out the prompting message of the conditional code of succinct conversion process, the input identification service to the input through keyboard sequence information
Device obtains Text region result according to the conditional code and word database.
13. equipment according to claim 8 or claim 9, wherein, the input recognition result includes:
The word gone out according to the input through keyboard sequence information and related words database matching;
According to the input through keyboard sequence information and that related word database obtains is related to the word matched, for waiting
Other words of choosing.
14. a kind of electronic equipment, including:
Processor;And
It is arranged to store the memory of computer executable instructions, the executable instruction makes the processor when executed
Perform the method inputted in browser side described in any one according to claim 1-7.
15. a kind of computer-readable storage medium, wherein, the computer-readable recording medium storage one or more program is described
One or more programs are when the electronic equipment for being included multiple application programs performs so that the electronic equipment is performed according to power
Profit requires the method inputted in browser side described in any one of 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310575117.8A CN103631886B (en) | 2013-11-15 | 2013-11-15 | In the method and apparatus that browser side is inputted |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310575117.8A CN103631886B (en) | 2013-11-15 | 2013-11-15 | In the method and apparatus that browser side is inputted |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103631886A CN103631886A (en) | 2014-03-12 |
CN103631886B true CN103631886B (en) | 2018-03-09 |
Family
ID=50212928
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310575117.8A Active CN103631886B (en) | 2013-11-15 | 2013-11-15 | In the method and apparatus that browser side is inputted |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103631886B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109086096B (en) * | 2018-06-22 | 2022-09-20 | 北京明华联盟科技有限公司 | Data input method of Edge browser, electronic device and storage medium |
CN109543488B (en) * | 2018-11-28 | 2022-04-19 | 北京云纵信息技术有限公司 | Data processing method and device |
CN115499402A (en) * | 2022-08-23 | 2022-12-20 | 北京天空卫士网络安全技术有限公司 | Instant messaging information processing method, terminal and system |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101488154A (en) * | 2009-03-04 | 2009-07-22 | 西安双捷科技有限责任公司 | Words input implementing method used for web page |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101635002A (en) * | 2009-08-21 | 2010-01-27 | 深圳市五巨科技有限公司 | Music search method and music search device for mobile terminal |
CN102768681B (en) * | 2012-06-26 | 2014-10-22 | 北京奇虎科技有限公司 | Recommending system and method used for search input |
-
2013
- 2013-11-15 CN CN201310575117.8A patent/CN103631886B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101488154A (en) * | 2009-03-04 | 2009-07-22 | 西安双捷科技有限责任公司 | Words input implementing method used for web page |
Also Published As
Publication number | Publication date |
---|---|
CN103631886A (en) | 2014-03-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10007933B2 (en) | Systems and methods for integrating dynamic content into electronic media | |
CN105335404B (en) | Page info loading method and device | |
CN104536973B (en) | The method and browser client of picture recognition | |
US8429099B1 (en) | Dynamic gazetteers for entity recognition and fact association | |
US10089404B2 (en) | Site memory processing | |
US11423234B2 (en) | Content generation using target content derived modeling and unsupervised language modeling | |
JP6646931B2 (en) | Method and apparatus for providing recommendation information | |
US20170262868A1 (en) | Methods and systems for analyzing customer care data | |
CN111737559B (en) | Resource ordering method, method for training ordering model and corresponding device | |
US20180285331A1 (en) | Method, server, browser, and system for recommending text information | |
CN108959413B (en) | Topic webpage crawling method and topic crawler system | |
US9830304B1 (en) | Systems and methods for integrating dynamic content into electronic media | |
US20160259630A1 (en) | Systems, apparatus and methods for sharing visual model-based applications | |
CN108197244A (en) | It is a kind of to search for the method for pushing and device for recommending word | |
US20150348062A1 (en) | Crm contact to social network profile mapping | |
Heck et al. | Horizontal traceability for just‐in‐time requirements: the case for open source feature requests | |
CN103198091B (en) | The processing method of a kind of online data based on user behavior request and equipment | |
CN105868225A (en) | Data query method, client, server and system | |
CN103631886B (en) | In the method and apparatus that browser side is inputted | |
US10558631B2 (en) | Enhancing textual searches with executables | |
CN113656737B (en) | Webpage content display method and device, electronic equipment and storage medium | |
CN107391528A (en) | Front end assemblies Dependency Specification searching method and equipment | |
KR102532216B1 (en) | Method for establishing ESG database with structured ESG data using ESG auxiliary tool and ESG service providing system performing the same | |
CN106951429A (en) | Strengthen method, browser and the equipment of webpage comment display | |
CN104850608A (en) | Method for searching keywords on information exhibiting page |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20220725 Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015 Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd. Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park) Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd. Patentee before: Qizhi software (Beijing) Co.,Ltd. |