CN104714990A - Method and device for locking objects in WEB page dynamic editing - Google Patents
Method and device for locking objects in WEB page dynamic editing Download PDFInfo
- Publication number
- CN104714990A CN104714990A CN201410360236.6A CN201410360236A CN104714990A CN 104714990 A CN104714990 A CN 104714990A CN 201410360236 A CN201410360236 A CN 201410360236A CN 104714990 A CN104714990 A CN 104714990A
- Authority
- CN
- China
- Prior art keywords
- locking
- request
- unlocking
- server
- module
- 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
Links
Landscapes
- Stored Programmes (AREA)
Abstract
The invention relates to a method and device for locking objects in WEB page dynamic editing. The method comprises the steps that A, a server script for receiving a locking request and an unlocking request is pre-established in a server; B, a locked event and an unlocked event are added in a mouse right-click event; C, a client terminal transmits the locking request after selecting editable objects; D, the locked event is triggered, and the server receives the locking request and executes the server script; E, the objects are locked, wherein the objects are in an un-editable state; F, the client terminal transmits the unlocking request after selecting the objects; G, the unlocked event is triggered, and the server receives the unlocking request and executes the server script; H, the objects are unlocked and return to be in an editable state. According to the method, misoperation can be reduced, the objects in a WEB page are locked through a key command, and therefore the purpose of protecting the objects is achieved.
Description
Technical field
The present invention relates to the dynamic editing technique of WEB page, particularly relate to and dynamically editing the method for lock object in WEB page and realizing the device of the method.
Background technology
Dynamically edit in a browser in the process of WEB page, a large amount of editable object is there is in the page, because the existence of background object is transparent with some object parts, cause in some cases, selected object, drag object or to change object size very difficult because be easy to be not intended to choose background object or other there is overlapping object, and once be not intended to move background object or other does not think the object of movement, full page turmoil may be caused, need to spend a lot of time to recover.It is constant very greatly that such problem is that Pages Design brings.On the other hand, under many circumstances, Pages Design carries out in some templates, and some part of template may be that template designer does not wish that user changes, and therefore needs to protect edit object.
Summary of the invention
The present invention solves prior art when the dynamic edit object of WEB page, maloperation other do not want to change the object of attribute, to using the technical matters bringing very big inconvenience, a kind of method is provided, maloperation can be reduced, the key commands method that WEB page object is locked and the device realizing the method.
The inventive method comprises the steps:
A, set up the server script receiving locking request and unlocking request in the server in advance, and described server script sets up following mechanism: after receiving locking request, by the object locking chosen, and after locking, no longer respond the editor's event except unlocking; After receiving unlocking request, the object chosen is unlocked;
B, in mouse right click event, add the locking and unlocking event;
C, client are chosen and can be sent locking request after edit object;
D, triggering lock event, receive locking request in server and perform server script;
E, lock object, object is in can not editing mode;
Unlocking request is sent after F, client selected object;
G, triggering unlock events, receive unlocking request in server and perform server script;
H, unlocking objects, object is got back to can editing mode.
The described object chosen is set to system object.
Apparatus of the present invention comprise the locking request module, reception locking request module, locking processing module, unlocking request judge module, reception unlocking request module and the unblock processing module that are connected in series, wherein, locking request module can send locking request to server by edit object by client by what choose, then be the reception locking request module reception locking request in server, enter locking processing module again, described locking processing module performs lock object after server script, and object is in can not editing mode; Judged by unlocking request judge module, return locking processing module when client does not send unlocking request; When client sends unlocking request, the reception unlocking request module in server receives unlocking request, then enters unblock processing module, and unlocking objects after described unblock processing module execution server script, object is got back to can editing mode.
Technique effect:
The present invention sets up the server script receiving locking request and unlocking request in the server in advance, when client sends locking request or unlocking request, triggers locking or unlock events, receives locking request or unlocking request and perform server script in server.The locking of object that certain just can choose by such user, object is in can not editing mode, and the locking of object during by dynamically editing WEB page, can make in editor afterwards, and this object can not be dragged or varying sized, unless be unlocked.Doing so avoids be not intended to mobile do not think the full page that the object of movement may cause confusion and to Pages Design bring constant, the object locked can also be unlocked equally, object is got back to can editing mode.
The object certain chosen is set to system object, and system object can not respond any mouse event or KeyEvent, therefore cannot be edited completely, thus reaches the object of this object of protection.
Accompanying drawing explanation
Fig. 1 is the process flow diagram that WEB page of the present invention dynamically edits the method for lock object.
Fig. 2 is the structural representation that WEB page of the present invention dynamically edits the device of lock object.
Embodiment
Be described with reference to the accompanying drawings process flow diagram of the present invention.
In Fig. 1 when dynamically editing WEB page, need to set up the server script receiving locking request and unlocking request in the server in advance, and described server script sets up following mechanism: after receiving locking request, by the object locking chosen, and after locking, no longer respond the editor's event except unlocking; After receiving unlocking request, the object chosen is unlocked.Further, in mouse right click event, the locking and unlocking event is added.
First choose can edit object for client, then sends locking request, triggers lock event; Then server receives locking request and performs server script; And then lock object, object is in can not editing mode, and like this, in editor afterwards, this object can not be dragged or change that is varying sized or other attribute, unless be unlocked; When client choose send unlocking request after the object locked time, just trigger unlock events, server receives unlocking request and also performs server script; So just unlocked by object, object is got back to can editing mode.
On the other hand; the object chosen can be set to system object by similar approach by template designer; system object can not respond any mouse event or KeyEvent; therefore cannot be edited completely; can use as template; user cannot change the object touched in plate, thus reaches the object of this object of protection.
Fig. 2 is the structural representation that WEB page of the present invention dynamically edits the device of lock object.Set up the server script receiving locking request module and unlock request module in the server in advance, and described server script sets up following mechanism: after receiving locking request, by the object locking chosen, and after locking, no longer respond the editor's event except unlocking; After receiving unlocking request, the object chosen is unlocked.Apparatus of the present invention comprise the locking request module, reception locking request module, locking processing module, unlocking request judge module, reception unlocking request module and the unblock processing module that are connected in series, wherein, locking request module can send locking request to server by edit object by client by what choose, then be the reception locking request module reception locking request in server, enter locking processing module again, described locking processing module performs lock object after server script, and object is in can not editing mode; Judged by the unlocking request judge module of client, return locking processing module when client does not send unlocking request, object is still in can not editing mode; When client sends unlocking request, the reception unlocking request module in server receives unlocking request, then enters unblock processing module, and unlocking objects after described unblock processing module execution server script, object is got back to can editing mode.
Above-described example is only the preferred embodiment of the present invention; it should be pointed out that for those skilled in the art, under the premise without departing from the principles of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.
Claims (3)
- The 1.WEB page dynamically edits the method for lock object, it is characterized in that comprising the steps:A, set up the server script receiving locking request and unlocking request in the server in advance, and described server script sets up following mechanism: after receiving locking request, by the object locking chosen, and after locking, no longer respond the editor's event except unlocking; After receiving unlocking request, the object chosen is unlocked;B, in mouse right click event, add the locking and unlocking event;C, client are chosen and can be sent locking request after edit object;D, triggering lock event, receive locking request in server and perform server script;E, lock object, object is in can not editing mode;Unlocking request is sent after F, client selected object;G, triggering unlock events, receive unlocking request in server and perform server script;H, unlocking objects, object is got back to can editing mode.
- 2. WEB page according to claim 1 dynamically edits the method for lock object, it is characterized in that the described object chosen to be set to system object.
- The 3.WEB page dynamically edits the device of lock object, it is characterized in that comprising the locking request module be connected in series, receive locking request module, locking processing module, unlocking request judge module, receive unlocking request module and unlock processing module, wherein, locking request module can send locking request to server by edit object by client by what choose, then be the reception locking request module reception locking request in server, enter locking processing module again, lock object after described locking processing module execution server script, object is in can not editing mode, judged by unlocking request judge module, return locking processing module when client does not send unlocking request, when client sends unlocking request, the reception unlocking request module in server receives unlocking request, then enters unblock processing module, and unlocking objects after described unblock processing module execution server script, object is got back to can editing mode.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410360236.6A CN104714990A (en) | 2013-12-12 | 2014-07-25 | Method and device for locking objects in WEB page dynamic editing |
Applications Claiming Priority (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2013106855583 | 2013-12-12 | ||
CN201310685558 | 2013-12-12 | ||
CN201410360236.6A CN104714990A (en) | 2013-12-12 | 2014-07-25 | Method and device for locking objects in WEB page dynamic editing |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104714990A true CN104714990A (en) | 2015-06-17 |
Family
ID=53414330
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410360236.6A Pending CN104714990A (en) | 2013-12-12 | 2014-07-25 | Method and device for locking objects in WEB page dynamic editing |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104714990A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108734027A (en) * | 2018-06-12 | 2018-11-02 | 和宇健康科技股份有限公司 | A kind of electronic health record operating right control method and system |
CN110750364A (en) * | 2019-09-03 | 2020-02-04 | 苏宁云计算有限公司 | Multi-user online editing management method, device and system |
CN112394889A (en) * | 2019-08-19 | 2021-02-23 | 兄弟工业株式会社 | Storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110296177A1 (en) * | 2010-05-26 | 2011-12-01 | International Business Machines Corporation | Method and system for microlocking web content |
CN102354270A (en) * | 2011-09-04 | 2012-02-15 | 上海量明科技发展有限公司 | Method and system for locking contact in instant messaging |
CN102508840A (en) * | 2010-09-09 | 2012-06-20 | 微软公司 | Concurrent editing of online drawings |
CN103279345A (en) * | 2013-05-28 | 2013-09-04 | 星云融创(北京)信息技术有限公司 | Method and device for locking page element |
CN103377001A (en) * | 2012-04-18 | 2013-10-30 | 凌网科技股份有限公司 | Control method for locking zoom area of browsed page of touch device |
-
2014
- 2014-07-25 CN CN201410360236.6A patent/CN104714990A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110296177A1 (en) * | 2010-05-26 | 2011-12-01 | International Business Machines Corporation | Method and system for microlocking web content |
CN102508840A (en) * | 2010-09-09 | 2012-06-20 | 微软公司 | Concurrent editing of online drawings |
CN102354270A (en) * | 2011-09-04 | 2012-02-15 | 上海量明科技发展有限公司 | Method and system for locking contact in instant messaging |
CN103377001A (en) * | 2012-04-18 | 2013-10-30 | 凌网科技股份有限公司 | Control method for locking zoom area of browsed page of touch device |
CN103279345A (en) * | 2013-05-28 | 2013-09-04 | 星云融创(北京)信息技术有限公司 | Method and device for locking page element |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108734027A (en) * | 2018-06-12 | 2018-11-02 | 和宇健康科技股份有限公司 | A kind of electronic health record operating right control method and system |
CN112394889A (en) * | 2019-08-19 | 2021-02-23 | 兄弟工业株式会社 | Storage medium |
CN110750364A (en) * | 2019-09-03 | 2020-02-04 | 苏宁云计算有限公司 | Multi-user online editing management method, device and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102929485B (en) | A kind of characters input method and device | |
CN106991304B (en) | Message processing method and device | |
CN104992102A (en) | Message display method and apparatus | |
US20140201833A1 (en) | Electronic device and method for fast activating application after unlocking | |
CN104049897B (en) | Touch panel device unlock method and device | |
JP2020518926A (en) | Backup and restore framework for distributed computing systems | |
CN104714990A (en) | Method and device for locking objects in WEB page dynamic editing | |
CN103777947B (en) | The management method at the main interface of a kind of mobile terminal and device | |
CN104123164A (en) | Application program starting method and device | |
CN105847130A (en) | Instant messaging application chatting record processing method and device | |
CN106484270A (en) | A kind of voice operating event adding method and terminal | |
CN103455405A (en) | Method and system for preventing button from being clicked repeatedly and method and system for unlocking button | |
CN103064738A (en) | Method and system for embedding local application program window into browser in Linux | |
CN102801731B (en) | A kind of method of protected data and device | |
CN104156219A (en) | Electric power marketing and distributing model verifying method based on ontology technology | |
CN105812552A (en) | Application icon prompt message elimination method and terminal | |
CN103377125A (en) | Code testing method, device and system | |
CN102707892A (en) | Pattern unlocking method | |
CN108228168A (en) | A kind of revocation, the abstract method of recovery operation | |
CN103209253A (en) | Text message processing method and text message processing system of touch screen mobile phone | |
CN104157030A (en) | Method for controlling door lock through electronic network communication equipment | |
CN104156145A (en) | Text content selection method based on handwriting pen and portable terminal | |
CN106845244A (en) | A kind of detection method and device | |
CN106055793A (en) | Method for quickly unlocking view file | |
CN105653509A (en) | Document processing method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20150617 |
|
RJ01 | Rejection of invention patent application after publication |