CN103455405A - Method and system for preventing button from being clicked repeatedly and method and system for unlocking button - Google Patents

Method and system for preventing button from being clicked repeatedly and method and system for unlocking button Download PDF

Info

Publication number
CN103455405A
CN103455405A CN2012101826024A CN201210182602A CN103455405A CN 103455405 A CN103455405 A CN 103455405A CN 2012101826024 A CN2012101826024 A CN 2012101826024A CN 201210182602 A CN201210182602 A CN 201210182602A CN 103455405 A CN103455405 A CN 103455405A
Authority
CN
China
Prior art keywords
button
dynamic node
clicked
clicked button
repeated
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.)
Pending
Application number
CN2012101826024A
Other languages
Chinese (zh)
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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN2012101826024A priority Critical patent/CN103455405A/en
Publication of CN103455405A publication Critical patent/CN103455405A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The invention provides a method for preventing a button from being clicked repeatedly. The method includes monitoring a click operation to the button ; acquiring the size and position of the clicked button; generating dynamic nodes according to the size of the clicked button, and inserting the dynamic nodes into a current page through the position of the clicked button to cover the clicked button. The invention further provides a system for preventing the button from being clicked repeatedly and a method and system for unlocking the button. According to the method and system for preventing the button from being clicked repeatedly and the method and system for unlocking the button, using range is wide, occupation of system source can be reduced, and cost of development and maintenance can be reduced.

Description

Prevent that button is repeated method and system, button unlock method and the system clicked
Technical field
The application relates to the microcomputer data processing field, particularly relates to a kind ofly preventing that button is repeated method and system, button unlock method and the system of clicking.
Background technology
In the Web application, have many buttons (comprising link) to click and need to carry out (for example submission of sheet) alternately with server end later the user, this needs the regular hour to process alternately, and in the meantime, desired user is not clicked this button again.For example,, on the net in shopping process, after user clicks table is shown the button of submitting order to, server end need to be processed this order, in processing procedure, if the user clicks repeatedly, likely occur that order repeats to submit to, the situation of amount of money double counting, may cause processing and make mistakes., after this class button is clicked, need to be locked it for this reason, avoid repeatedly submitting to and cause processing mistake.
At present button is prevented repeating to click in the web application of processing, has mainly adopted following two kinds of implementations:
For the button of form types, using the HTML(HTML (Hypertext Markup Language), Hypertext Markup Language) Original property of element realizes.Be specially: by the click event of control button, when event is triggered, for this button element adds the disabled attribute, mean that button element is used, click in failure state for other.The core means of this kind of method are for element adds the disabled attribute, so its application can only be confined to the processing for the form types button, because only have Form Element to support the disabled attribute in HTML.In addition, because can carrying out extra pattern to the element with the disabled attribute voluntarily, plays up by browser, so, when the button of this class form types is added the disabled attribute, the original outward appearance of button may be destroyed, and the current page pattern is changed.
For the button of non-form types, the device that is similar to counter by interpolation is realized.Be specially: the click event of control button, the count initialized device, when event is triggered, change the initial value of counter.If after this user clicks this button again, first judge whether the value of counter equals initial value, if do not wait, be not for further processing.In this kind of method, because need to do in the inside of event handling function, interrupt to process or remove event handling, if button monitored a plurality of events, need in locking press button, to these events, remove one by one so; If button meets clicked condition again, need to again bind all events in unlock button, so this complex disposal process, can take too much system resource, and development and maintenance cost is high.
Summary of the invention
The application provides a kind of and prevents that button is repeated method and system, button unlock method and the system of clicking, and can solve that the button locking usable range is limited, the high problem of cost of excessive occupied system resources, exploitation and maintenance.
In order to address the above problem, the application discloses and has a kind ofly prevented that button is repeated the method for clicking, and comprises the following steps:
The operation that control button is clicked;
Obtain size and the position of clicked button;
Generate dynamic node according to the size of described clicked button, and according to the position of described clicked button, described dynamic node is inserted to current page, to cover described clicked button.
Further, described size and the position that obtains clicked button comprises:
Obtain width value and the height value of clicked button, to determine the size of described clicked button;
Obtain horizontal direction coordinate figure and the vertical direction coordinate figure of clicked button, to determine the position of described clicked button in current page.
Further, described size and the position that obtains clicked button comprises:
From offering the clientWidth attribute, clientHeight attribute, offsetLeft attribute, offsetTop attribute of DOM element object, browser gets respectively width value, height value, horizontal direction coordinate figure and the vertical direction coordinate figure of described clicked button.
Further, the described generation of the size according to described clicked button dynamic node comprises:
Call the createElement method and generate dynamic node from the document object of browser;
Width and the height of described dynamic node are set according to the size of described clicked button.
Further, the described size according to described clicked button arranges the width of described dynamic node and highly comprises:
By the width of dynamic node be set to highly respectively with the width of clicked button and highly equate.
Further, current page is inserted by described dynamic node in the described position according to described clicked button, to cover described clicked button, comprises:
The horizontal direction coordinate figure of described clicked button and vertical direction coordinate figure are set to the position of described dynamic node;
Call and insert the node element method, described dynamic node is placed in current page.
Further, at control button, before clicked operation, also comprise:
Obtain the described button of monitoring that needs.
Further, the described button that obtains described needs monitoring comprises:
Obtain the described nodal community that needs the button of monitoring;
Call corresponding nodal operation method according to described nodal community and get corresponding button.
Further, after dynamic node creation or when generating, also comprise:
Generate the unique identifier of described dynamic node.
Further, described method also comprises:
Set up the mapping relations table of described dynamic node and unique identifier.
In order to address the above problem, disclosed herein as well is a kind of button unlock method, comprise the following steps:
Obtain dynamic node corresponding to described clicked button;
Delete described dynamic node.
Further, described dynamic node corresponding to described clicked button that obtain comprises:
Trigger and obtain dynamic node corresponding to described clicked button during instruction that issued transaction corresponding to clicked button that corresponding issued transaction flow process finishes or server end sends at the described clicked button of monitoring service device end completes.
In order to address the above problem, disclosed herein as well is a kind of button unlock method, it is characterized in that, comprise the following steps:
Obtain the unique identifier of the dynamic node that described clicked button is corresponding;
Search dynamic node corresponding to described clicked button according to described unique identifier;
Delete described dynamic node.
In order to address the above problem, disclosed herein as well is and a kind ofly prevent that button is repeated the system of clicking, it is characterized in that, comprising:
Monitor module, the clicked operation for control button;
The acquisition of information module, for size and the position that obtains clicked button;
The dynamic node creation module, generate dynamic node for the size according to described clicked button, and according to the position of described clicked button, described dynamic node is inserted to current page, to cover described clicked button.
Further, described acquisition of information module comprises:
The size information acquiring unit, for width value and the height value that obtains clicked button, to determine the size of described clicked button; With
The position acquisition unit, for horizontal direction coordinate figure and the vertical direction coordinate figure that obtains clicked button, to determine the position of described clicked button in current page.
Further, described dynamic node creation module comprises:
Width and height setting unit, call the createElement method for the document object from browser and generate dynamic node, and width and the height of described dynamic node are set according to the size of described clicked button.
Further, described system also comprises:
The unique identifier generation module, for after dynamic node creation or generate the unique identifier of described dynamic node when generating.
Further, described system also comprises:
Mapping table is set up module, for setting up the mapping relations table of described dynamic node and unique identifier.
In order to address the above problem, disclosed herein as well is a kind of button system for unlocking, it is characterized in that, comprising:
The dynamic node acquisition module, for obtaining dynamic node corresponding to described clicked button;
Removing module, for deleting described dynamic node.
In order to address the above problem, disclosed herein as well is a kind of button system for unlocking, it is characterized in that, comprising:
The unique identifier acquisition module, for obtaining the unique identifier of the dynamic node that described clicked button is corresponding;
Search module, for search dynamic node corresponding to described clicked button according to described unique identifier;
Removing module, for deleting described dynamic node.
Compared with prior art, the application comprises following advantage:
The application's the method and system that button is repeated to click that prevent cover the method for original clicked button by the employing dynamic node, after the user has clicked button, just can automatically generate dynamic node covers on it, follow-up while clicking again, what in fact click is dynamic node, thereby realized that button is locked, avoided button to be repeated to click.The generation of dynamic node is a relatively independent process, not associated with type of button, so usable range can not receive limitation because of type of button, has the larger scope of application.In addition, because the process of locking is comparatively simple, does not need in system to carry out correlation computations by devices such as counters, thereby can reduce taking system resource.Simultaneously, because operating process is simple, only needing to generate a dynamic node can realize, therefore can reduce greatly development and maintenance cost.
Preferably, dynamic node is set to transparent, is also that changing can't appear in the outward appearance of whole current page, thereby can guarantees the integrality of current page outward appearance.
In addition, the application's button unlock method can be directly realizes by finding the method that then dynamic node that button is corresponding delete, and process is simple, and is difficult for makeing mistakes.
Preferably, can also, by after dynamic node creation or generate and to generate a unique identifier and identify this dynamic node simultaneously, when the needs release, can directly by this unique identifier, find dynamic node, thereby can realize fast release, improve system response time.
Certainly, arbitrary product of enforcement the application not necessarily needs to reach above-described all advantages simultaneously.
The accompanying drawing explanation
Fig. 1 is that the application's the button that prevents is repeated the process flow diagram of the embodiment of the method one of click;
Fig. 2 is that the application's the button that prevents is repeated the process flow diagram of the embodiment of the method two of click;
Fig. 3 is the process flow diagram of the application's button unlock method embodiment mono-;
Fig. 4 is the process flow diagram of the application's button unlock method embodiment bis-;
Fig. 5 is that the application's the button that prevents is repeated click and button release example flow chart;
Fig. 6 is that the application's the button that prevents is repeated the structural representation of the system embodiment one of click;
Fig. 7 is that the application's the button that prevents is repeated the structural representation of the system embodiment two of click;
Fig. 8 is the structural representation of the application's button system for unlocking embodiment mono-;
Fig. 9 is the structural representation of the application's button system for unlocking embodiment bis-.
Embodiment
For above-mentioned purpose, the feature and advantage that make the application can become apparent more, below in conjunction with the drawings and specific embodiments, the application is described in further detail.
With reference to Fig. 1, a kind of of the application is shown and prevents that button is repeated the embodiment of the method one of clicking, and comprises the following steps:
Step 101, the operation that control button is clicked.
Wherein, can call the addEventListener method that browser provides by JavaScript.For example, Firefox, Chrome etc. follows the standard browser in the W3C standard, event model defined, or click (click) event of attachEvent method (IE browser) control button, thereby realizes the monitoring of the operation that button is clicked.
Step 102, the size and the position that obtain clicked button.
The size and the position that obtain clicked button comprise:
Obtain width value and the height value of clicked button, to determine the size of described clicked button;
Obtain horizontal direction coordinate figure and the vertical direction coordinate figure of clicked button, to determine the position of described clicked button in current page.
Concrete, can from browser offers the clientWidth attribute, clientHeight attribute, offsetLeft attribute, offsetTop attribute of DOM element object, get respectively width value, height value, horizontal direction coordinate figure, the vertical direction coordinate figure of this button, thereby calculate the size of this button and the position in current page.
Be appreciated that the rectangle that is shaped as of default button in the application, while therefore obtaining its size and position, specifically obtain be highly, width and horizontal direction coordinate figure and vertical direction coordinate figure.If during actual treatment, button has other shapes, according to its concrete shape, obtain its corresponding size and position.For example, if button is circular, can obtain respectively its size and position by obtaining its radius size and central coordinate of circle.
Step 103, generate dynamic node according to the size of described clicked button, and according to the position of described clicked button, described dynamic node is inserted to current page, to cover described clicked button.
According to size and the position generation dynamic node of described clicked button, comprise:
Use JavaScript to call the createElement method from the document object of browser and generate dynamic node;
Width and the height of described dynamic node are set according to the size of described clicked button.
Concrete, the width of dynamic node and highly can setting according to actual conditions, as long as can cover clicked button.The width of dynamic node and highly can be respectively with the width of clicked button with highly equate, also can be slightly larger than or be slightly less than the size of clicked button.Concrete.For example, can on the basis of the width of clicked button and/or height, increase or reduce 1% or other do not affect the numerical value of covering, the application does not limit this.Certainly, in order to reduce the processing complexity, preferably, the width of dynamic node and highly can be respectively with the width of clicked button with highly equate.
Described dynamic node is inserted to the position of the clicked button of current page, comprises to cover described clicked button:
The horizontal direction coordinate figure of described clicked button and vertical direction coordinate figure are set to the position of described dynamic node;
Call and insert the node element method, described dynamic node is placed in current page.
Preferably, affect the outward appearance of current page for fear of dynamic node, preferably, can also comprise the following steps:
The transparency of described dynamic node is set to transparent.Concrete directly transparency is set to 100, also can transparency be set to high value, as long as can realize transparent effect.
Wherein, the size and location of dynamic node are by the css(Cascading Style Sheet, Cascading Style Sheet) arrange, its transparency also can arrange by css, the concrete opacity attribute that its css can be set is 0, thereby make dynamic node fully transparent, invisible in current page.
Cover the method for original clicked button by aforesaid employing dynamic node, after the user has clicked button, just can automatically generate dynamic node and cover on it, follow-up while clicking again, what in fact click is dynamic node, thereby has realized that button is locked, has avoided button to be repeated to click.The generation of dynamic node is a relatively independent process, not associated with type of button, so usable range can not receive limitation because of type of button, has the larger scope of application.In addition, because the process of locking is comparatively simple, do not need in system to carry out correlation computations by devices such as counters, thereby can reduce the taking of system resource, avoid makeing mistakes.Simultaneously, because operating process is simple, only needing to generate a dynamic node can realize, therefore can reduce greatly development and maintenance cost.
Preferably, dynamic node is set to transparent, is also that changing can't appear in the outward appearance of whole current page, thereby can guarantees the integrality of current page outward appearance.
Be appreciated that the operation clicked for the control button in abovementioned steps 101, can be directly monitored previously selected button.Button that also can Real-time Obtaining need to be monitored when actual treatment.Can also comprise so following steps before step 101:
Obtain and need the button of monitoring.
Can be by obtaining the nodal community of the described button of need monitoring, and call corresponding nodal operation method according to described nodal community and get corresponding button.
Concrete, can from the DOM structure, check and the nodal community (type) of button include but not limited to id, class, tagName and type etc.Call corresponding nodal operation method according to described nodal community and obtain this button from the document object of browser.
Use JavaScript to call the interdependent node method of operating from the document object of browser.The method that may use as: getElementById---according to the id attribute of node obtain button, getElementsByTagName---according to the tagName attribute of identification nodes type obtain button, querySelector---obtains button according to the combinations of attributes values such as id, class of node, depending on the different and difference to some extent of the nodal community that is operated button.
With reference to Fig. 2, the button that prevents that the application is shown is repeated the embodiment of the method two of clicking, and preferably, after the dynamic node creation of embodiment mono-or when generating, can also comprise:
Step 201, generate the unique identifier of described dynamic node.
The unique identifier of dynamic node can be the ID of described dynamic node, specifically can generate according to timestamp.Be appreciated that and can also generate according to other modes the unique identifier of dynamic node, as long as can this dynamic node of unique identification.
After generating the unique identifier of dynamic node, can be by dynamic node and unique identifier association, and stored, for follow-up use.For example, the rise time stamp, as unique ID of dynamic node, is recorded in storer, and storer can be a Hash table (Hash Table) that uses the JavaScript structure, and it has recorded the ID of dynamic node and the unique mapping relations between dynamic node.
With reference to Fig. 3, the button that prevents that is directed to the application is repeated the embodiment of the method one of clicking, and the application's button unlock method embodiment mono-is shown, and comprises the following steps:
Step 301, obtain dynamic node corresponding to described clicked button.
Obtain the instruction that issued transaction corresponding to clicked button that the issued transaction flow process finishes or server end sends that dynamic node can be corresponding by the described clicked button of monitoring service device end completes, then trigger the operation of obtaining dynamic node.
Concrete, can set up in advance the mapping relations table between clicked button and corresponding dynamic node, when listening to the instruction that issued transaction flow process corresponding to the described clicked button of server end finishes or server end sends issued transaction corresponding to clicked button complete, just by the mapping relations table, search corresponding dynamic node.
Step 302, delete described dynamic node.
Concrete, can delete this dynamic node by using JavaScript to call the removeChild method.
With reference to Fig. 4, the button that prevents that is directed to the application is repeated the embodiment of the method two of clicking, and the application's button unlock method embodiment mono-is shown, and comprises the following steps:
Step 401, obtain the unique identifier of the dynamic node that described clicked button is corresponding.
Obtain the instruction that issued transaction corresponding to clicked button that the issued transaction flow process finishes or server end sends that unique identifier can be corresponding by the described clicked button of monitoring service device end completes, then trigger the operation of obtaining unique identifier.
For example, the issued transaction corresponding when clicked button completes, or after server end sent the instruction that this issued transaction completes, the unique identifier of just can Real-time Obtaining described clicked button corresponding dynamic node, thus carry out subsequent operation.
Step 402, search dynamic node corresponding to described clicked button according to described unique identifier.
According to the mapping relations of unique identifier and dynamic node, after getting unique identifier, just can find corresponding dynamic node.
Step 403, delete described dynamic node.
Cover the dynamic node on clicked button by deletion, realize the release of clicked button, make this button can be restored to the state that can click.
Concrete, can delete this dynamic node by using JavaScript to call the removeChild method.
The application's button unlock method can be directly realizes by finding the method that then dynamic node that button is corresponding delete, and process is comparatively simple, and is difficult for makeing mistakes.
In addition, by after dynamic node creation or generate and to generate a unique identifier and identify this dynamic node simultaneously, when the needs release, can directly by this unique identifier, find dynamic node, thereby can realize fast release, improve system response time.
With reference to Fig. 5, the example flow chart of the complete process of the application's previous embodiment is shown.Locking and releasing process have been comprised.In this example, when generating dynamic node, system is understood automatic unique ID that according to timestamp, generate this dynamic node as unique identifier, and dynamic node and ID are deposited in storer, thereby searches node while being convenient to follow-up release.Detailed process and previous embodiment are similar, do not repeat them here.
With reference to Fig. 6, the button that prevents that the application is shown is repeated the system embodiment one of clicking, and comprises and monitors module 10, acquisition of information module 20 and dynamic node creation module 30.
Monitor module 10, the clicked operation for control button.
Acquisition of information module 20, for size and the position that obtains clicked button.Preferably, the acquisition of information module comprises size information acquiring unit and position acquisition unit.The size information acquiring unit, for width value and the height value that obtains clicked button, to determine the size of described clicked button.The position acquisition unit, for horizontal direction coordinate figure and the vertical direction coordinate figure that obtains clicked button, to determine the position of described clicked button in current page.
Dynamic node creation module 30, generate dynamic node for the size according to described clicked button, and according to the position of described clicked button, described dynamic node is inserted to current page, to cover described clicked button.Preferably, the dynamic node creation module comprises width and height setting unit, call the createElement method for the document object from browser and generate dynamic node, and width and the height of described dynamic node are set according to the size of described clicked button.
With reference to Fig. 7, the button that prevents that the application is shown is repeated the system embodiment two of clicking, and this system also comprises unique identifier generation module 50, for dynamic node creation after or generate the unique identifier of described dynamic node in generation.Preferably, this system also comprises that mapping table sets up module, for setting up the mapping relations table of described dynamic node and unique identifier.
With reference to Fig. 8, the application's button system for unlocking embodiment mono-is shown, comprise dynamic node acquisition module 71 and removing module 73.
Dynamic node acquisition module 71, for obtaining dynamic node corresponding to described clicked button.
Removing module 73, for deleting described dynamic node.
With reference to Fig. 9, the application's button system for unlocking embodiment bis-is shown, comprise unique identifier acquisition module 81, search module 83 and removing module 85.
Unique identifier acquisition module 81, for obtaining the unique identifier of the dynamic node that described clicked button is corresponding.
Search module 83, for search dynamic node corresponding to described clicked button according to described unique identifier.
Removing module 85, for deleting described dynamic node.
Each embodiment in this instructions all adopts the mode of going forward one by one to describe, and what each embodiment stressed is and the difference of other embodiment that between each embodiment, identical similar part is mutually referring to getting final product.For system embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, relevant part gets final product referring to the part explanation of embodiment of the method.
The above method and system that button is repeated to click that prevent that the application is provided are described in detail, applied specific case herein the application's principle and embodiment are set forth, the explanation of above embodiment is just for helping to understand the application's method and core concept thereof; Simultaneously, for one of ordinary skill in the art, the thought according to the application, all will change in specific embodiments and applications, and in sum, this description should not be construed as the restriction to the application.

Claims (20)

1. one kind prevents that button is repeated the method for clicking, and it is characterized in that, comprises the following steps:
The operation that control button is clicked;
Obtain size and the position of clicked button;
Generate dynamic node according to the size of described clicked button, and according to the position of described clicked button, described dynamic node is inserted to current page, to cover described clicked button.
2. as claimed in claim 1ly prevent that button is repeated the method for clicking, it is characterized in that, described size and the position that obtains clicked button comprises:
Obtain width value and the height value of clicked button, to determine the size of described clicked button;
Obtain horizontal direction coordinate figure and the vertical direction coordinate figure of clicked button, to determine the position of described clicked button in current page.
3. as claimed in claim 2ly prevent that button is repeated the method for clicking, it is characterized in that, described size and the position that obtains clicked button comprises:
From offering the clientWidth attribute, clientHeight attribute, offsetLeft attribute, offsetTop attribute of DOM element object, browser gets respectively width value, height value, horizontal direction coordinate figure and the vertical direction coordinate figure of described clicked button.
4. as claimed in claim 1ly prevent that button is repeated the method for clicking, it is characterized in that, the described size according to described clicked button generates dynamic node and comprises:
Call the createElement method and generate dynamic node from the document object of browser;
Width and the height of described dynamic node are set according to the size of described clicked button.
5. as claimed in claim 4ly prevent that button is repeated the method for clicking, it is characterized in that, the described size according to described clicked button arranges the width of described dynamic node and highly comprises:
By the width of dynamic node be set to highly respectively with the width of clicked button and highly equate.
6. as claimed in claim 1ly prevent that button is repeated the method for clicking, it is characterized in that, current page is inserted by described dynamic node in the described position according to described clicked button, to cover described clicked button, comprises:
The horizontal direction coordinate figure of described clicked button and vertical direction coordinate figure are set to the position of described dynamic node;
Call and insert the node element method, described dynamic node is placed in current page.
7. as claimed in claim 1ly prevent that button is repeated the method for clicking, it is characterized in that, also comprise before clicked operation at control button:
Obtain the described button of monitoring that needs.
8. as claimed in claim 7ly prevent that button is repeated the method for clicking, it is characterized in that, describedly obtain the described button of monitoring that needs and comprise:
Obtain the described nodal community that needs the button of monitoring;
Call corresponding nodal operation method according to described nodal community and get corresponding button.
9. as describedly as claim 1 to 8 any one prevent that button is repeated the method for clicking, it is characterized in that, also comprise dynamic node creation after or in generation:
Generate the unique identifier of described dynamic node.
10. as claimed in claim 9ly prevent that button is repeated the method for clicking, it is characterized in that, described method also comprises:
Set up the mapping relations table of described dynamic node and unique identifier.
11. a button unlock method, is characterized in that, comprises the following steps:
Obtain dynamic node corresponding to described clicked button;
Delete described dynamic node.
12. button unlock method as claimed in claim 11, is characterized in that, described dynamic node corresponding to described clicked button that obtain comprises:
Trigger and obtain dynamic node corresponding to described clicked button during instruction that issued transaction corresponding to clicked button that corresponding issued transaction flow process finishes or server end sends at the described clicked button of monitoring service device end completes.
13. a button unlock method, is characterized in that, comprises the following steps:
Obtain the unique identifier of the dynamic node that described clicked button is corresponding;
Search dynamic node corresponding to described clicked button according to described unique identifier;
Delete described dynamic node.
14. one kind prevents that button is repeated the system of clicking, and it is characterized in that, comprising:
Monitor module, the clicked operation for control button;
The acquisition of information module, for size and the position that obtains clicked button;
The dynamic node creation module, generate dynamic node for the size according to described clicked button, and according to the position of described clicked button, described dynamic node is inserted to current page, to cover described clicked button.
15. prevent that as claimed in claim 14 button is repeated the system of clicking, it is characterized in that, described acquisition of information module comprises:
The size information acquiring unit, for width value and the height value that obtains clicked button, to determine the size of described clicked button; With
The position acquisition unit, for horizontal direction coordinate figure and the vertical direction coordinate figure that obtains clicked button, to determine the position of described clicked button in current page.
16. prevent that as claimed in claim 14 button is repeated the system of clicking, it is characterized in that, described dynamic node creation module comprises:
Width and height setting unit, call the createElement method for the document object from browser and generate dynamic node, and width and the height of described dynamic node are set according to the size of described clicked button.
17. prevent that as described as claim 14 to 16 any one button is repeated the system of clicking, it is characterized in that, described system also comprises:
The unique identifier generation module, for after dynamic node creation or generate the unique identifier of described dynamic node when generating.
18. prevent that as claimed in claim 17 button is repeated the system of clicking, it is characterized in that, described system also comprises:
Mapping table is set up module, for setting up the mapping relations table of described dynamic node and unique identifier.
19. a button system for unlocking, is characterized in that, comprising:
The dynamic node acquisition module, for obtaining dynamic node corresponding to described clicked button;
Removing module, for deleting described dynamic node.
20. a button system for unlocking, is characterized in that, comprising:
The unique identifier acquisition module, for obtaining the unique identifier of the dynamic node that described clicked button is corresponding;
Search module, for search dynamic node corresponding to described clicked button according to described unique identifier;
Removing module, for deleting described dynamic node.
CN2012101826024A 2012-06-04 2012-06-04 Method and system for preventing button from being clicked repeatedly and method and system for unlocking button Pending CN103455405A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012101826024A CN103455405A (en) 2012-06-04 2012-06-04 Method and system for preventing button from being clicked repeatedly and method and system for unlocking button

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012101826024A CN103455405A (en) 2012-06-04 2012-06-04 Method and system for preventing button from being clicked repeatedly and method and system for unlocking button

Publications (1)

Publication Number Publication Date
CN103455405A true CN103455405A (en) 2013-12-18

Family

ID=49737805

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012101826024A Pending CN103455405A (en) 2012-06-04 2012-06-04 Method and system for preventing button from being clicked repeatedly and method and system for unlocking button

Country Status (1)

Country Link
CN (1) CN103455405A (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104298510A (en) * 2014-09-30 2015-01-21 珠海市君天电子科技有限公司 Animation method and device for realizing control button locking
CN105373548A (en) * 2014-08-25 2016-03-02 腾讯科技(深圳)有限公司 Mobile device and event self-definition method for browser of mobile device
CN106020704A (en) * 2016-05-30 2016-10-12 乐视控股(北京)有限公司 Virtual key triggering method and mobile terminal thereof
CN106055253A (en) * 2016-05-30 2016-10-26 乐视控股(北京)有限公司 Virtual key triggering method and mobile terminal employing same
CN106126061A (en) * 2016-06-21 2016-11-16 武汉斗鱼网络科技有限公司 A kind of interaction control method preventing adopting consecutive click chemical reaction and device
CN107025583A (en) * 2016-01-29 2017-08-08 阿里巴巴集团控股有限公司 A kind of rendering intent of page control, equipment and terminal device
CN107844200A (en) * 2016-09-20 2018-03-27 天脉聚源(北京)科技有限公司 A kind of method and system for preventing iOS system mobile terminal from cancelling input content automatically
CN109117223A (en) * 2018-07-24 2019-01-01 北京酷我科技有限公司 A kind of interactive algorithm for submitting solicited status prompt
CN109324835A (en) * 2018-10-09 2019-02-12 郑州云海信息技术有限公司 A kind of method, equipment and the storage medium of incoming event processing
CN110704127A (en) * 2019-09-26 2020-01-17 北京金山安全软件有限公司 Button control method and device, electronic equipment and storage medium
CN113516811A (en) * 2021-04-23 2021-10-19 摩拜(北京)信息技术有限公司 Article using method and device
CN113709258A (en) * 2021-10-27 2021-11-26 湖南新云网科技有限公司 Praise anti-replay method, equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101394406A (en) * 2008-10-22 2009-03-25 深圳市金蝶中间件有限公司 Method and apparatus for preventing duplicate button pressing by user
CN101625620A (en) * 2008-07-07 2010-01-13 Lg电子株式会社 A mobile terminal and a method of controlling a mobile terminal
US20110113388A1 (en) * 2008-04-22 2011-05-12 The 41St Parameter, Inc. Systems and methods for security management based on cursor events

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110113388A1 (en) * 2008-04-22 2011-05-12 The 41St Parameter, Inc. Systems and methods for security management based on cursor events
CN101625620A (en) * 2008-07-07 2010-01-13 Lg电子株式会社 A mobile terminal and a method of controlling a mobile terminal
CN101394406A (en) * 2008-10-22 2009-03-25 深圳市金蝶中间件有限公司 Method and apparatus for preventing duplicate button pressing by user

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
POPPINXUN,飞雪无情: "javascript如何对页面锁定与解锁", 《ITEYE软件开发交流社区,HTTP://WWW.ITEYE.COM/PROBLEMS/48421》 *

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105373548B (en) * 2014-08-25 2020-10-13 腾讯科技(深圳)有限公司 Mobile device and method for customizing event by browser thereof
CN105373548A (en) * 2014-08-25 2016-03-02 腾讯科技(深圳)有限公司 Mobile device and event self-definition method for browser of mobile device
CN104298510B (en) * 2014-09-30 2017-08-25 珠海市君天电子科技有限公司 A kind of animation method and device for realizing control button locking
CN104298510A (en) * 2014-09-30 2015-01-21 珠海市君天电子科技有限公司 Animation method and device for realizing control button locking
CN107025583A (en) * 2016-01-29 2017-08-08 阿里巴巴集团控股有限公司 A kind of rendering intent of page control, equipment and terminal device
CN106020704A (en) * 2016-05-30 2016-10-12 乐视控股(北京)有限公司 Virtual key triggering method and mobile terminal thereof
CN106055253A (en) * 2016-05-30 2016-10-26 乐视控股(北京)有限公司 Virtual key triggering method and mobile terminal employing same
CN106126061A (en) * 2016-06-21 2016-11-16 武汉斗鱼网络科技有限公司 A kind of interaction control method preventing adopting consecutive click chemical reaction and device
CN107844200A (en) * 2016-09-20 2018-03-27 天脉聚源(北京)科技有限公司 A kind of method and system for preventing iOS system mobile terminal from cancelling input content automatically
CN109117223A (en) * 2018-07-24 2019-01-01 北京酷我科技有限公司 A kind of interactive algorithm for submitting solicited status prompt
CN109324835A (en) * 2018-10-09 2019-02-12 郑州云海信息技术有限公司 A kind of method, equipment and the storage medium of incoming event processing
CN110704127A (en) * 2019-09-26 2020-01-17 北京金山安全软件有限公司 Button control method and device, electronic equipment and storage medium
CN110704127B (en) * 2019-09-26 2023-09-12 北京金山安全软件有限公司 Button control method, device, electronic equipment and storage medium
CN113516811A (en) * 2021-04-23 2021-10-19 摩拜(北京)信息技术有限公司 Article using method and device
CN113709258A (en) * 2021-10-27 2021-11-26 湖南新云网科技有限公司 Praise anti-replay method, equipment and storage medium
CN113709258B (en) * 2021-10-27 2022-02-11 湖南新云网科技有限公司 Praise anti-replay method, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN103455405A (en) Method and system for preventing button from being clicked repeatedly and method and system for unlocking button
CN108363602B (en) Intelligent UI (user interface) layout method and device, terminal equipment and storage medium
US20200364033A1 (en) API Specification Generation
US8489605B2 (en) Document object model (DOM) based page uniqueness detection
US8612486B2 (en) Configuration management visualization
Leu et al. Improving heterogeneous SOA-based IoT message stability by shortest processing time scheduling
TWI672027B (en) Data processing method, device and system in webpage
CN103473234B (en) A kind of method, apparatus and system from web-query system export report
US20130218919A1 (en) Method and apparatus for managing content
Hirmer et al. SitRS-a situation recognition service based on modeling and executing situation templates
DE202014010938U1 (en) Omega name: name generation and derivation
AU2017216248B2 (en) Systems and methods for generating electronic document templates and electronic documents
CN105808701B (en) Realize the method and system communicated between list automatic Verification and multisystem
JP6252570B2 (en) Information processing system, access control method, information processing apparatus, control method thereof, and control program
US20210089426A1 (en) Parsing hierarchical session log data for search and analytics
CN106777086A (en) A kind of webpage buries dynamic management approach and device a little
CN111736837B (en) Method, device and equipment for restoring webpage operation, readable storage medium and system
CN110020273A (en) For generating the method, apparatus and system of thermodynamic chart
CN104268056A (en) Complex event processing based real-time monitoring system and method for CPS (Cyber-Physical Systems) applications
CN103020318A (en) Method for maintenance of database tables in database
CN105045598A (en) Java-based web front-end performance optimization and online method and system
Sacco et al. Supporting the design of AAL through a SW integration framework: the D4All project
CN107203613A (en) A kind of method and device of high concurrent request processing
US10496709B2 (en) Systems, methods and program instructions for calling a database function with a URL
CN116070049B (en) Method, device and equipment for backtracking page data and readable storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 1192028

Country of ref document: HK

RJ01 Rejection of invention patent application after publication

Application publication date: 20131218

RJ01 Rejection of invention patent application after publication
REG Reference to a national code

Ref country code: HK

Ref legal event code: WD

Ref document number: 1192028

Country of ref document: HK