CN103473242B - A kind of handwriting input control method based on web page contents, system and browser - Google Patents

A kind of handwriting input control method based on web page contents, system and browser Download PDF

Info

Publication number
CN103473242B
CN103473242B CN201210188741.8A CN201210188741A CN103473242B CN 103473242 B CN103473242 B CN 103473242B CN 201210188741 A CN201210188741 A CN 201210188741A CN 103473242 B CN103473242 B CN 103473242B
Authority
CN
China
Prior art keywords
handwriting input
attribute
index value
command index
input event
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
CN201210188741.8A
Other languages
Chinese (zh)
Other versions
CN103473242A (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.)
Tencent Technology Shenzhen Co Ltd
Tencent Cloud Computing Beijing Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201210188741.8A priority Critical patent/CN103473242B/en
Publication of CN103473242A publication Critical patent/CN103473242A/en
Application granted granted Critical
Publication of CN103473242B publication Critical patent/CN103473242B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • User Interface Of Digital Computer (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present invention is applicable to field of computer technology, provide a kind of handwriting input control method based on web page contents, system and browser, the method comprises: the handwriting input event receiving input, obtain the command index value that handwriting input event is corresponding, according to the incidence relation of the command index value set up in advance and webpage html element element, element corresponding to described command index value is searched in the html tag that accessed webpage is corresponding, the attribute that described in the element that acquisition finds, handwriting input event is corresponding, button.onrelease corresponding to described property value is performed according to the property value of described attribute.Pass through the incidence relation of command index value and the webpage html element element set up in advance in the present invention, the attribute corresponding according to handwriting input event in webpage html element element, perform corresponding button.onrelease, overcome prior art cannot carry out the input of web page contents control command problem by handwriting input, further increase the availability of handwriting input.

Description

A kind of handwriting input control method based on web page contents, system and browser
Technical field
The invention belongs to field of computer technology, particularly relate to a kind of handwriting input control method based on web page contents, system and browser.
Background technology
Handwriting input, namely handwriting recognition refers to and the orderly trace information produced when writing on handwriting equipment is converted into the process of Hanzi internal code or control command, is that man-machine interaction is the most natural, one of the means of most convenient.
Therefore, handwriting input is mainly used in following two aspects: one is as input method, carries out the input of word or image; Two is the inputs as control command, namely by hand-written gesture input of control commands.The typical apply of the hand-written gesture input of control command is exactly the input of the general controls order that web page contents has nothing to do, such as, " mouse gestures " in browser gesture, when " mouse gestures " function is activated, by rolling mouse simply, control command can be sent to browser, perform the control operation that corresponding " advance ", " retrogressing ", " refreshing ", " closedown " etc. are irrelevant with web page contents, thus simplify the browser operation of user.Can find out, in prior art, the control command of handwriting input is only limitted to the general controls irrelevant with web page contents, the input of control command (interactive command) in web page contents cannot be carried out by handwriting input, such as, the control command corresponding for control command buttons such as " submissions ", " login " and " transmission " common in webpage then cannot be inputted by handwriting input mode, thus significantly limit the application of handwriting input, reduce the availability of handwriting input.
Summary of the invention
The object of the embodiment of the present invention is to provide a kind of control command hand-written inputting method and system, be intended to solve because prior art cannot provide a kind of effective control command handwriting input mode, cause the problem cannot being carried out the input of interactive command in web page contents by handwriting input.
The embodiment of the present invention is achieved in that a kind of control command hand-written inputting method, and described method comprises the steps:
Receive the handwriting input event of input, obtain the command index value that described handwriting input event is corresponding;
According to the incidence relation of the command index value set up in advance and webpage html element element, in the html tag that accessed webpage is corresponding, search element corresponding to described command index value;
The attribute that described in the element that acquisition finds, handwriting input event is corresponding, performs button.onrelease corresponding to described property value according to the property value of described attribute.
Another object of the embodiment of the present invention is to provide a kind of handwriting input control system based on web page contents, and it is characterized in that, described system comprises:
Index value acquiring unit, for receiving the handwriting input event of input, obtains the command index value that described handwriting input event is corresponding;
Element searches unit, for the incidence relation according to the command index value set up in advance and webpage html element element, searches element corresponding to described command index value in the html tag that accessed webpage is corresponding; And
Program execution unit, for obtaining the attribute that described in the element that finds, handwriting input event is corresponding, performs button.onrelease corresponding to described property value according to the property value of described attribute.
Another object of the embodiment of the present invention is also to provide a kind of browser comprising the above-mentioned handwriting input control system based on web page contents.
The embodiment of the present invention is according to the handwriting input event receiving input, obtain the command index value that handwriting input event is corresponding, according to the incidence relation of the command index value set up in advance and webpage html element element, element corresponding to described command index value is searched in the html tag that accessed webpage is corresponding, the attribute that described in the element that acquisition finds, handwriting input event is corresponding, finally perform button.onrelease corresponding to property value according to the property value of attribute, overcome prior art cannot carry out the input of web page contents interactive command problem by handwriting input, thus the input of interactive command in web page contents is achieved by handwriting input, further increase the availability of handwriting input.
Accompanying drawing explanation
Fig. 1 is the realization flow figure of the control command hand-written inputting method that the embodiment of the present invention one provides;
Fig. 2 a, Fig. 2 b and Fig. 2 c are the accessed webpage exemplary plot that the embodiment of the present invention one provides;
Fig. 3 is the realization flow figure of the control command hand-written inputting method that the embodiment of the present invention two provides;
Fig. 4 is the structural drawing of the handwriting input control system based on web page contents that the embodiment of the present invention three provides.
Fig. 5 is the structural drawing of the handwriting input control system based on web page contents that the embodiment of the present invention four provides.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
Below in conjunction with specific embodiment, specific implementation of the present invention is described in detail:
embodiment one:
Fig. 1 shows the realization flow of the control command hand-written inputting method that the embodiment of the present invention one provides, and details are as follows:
In step S101, receive the handwriting input event of input, obtain the command index value that handwriting input event is corresponding.
In embodiments of the present invention, when user and accessed webpage carry out mutual, handwriting input device by being connected with terminal device (such as computing machine, smart mobile phone, panel computer etc.) receives the handwriting input event of user, wherein, computing machine handwriting input device can be handwriting pad, computer mouse or other handwriting input device, handwriting input event can be figure input or the click action etc. of user, and the input of this figure can be curve, a circle etc.Therefore, with webpage carry out mutual before, need in advance for handwriting input event arranges corresponding command index value, be namely equivalent to for control command that the control command button in webpage is corresponding arranges the handwriting input event of correspondence.Webpage as shown in Fig. 2 a, Fig. 2 b and Fig. 2 c, comprising three mutual control command buttons: " broadcast ", " relay " and " comment ", therefore, if desired the input of " broadcast ", " relay " and " comment " control command is realized by handwriting input event, should in advance for the control command (control command that namely control command button is corresponding) in webpage defines handwriting input event, when described handwriting input event occurs, i.e. the input of trigging control order.
In step s 102, according to the incidence relation of the command index value set up in advance and webpage html element element, in the html tag that accessed webpage is corresponding, element corresponding to described command index value is searched.
In embodiments of the present invention, associating in advance by command index value and webpage HTML(Hypertext Markup Language) element, be the html element element setting command index value in webpage, thus conveniently in the html tag that accessed webpage is corresponding, search element corresponding to described command index value.In specific implementation process, command index value corresponding to handwriting input event can be identical with the id property value of command index corresponding element, thus identify control command corresponding to handwriting input event uniquely, facilitate searching of control command, interactive command as corresponding in " broadcast " control command button in Fig. 2 a.
In step s 103, the attribute that described in the element that acquisition finds, handwriting input event is corresponding, performs button.onrelease corresponding to described property value according to the property value of described attribute.
In embodiments of the present invention, when finding element corresponding to command index value, in this element, obtaining the attribute that handwriting input event is corresponding, performing button.onrelease corresponding to property value according to the property value of attribute.Wherein, button.onrelease can be VBScript program, java applet or any executable program or function, preferably, button.onrelease is JavaScript program, thus further increase the portability of the control command hand-written inputting method that the embodiment of the present invention proposes, improve the execution efficiency of handwriting input control command.
In embodiments of the present invention, the incidence relation of the command index value corresponding according to the handwriting input event set up in advance and webpage html element element, obtain the attribute of handwriting input event in accessed webpage html element element, perform the button.onrelease that the property value of this attribute is corresponding, achieve the handwriting input of the control command based on web page contents, thus the input of interactive command in web page contents is achieved by handwriting input, simplify the input process of control command in web page contents, improve the convenience of web page contents operation.
embodiment two:
Fig. 3 shows the realization flow of the control command hand-written inputting method that the embodiment of the present invention two provides, and details are as follows:
In step S301, be the html file type definition that accessed webpage is associated, described html file type definition comprises attribute corresponding to described handwriting input event and the definition of command index attribute.
In embodiments of the present invention, in order to realize the handwriting input of control command in webpage, need for being explained that webpage or user's accessed web page provide the html file type definition (DOCTYPE) of association, the rule that html file type definition is followed for the html file of informing browser and performing at present, thus realize the control command corresponding to hand-written incoming event and carry out correct explanation and perform.In embodiments of the present invention, html file type definition should comprise attribute definition corresponding to handwriting input event and the definition of command index attribute, thus makes browser can identify the attribute that handwriting input event is corresponding and command index attribute.
In step s 302, for html element element expands attribute corresponding to a hand-written incoming event and a command index attribute.
In embodiments of the present invention, when after the html file type definition be associated for accessed webpage, for the html element such as the control command button element providing handwriting input, should be attribute corresponding to these html element element expansions handwriting input event and a command index attribute, thus when user clicks/input certain html element element by handwriting input event, the property value of command index attribute corresponding according to handwriting input event and the property value of attribute, start the execution of button.onrelease, thus efficient control command input mode is set for particular webpage.
Exemplarily, can be that html tag input, div etc. increase attribute corresponding to attribute hwcmd(handwriting input event) and command index attribute corresponding to hwcmdindex(handwriting input event).Concrete example is as follows:
<inputtype=" button " class=" inputBtnsendBtn " value=" relay " title=" relay " onclick=' forwardweibo ' hwcmd=" forwardweibo " hwcmdindex=" 3 " >.
This example is that html tag input adds an attribute hwcmd, i.e. the attribute that handwriting input event is corresponding, and its value is: " forwardweibo ", an attribute hwcmdindex, i.e. the command index attribute that handwriting input event is corresponding, and its value is " 3 ".
In step S303, receive the handwriting input event of input, obtain the command index value that described handwriting input event is corresponding.
In step s 304, according to the incidence relation of the command index value set up in advance and webpage html element element, in the html tag that accessed webpage is corresponding, element corresponding to described command index value is searched.
In step S305, the attribute that described in the element that acquisition finds, handwriting input event is corresponding, performs button.onrelease corresponding to described property value according to the property value of described attribute.
In embodiments of the present invention, step 303 is identical to step 103 embodiment with the step 101 in embodiment one to step S305, does not repeat them here.
In embodiments of the present invention, for the html file type definition that accessed webpage is associated, and for providing the html element such as the control command button element of handwriting input, the attribute corresponding for html element element expansion handwriting input event and a command index attribute, thus when user clicks/input certain html element element by handwriting input event, the property value of command index attribute corresponding according to handwriting input event and the property value of attribute, start the execution of button.onrelease, thus efficient control command input mode is set for particular webpage, improve the convenience of web page contents operation.
One of ordinary skill in the art will appreciate that all or part of step realized in above-described embodiment method is that the hardware that can carry out instruction relevant by program has come, described program can be stored in a computer read/write memory medium, described storage medium, as ROM/RAM, disk, CD etc.
embodiment three:
Fig. 4 shows the structure of the handwriting input control system based on web page contents that the embodiment of the present invention three provides, for convenience of explanation, illustrate only the part relevant to the embodiment of the present invention, this system comprises index value acquiring unit 41, element searches unit 42 and program execution unit 43, wherein:
Index value acquiring unit 41 receives the handwriting input event of input, obtains the command index value that described handwriting input event is corresponding.
In embodiments of the present invention, when user is needed to carry out mutual with accessed webpage, handwriting input device by being connected with terminal device (such as computing machine, smart mobile phone, panel computer etc.) receives the handwriting input event of user, wherein, computing machine handwriting input device can be handwriting pad, computer mouse or other handwriting input device, handwriting input event can be figure or the click action of user, and the input of this figure can be curve, a circle etc.Therefore, carrying out alternately with webpage, need, in advance for handwriting input event arranges corresponding command index value, to be namely equivalent to for the control command button in webpage arranges corresponding handwriting input event.
Element searches the incidence relation of unit 42 according to the command index value set up in advance and webpage html element element, searches element corresponding to described command index value in the html tag that accessed webpage is corresponding.
In embodiments of the present invention, associating in advance by command index value and webpage HTML(Hypertext Markup Language) element, be the html element element setting command index value in webpage, thus conveniently in the html tag that accessed webpage is corresponding, search element corresponding to described command index value.In specific implementation process, command index value corresponding to handwriting input event can be identical with the id property value of command index corresponding element, thus identify control command corresponding to handwriting input event uniquely, facilitates searching of control command.
Program execution unit 43, for obtaining the attribute that described in the element that finds, handwriting input event is corresponding, performs button.onrelease corresponding to described property value according to the property value of described attribute.
In embodiments of the present invention, when finding element corresponding to command index value, in this element, obtaining the attribute that handwriting input event is corresponding, performing button.onrelease corresponding to property value according to the property value of attribute.Wherein, button.onrelease can be VBScript program, java applet or any executable program or function, preferably, button.onrelease is JavaScript program, thus further increase the portability of the control command hand-written inputting method that the embodiment of the present invention proposes, improve the execution time of handwriting input control command.
embodiment four:
Fig. 5 shows the structure of the handwriting input control system based on web page contents that the embodiment of the present invention four provides, for convenience of explanation, illustrate only the part relevant to the embodiment of the present invention, this system comprises that unit 51 is set up in definition, elements extend unit 52, index value acquiring unit 53, element search unit 54 and program execution unit 55, wherein:
It is the html file type definition that accessed webpage is associated that unit 51 is set up in definition, and described html file type definition comprises attribute corresponding to handwriting input event and the definition of command index attribute.
In embodiments of the present invention, in order to realize the handwriting input of control command in webpage, need for being explained that webpage or user's accessed web page provide the html file type definition of association, thus the realization control command corresponding to hand-written incoming event carries out correct explanation execution.In embodiments of the present invention, html file type definition should comprise attribute definition corresponding to handwriting input event and the definition of command index attribute.
Elements extend unit 52 is the attribute and a command index attribute that html element element expansion one hand-written incoming event is corresponding.
In embodiments of the present invention, when after the html file type definition be associated for accessed webpage, for the html element such as the control command button element providing handwriting input, should be attribute corresponding to these html element element expansions handwriting input event and a command index attribute, thus when user clicks/input certain html element element by handwriting input event, the property value of command index attribute corresponding according to handwriting input event and the property value of attribute, start the execution of button.onrelease, thus efficient control command input mode is set for particular webpage, the access improving webpage is experienced.
Index value acquiring unit 53 receives the handwriting input event of input, obtains the command index value that described handwriting input event is corresponding.
Element searches the incidence relation of unit 54 according to the command index value set up in advance and webpage html element element, searches element corresponding to described command index value in the html tag that accessed webpage is corresponding.
Program execution unit 55 obtains the attribute that described in the element that finds, handwriting input event is corresponding, performs button.onrelease corresponding to described property value according to the property value of described attribute.
In embodiments of the present invention, index value acquiring unit 53, element search unit 54 and program execution unit 55 searches unit 42 with the index value acquiring unit 41 in embodiment three, element and program execution unit 43 embodiment is identical, does not repeat them here.
embodiment five:
Embodiments provide a kind of browser, this browser comprises the handwriting input control system based on web page contents described in enforcement three or embodiment four, its embodiment and embodiment three, four identical, does not repeat them here.
In embodiments of the present invention, the incidence relation of the command index value corresponding according to the handwriting input event set up in advance and webpage html element element, obtain the attribute of handwriting input event in accessed webpage html element element, perform the button.onrelease that the property value of this attribute is corresponding, thus achieve the handwriting input of the control command based on web page contents, improve the range of application of handwriting input, the handwriting input enhancing webpage is experienced.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any amendments done within the spirit and principles in the present invention, equivalent replacement and improvement etc., all should be included within protection scope of the present invention.

Claims (11)

1. based on a handwriting input control method for web page contents, it is characterized in that, described method comprises the steps:
Receive the handwriting input event of input, obtain the command index value that described handwriting input event is corresponding;
According to the incidence relation of the command index value set up in advance and webpage html element element, in the html tag that accessed webpage is corresponding, search element corresponding to described command index value;
The attribute that described in the element that acquisition finds, handwriting input event is corresponding, performs button.onrelease corresponding to described property value according to the property value of described attribute.
2. the method for claim 1, is characterized in that, the described handwriting input event receiving input, and before obtaining the step of command index value corresponding to described handwriting input event, described method also comprises step:
The attribute corresponding for html element element expansion one hand-written incoming event and a command index attribute.
3. method as claimed in claim 2, it is characterized in that, described method also comprises step:
For the html file type definition that accessed webpage is associated, described html file type definition comprises attribute definition corresponding to described handwriting input event and the definition of command index attribute.
4. the method for claim 1, is characterized in that, described command index value is identical with the id property value of described command index value corresponding element.
5. the method for claim 1, is characterized in that, described button.onrelease is JavaScript program.
6. based on a handwriting input control system for web page contents, it is characterized in that, described system comprises:
Index value acquiring unit, for receiving the handwriting input event of input, obtains the command index value that described handwriting input event is corresponding;
Element searches unit, for the incidence relation according to the command index value set up in advance and webpage html element element, searches element corresponding to described command index value in the html tag that accessed webpage is corresponding; And
Program execution unit, for obtaining the attribute that described in the element that finds, handwriting input event is corresponding, performs button.onrelease corresponding to described property value according to the property value of described attribute.
7. system as claimed in claim 6, it is characterized in that, described system also comprises:
Elements extend unit, for expanding attribute corresponding to a hand-written incoming event and a command index attribute for html element element.
8. system as claimed in claim 7, it is characterized in that, described system also comprises:
Unit is set up in definition, and for the html file type definition be associated for accessed webpage, described html file type definition comprises attribute definition corresponding to handwriting input event and the definition of command index attribute.
9. system as claimed in claim 6, it is characterized in that, described command index value is identical with the id property value of described command index value corresponding element.
10. system as claimed in claim 6, it is characterized in that, described button.onrelease is JavaScript program.
11. 1 kinds of browsers, is characterized in that, described browser comprises the system described in any one of claim 6-10.
CN201210188741.8A 2012-06-08 2012-06-08 A kind of handwriting input control method based on web page contents, system and browser Active CN103473242B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210188741.8A CN103473242B (en) 2012-06-08 2012-06-08 A kind of handwriting input control method based on web page contents, system and browser

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210188741.8A CN103473242B (en) 2012-06-08 2012-06-08 A kind of handwriting input control method based on web page contents, system and browser

Publications (2)

Publication Number Publication Date
CN103473242A CN103473242A (en) 2013-12-25
CN103473242B true CN103473242B (en) 2016-03-02

Family

ID=49798098

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210188741.8A Active CN103473242B (en) 2012-06-08 2012-06-08 A kind of handwriting input control method based on web page contents, system and browser

Country Status (1)

Country Link
CN (1) CN103473242B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103713728B (en) * 2014-01-14 2016-09-21 东南大学 A kind of detection method of complication system man machine interface availability
CN104021185B (en) * 2014-06-11 2017-04-05 北京奇虎科技有限公司 The method and apparatus is identified by the information attribute of data in webpage
CN106610833B (en) * 2015-10-27 2020-02-04 北京国双科技有限公司 Method and device for triggering overlapped HTML element mouse event

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101681236A (en) * 2008-03-04 2010-03-24 苹果公司 Touch event processing for web pages

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102262471A (en) * 2010-05-31 2011-11-30 广东国笔科技股份有限公司 Touch intelligent induction system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101681236A (en) * 2008-03-04 2010-03-24 苹果公司 Touch event processing for web pages

Also Published As

Publication number Publication date
CN103473242A (en) 2013-12-25

Similar Documents

Publication Publication Date Title
US12182221B2 (en) Method and terminal device for extracting web page content
US11151313B2 (en) Personalization of content suggestions for document creation
EP3518124A1 (en) Webpage rendering method and related device
US20170255705A1 (en) Method and apparatus of browsing modeling
US8910074B2 (en) System and method for performing auto scroll
CN104281677A (en) Page displaying method and device
CN102917023A (en) Method and mobile terminal for accessing webpage based on two-dimension code
CN104331474A (en) Page processing method and device
CN104636434A (en) Search result processing method and device
US20140359413A1 (en) Apparatuses and methods for webpage content processing
WO2014052082A1 (en) Automatically creating tables of content for web pages
CN103902533A (en) Fast search method and device
CN102929846A (en) Method and device for processing long text
US11074037B2 (en) Voice broadcast method and apparatus
CN104346053A (en) Form processing method and terminal
CN103324674A (en) Method and device for selecting webpage content
US20230376194A1 (en) Interactive searching using gestures on any mobile search results page
WO2015043352A1 (en) Method and apparatus for selecting test nodes on webpages
CN103473242B (en) A kind of handwriting input control method based on web page contents, system and browser
CN104267867A (en) Content input method and device
CN104915435A (en) Data query method and device
US20140337709A1 (en) Method and apparatus for displaying web page
CN105573579A (en) Search bar operation method and terminal
CN104572997A (en) Content acquiring method and device and user device
KR20150093045A (en) Sketch Retrieval system, user equipment, service equipment and service method based on meteorological phenomena information and computer readable medium having computer program recorded therefor

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20190731

Address after: Shenzhen Futian District City, Guangdong province 518044 Zhenxing Road, SEG Science Park 2 East Room 403

Co-patentee after: Tencent cloud computing (Beijing) limited liability company

Patentee after: Tencent Technology (Shenzhen) Co., Ltd.

Address before: Shenzhen Futian District City, Guangdong province 518044 Zhenxing Road, SEG Science Park 2 East Room 403

Patentee before: Tencent Technology (Shenzhen) Co., Ltd.