CN105302529B - Browser control method and manager - Google Patents
Browser control method and manager Download PDFInfo
- Publication number
- CN105302529B CN105302529B CN201410245413.6A CN201410245413A CN105302529B CN 105302529 B CN105302529 B CN 105302529B CN 201410245413 A CN201410245413 A CN 201410245413A CN 105302529 B CN105302529 B CN 105302529B
- Authority
- CN
- China
- Prior art keywords
- dialog box
- confirmation dialog
- browser
- confirmation
- plug
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Abstract
The present invention relates to a kind of browser control method and manager, method include: receive client send exit browser instructions;According to browser instructions are exited, the confirmation dialog box for meeting predetermined condition is obtained from confirmation dialog box message queue;The confirmation dialog box for meeting predetermined condition is shown in browser window;When receiving user after the confirmation instruction for confirming dialog box triggering, browser window is closed.The present invention avoids the appearance of conflict, improves the control flexibility of browser exit confirmation dialog box, while also reducing subsequent development cost by providing unified administrative mechanism to the confirmation dialog box in host process and plug-in unit process.
Description
Technical field
The present invention relates to Internet technical field more particularly to a kind of browser control method and managers.
Background technique
During user browses webpage, when needing to exit browser, in order to keep user or to give user primary
The chance of operation is exited in revocation, and browser will pop up confirmation dialog box, it is desirable that user is confirmed whether to execute last time operation.Confirmation pair
Words frame generally comprises: prompt, ACK button, cancel button.If user clicks cancel button, the operation of last time is invalid;Such as
Fruit user clicks ACK button, then continues to complete the operation of last time.
Currently, exit confirmation dialog box generallys use decentralized mode.For example browser will pop up two kinds when exiting
Confirmation dialog box: label is not turned off confirmation dialog box A, using non-exit confirmation dialog box B.And when product demand changes every time,
Will modify browser exit in confirmation logic.Whether above-mentioned two dialog box pops up altogether there are four types of situation: AB do not pop up,
A pop-up B is not popped up, A does not pop up B pop-up, AB is popped up.It is a kind of conflict situations that wherein AB, which is popped up, in this case should
Only the pop-up higher dialog box of priority, the lower dialog box of priority no longer pop up.Which kind of is selected confirm logic on earth, then is needed
It wants correlation function responsible person to study to determine.
Therefore, the way to manage of existing exit confirmation dialog box has the disadvantage in that
1, the demand change that cannot timely respond to product requires modification browser when each product demand changes and exits
Confirm logic;
2, it due to using distributed management scheme, needs related personnel to decide through discussion when conflicting, leads to development efficiency
It is lower;
3, logic is complicated, and error rate is high, and maintenance cost is also high.
Summary of the invention
The embodiment of the present invention provides a kind of browser control method and manager, it is intended to improve the dialogue of browser exit confirmation
The control flexibility of frame, and cost can be reduced.
The embodiment of the present invention proposes a kind of browser control method, comprising:
Receive client transmission exits browser instructions;
Browser instructions are exited according to described, the confirmation pair for meeting predetermined condition is obtained from confirmation dialog box message queue
Talk about frame;
The confirmation dialog box for meeting predetermined condition is shown in browser window;
When receiving user after the confirmation instruction of the confirmation dialog box triggering, browser window is closed.
The embodiment of the present invention also proposes a kind of browser control manager, comprising:
Receiving module, for receive client transmission exit browser instructions;
Module is obtained, for exiting browser instructions according to, obtains and meets in advance from confirmation dialog box message queue
The confirmation dialog box of fixed condition;
Display module, for showing the confirmation dialog box for meeting predetermined condition in browser window;
Operation module, for closing browser when receiving user after the confirmation instruction of the confirmation dialog box triggering
Window.
A kind of browser control method and manager that the embodiment of the present invention proposes, by host process and plug-in unit process
Confirmation dialog box unified administrative mechanism is provided, avoid the appearance of conflict, improve browser exit confirmation dialog box
Flexibility is controlled, while also reducing subsequent development cost.
Detailed description of the invention
Fig. 1 is the embodiment of the present invention hardware running environment system architecture diagram;
Fig. 2 is the flow diagram of browser control method first embodiment of the present invention;
Fig. 3 a is a kind of interface schematic diagram of the confirmation dialog box of host process in the embodiment of the present invention;
Fig. 3 b is a kind of interface schematic diagram of the confirmation dialog box of plug-in unit process in the embodiment of the present invention;
Fig. 4 is the flow diagram of browser control method second embodiment of the present invention;
Fig. 5 is the flow diagram of browser control method 3rd embodiment of the present invention;
Fig. 6 is the flow diagram of browser control method fourth embodiment of the present invention;
Fig. 7 is the functional block diagram of browser control manager first embodiment of the present invention;
Fig. 8 is the functional block diagram of browser control manager second embodiment of the present invention;
Fig. 9 is another structural schematic diagram of browser of embodiment of the present invention control manager.
In order to keep technical solution of the present invention clearer, clear, it is described in further detail below in conjunction with attached drawing.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The primary solutions of the embodiment of the present invention are: when user exits browser, process manager is clear according to exiting
Device of looking at instruction obtains the confirmation dialog box for meeting predetermined condition from confirmation dialog box message queue and shows in browser window
Show, after confirming when the user clicks, closes browser window, exit browser, rushed so as to avoid between multiple confirmation dialog boxes
Prominent appearance, improves the control flexibility of browser exit confirmation dialog box, while also reducing subsequent development cost.
As shown in FIG. 1, FIG. 1 is the embodiment of the present invention hardware running environment system architecture diagram, which includes: client
End 102 and the process manager 101 communicated to connect with the client 102;Wherein:
The client 102, for receiving when exiting browser instructions of user, according to the exit instruction calling process
101 interface of manager, request pop-up confirmation dialog box;
The process manager 101 obtains full for being requested according to client 102 from confirmation dialog box message queue
The confirmation dialog box of sufficient predetermined condition is simultaneously shown in browser window, after the confirmation instruction for receiving user, closes browser
Window exits browser.
Specifically, the present embodiment client 102 can be pc client, or mobile phone, tablet computer etc. have net
The mobile terminal of page browsing function.
Since existing browser exit confirmation dialog box uses distributed management scheme, the demand of product cannot be timely responded to
Change requires modification browser exit confirmation logic when each product demand changes, relevant people is needed when conflicting
Member decides through discussion, and causes development efficiency lower, and logic is complicated, and error rate is high, and maintenance cost is also high.
This embodiment scheme can provide unified administrative mechanism to the confirmation dialog box in host process and plug-in unit process, keep away
Exempt from the appearance of conflict, improve the control flexibility of browser exit confirmation dialog box, while also reducing subsequent development cost.
The dialog box being directed to is a kind of window, includes button and various options, can complete specific life by them
Order or task, are a kind of modes of man-machine communication, user is configured dialog box, and computer carries out corresponding order.
There are radio box, check box etc. in dialog box.
Above-mentioned process refers to the execution of a secondary program in operating system;It is a program and its data sequence on treaters
The activity occurred when execution;It is the process that program is run on a data acquisition system, it is that system carries out resource allocation and tune
One individual of degree, host process refer to the leading web accessed during browser execution, and plug-in unit process, which refers to, passes through browser
Other processes of operation, such as various application processes, such as instant messaging, confirmation dialog box involved in this embodiment include
An at least host process confirms that dialog box and an at least plug-in unit process confirm dialog box.
Based on above system framework, as shown in Fig. 2, proposing the browser control method of first embodiment of the invention, the party
Method includes:
Step S201, receive client transmission exits browser instructions;
User browses webpage or use in application, if desired exiting browser by browser, then moves back in client triggering
Browser instructions out, client is according to the exit instruction calling process manager interface, request pop-up confirmation dialog box.
Step S202 exits browser instructions according to described, obtains from confirmation dialog box message queue and meets predetermined item
The confirmation dialog box of part;
Step S203 shows the confirmation dialog box for meeting predetermined condition in browser window;
Process manager is locally having confirmation to talk with for different processes (including host process and plug-in unit process) creation in advance
Frame message queue, in the confirmation dialog box message queue, according to priority orders (high priority preceding, low priority is rear)
Each confirmation dialog box information registered in process manager is preserved, which includes confirming the name of dialog box
Title or code etc..In registration, corresponding confirmation dialog box function triggering logical code is registered in process manager, this is really
Recognizing dialog box function triggering logical code includes prompt text, the icon confirmed in dialog box, and the pop-up of confirmation dialog box
Priority.
Process manager is after receiving the pop-up confirmation dialog box request of client initiation, according to recognizing dialog box information team
The priority of disposing order that dialog box is confirmed in column, traverses the confirmation dialog box message queue from front to back, chooses highest priority,
And detection is not reresented or has but the confirmation dialog box do not chosen of user and shows in browser window, example
Such as: if it is confirmed that in dialog box message queue first confirmation dialog box meet pop-up condition (do not reresent checkbox,
Or have but user did not chose) then exit traversal, pop-up current session frame.
Step S204 closes browser window when receiving user after the confirmation instruction of the confirmation dialog box triggering.
In the confirmation dialog interface of pop-up, it is provided with determining option and cancels option, can also be arranged and " no longer mention
Show " option, as shown in Fig. 3 a and Fig. 3 b.If user, which determines to execute, exits browser operation, determining option, process can be clicked
Manager returns to IDOK to client, browser window thread continues to move back according to the value after the confirmation instruction for receiving user
Out, browser window is closed, browser is exited;If user's Iterim Change idea, cancellation option can choose, browsing is exited in cancellation
Device operation returns to IDCANCEL to client, browser is cancelled after process manager receives the cancellation instruction of user's triggering
It exits.
The present embodiment through the above scheme, when user exits browser, process manager according to exiting browser instructions,
It is obtained from confirmation dialog box message queue and meets the confirmation dialog box of predetermined condition and shown in browser window, when user's point
After hitting confirmation, browser window is closed, browser is exited, so as to avoid the appearance to conflict between multiple confirmation dialog boxes, mentioned
The high control flexibility of browser exit confirmation dialog box, while also reducing subsequent development cost.
As shown in figure 4, second embodiment of the invention proposes a kind of browser control method, above-mentioned shown in Fig. 2 first
On the basis of embodiment, can also include: after above-mentioned steps S203
Step S205 records current confirmation dialogue when user selects no longer prompt options in the confirmation dialog box
The status information of frame;
Step S206 does not show the confirmation dialog box when user triggers again exits browser.
The present embodiment and the difference of above-mentioned first embodiment shown in Fig. 2 are that the present embodiment further includes user current
The processing scheme after no longer prompt options is selected in confirmation dialog box.
Specifically, the present embodiment is also set up in addition to being provided with determining option and cancelling option in confirmation dialog interface
There is " not reresenting " option, when user selects no longer prompt options in confirming dialog box, process manager record is current true
Recognize the status information of dialog box.
It is subsequent, when user triggers again exits browser, process manager traversal confirm dialog box message queue when,
According to the registered priority of confirmation dialog box, the confirmation dialog box of highest priority is chosen, meanwhile, process manager inquiry record
Confirmation dialog box status information, if the confirmation dialog box chooses no longer prompt options by user, although the confirmation pair
The registered priority highest for talking about frame, also no longer shows the confirmation dialog box, and process manager will continue to traversal confirmation dialog box letter
Queue is ceased, selects the confirmation dialog box of next highest priority to carry out judgement and shows.Meet use through the above scheme as a result,
Family further improves the control flexibility of browser exit confirmation dialog box to the different display demands of confirmation dialog box.
As shown in figure 5, third embodiment of the invention proposes a kind of browser control method, above-mentioned shown in Fig. 2 first
On the basis of embodiment, in above-mentioned steps S201: before what reception client was sent exits browser instructions further include:
Step S211 receives the host process and/or plug-in unit process is sent after host process and/or plug-in unit process initiation
Confirmation dialog box registration request;
Step S212, judges whether corresponding confirmation dialog box has been registered, if so, exiting register flow path;Otherwise into
Enter step S213;
Step S213 registers the host process and/or the corresponding confirmation dialog box function triggering logical code of plug-in unit process,
And confirmation dialog box message queue is added in corresponding confirmation dialog box;
Step S214 carries out priority ranking to each confirmation dialog box in the confirmation dialog box message queue.
The present embodiment and the difference of above-mentioned first embodiment shown in Fig. 2 are that the present embodiment further includes accreditation verification pair
Frame is talked about, the scheme of confirmation dialog box message queue is generated.
Specifically, after host process starting, process manager is initialized, and empties confirmation dialog box information team
Column.
In host process, after user opens multiple labels, if user needs to exit browser, need to pop up confirmation pair
Frame is talked about, confirmation dialog box can be as shown in Figure 3a.
Process manager, can be by the confirmation logic generation of the function of the confirmation dialog box of host process triggering after host process starting
Code is registered in process manager, mainly includes prompt text, icon, pop-up priority etc..Wherein, host process can be multiple
And it is extendible.
In addition, process manager can also trigger the function of the confirmation dialog box of plug-in unit process after plug-in unit process initiation
Confirmation logical code be registered in process manager, mainly include prompt text, icon, pop-up priority etc., plug-in unit process
Confirmation dialog box can be as shown in Figure 3b.
In specific registration, process manager receives the confirmation dialog box registration that host process and/or plug-in unit process are sent and asks
It asks;Judge whether corresponding confirmation dialog box has been registered, if so, exiting register flow path;Otherwise, the host process is registered
And/or the corresponding confirmation dialog box function of plug-in unit process triggers logical code, and confirmation pair is added in corresponding confirmation dialog box
Frame message queue is talked about, is ranked up further according to the priority of each confirmation dialog box in confirmation dialog box message queue, it is identical excellent
The confirmation dialog box of first grade, that first registers is arranged in front, after that registers afterwards is arranged in.
The present embodiment provides unified management mechanism through the above scheme, by process manager, manage host process and plug-in unit into
Confirmation dialog box in journey, host process and plug-in unit process use same way accreditation verification dialog box, and unity of form pops up logic
Unified management avoids the appearance of conflict, and is encapsulated to confirmation dialog box information registering, and striding course note may be implemented
Volume, flexibility are high;When increasing new confirmation dialog box, it is only necessary to register: prompt, icon, pop-up priority reduce
Subsequent development cost.
As shown in fig. 6, fourth embodiment of the invention proposes a kind of browser control method, in above-mentioned third shown in fig. 5
On the basis of embodiment, after above-mentioned steps S214, can also include:
Step S215, during browser execution, when the host process and/or the closing of plug-in unit process, described in reception
The cancellation that host process and/or plug-in unit process are sent confirms dialog box registration request;
Step S216 confirms dialog box registration request according to the cancellation, deletes the confirmation dialog box information registered.
The present embodiment and the difference of above-mentioned 3rd embodiment shown in fig. 5 are that the present embodiment further includes cancelling confirmation pair
Talk about the scheme of frame registration.
Specifically, during browser execution, when host process and/or the closing of plug-in unit process, confirmation dialogue is eliminated
The registration of frame, for example Shipping Options Page is only one surplus, wechat has exited login, then corresponding process function initiates cancel register request,
After process manager receives request, chartered information is deleted.
The present embodiment provides unified management mechanism through the above scheme, by process manager, manage host process and plug-in unit into
Confirmation dialog box in journey, host process and plug-in unit process use same way accreditation verification dialog box, and unity of form pops up logic
Unified management avoids the appearance of conflict, and is encapsulated to confirmation dialog box information registering, and striding course note may be implemented
Volume, cancel register, flexibility are high;When increasing new confirmation dialog box, it is only necessary to register: prompt, icon, pop-up priority are i.e.
Can, reduce subsequent development cost.
As shown in fig. 7, first embodiment of the invention proposes a kind of browser control manager, comprising: receiving module 301,
Obtain module 302, display module 303 and operation module 304, in which:
Receiving module 301, for receive client transmission exit browser instructions;
Module 302 is obtained, for exiting browser instructions according to, obtains and meets from confirmation dialog box message queue
The confirmation dialog box of predetermined condition;
Display module 303, for showing the confirmation dialog box for meeting predetermined condition in browser window;
Operation module 304, for closing browsing when receiving user after the confirmation instruction of the confirmation dialog box triggering
Device window.
Specifically, user browses webpage or use in application, if desired exiting browser, then in client by browser
Browser instructions are exited in triggering, and client is according to the exit instruction calling process manager interface, request pop-up confirmation dialog box.
Process manager is locally having confirmation to talk with for different processes (including host process and plug-in unit process) creation in advance
Frame message queue, in the confirmation dialog box message queue, according to priority orders (high priority preceding, low priority is rear)
Each confirmation dialog box information registered in process manager is preserved, which includes confirming the name of dialog box
Title or code etc..In registration, corresponding confirmation dialog box function triggering logical code is registered in process manager, this is really
Recognizing dialog box function triggering logical code includes prompt text, the icon confirmed in dialog box, and the pop-up of confirmation dialog box
Priority.
Process manager is after receiving the pop-up confirmation dialog box request of client initiation, according to recognizing dialog box information team
The priority of disposing order that dialog box is confirmed in column, traverses the confirmation dialog box message queue from front to back, chooses highest priority,
And detection is not reresented or has but the confirmation dialog box do not chosen of user and shows in browser window, example
Such as: if it is confirmed that in dialog box message queue first confirmation dialog box meet pop-up condition (do not reresent checkbox,
Or have but user did not chose) then exit traversal, pop-up current session frame.
In the confirmation dialog interface of pop-up, it is provided with determining option and cancels option, can also be arranged and " no longer mention
Show " option, as shown in Fig. 3 a and Fig. 3 b.If user, which determines to execute, exits browser operation, determining option, process can be clicked
Manager returns to IDOK to client, browser window thread continues to move back according to the value after the confirmation instruction for receiving user
Out, browser window is closed, browser is exited;If user's Iterim Change idea, cancellation option can choose, browsing is exited in cancellation
Device operation returns to IDCANCEL to client, browser is cancelled after process manager receives the cancellation instruction of user's triggering
It exits.
The present embodiment through the above scheme, when user exits browser, process manager according to exiting browser instructions,
It is obtained from confirmation dialog box message queue and meets the confirmation dialog box of predetermined condition and shown in browser window, when user's point
After hitting confirmation, browser window is closed, browser is exited, so as to avoid the appearance to conflict between multiple confirmation dialog boxes, mentioned
The high control flexibility of browser exit confirmation dialog box, while also reducing subsequent development cost.
Further, when user selects no longer prompt options in confirming dialog box, process manager record is current true
Recognize the status information of dialog box.
It is subsequent, when user triggers again exits browser, process manager traversal confirm dialog box message queue when,
According to the registered priority of confirmation dialog box, the confirmation dialog box of highest priority is chosen, meanwhile, process manager inquiry record
Confirmation dialog box status information, if the confirmation dialog box chooses no longer prompt options by user, although the confirmation pair
The registered priority highest for talking about frame, also no longer shows the confirmation dialog box, and process manager will continue to traversal confirmation dialog box letter
Queue is ceased, selects the confirmation dialog box of next highest priority to carry out judgement and shows.Meet use through the above scheme as a result,
Family further improves the control flexibility of browser exit confirmation dialog box to the different display demands of confirmation dialog box.
As shown in figure 8, second embodiment of the invention proposes a kind of browser control manager, above-mentioned shown in Fig. 7 the
On the basis of one embodiment, further includes:
Registration module 305, for after host process and/or plug-in unit process initiation, receive the host process and/or plug-in unit into
The confirmation dialog box registration request that journey is sent;Judge whether corresponding confirmation dialog box has been registered, if so, exiting registration flow
Journey;Otherwise the host process and/or the corresponding confirmation dialog box function triggering logical code of plug-in unit process are registered, and will be corresponding
Confirm that confirmation dialog box message queue is added in dialog box;Each confirmation dialog box in the confirmation dialog box message queue is carried out
Priority ranking.
The present embodiment and the difference of above-mentioned first embodiment shown in Fig. 7 are that the present embodiment further includes accreditation verification pair
Frame is talked about, the scheme of confirmation dialog box message queue is generated.
Specifically, after host process starting, process manager is initialized, and empties confirmation dialog box information team
Column.
In host process, after user opens multiple labels, if user needs to exit browser, need to pop up confirmation pair
Frame is talked about, confirmation dialog box can be as shown in Figure 3a.
Process manager, can be by the confirmation logic generation of the function of the confirmation dialog box of host process triggering after host process starting
Code is registered in process manager, mainly includes prompt text, icon, pop-up priority etc..Wherein, host process can be multiple
And it is extendible.
In addition, process manager can also trigger the function of the confirmation dialog box of plug-in unit process after plug-in unit process initiation
Confirmation logical code be registered in process manager, mainly include prompt text, icon, pop-up priority etc., plug-in unit process
Confirmation dialog box can be as shown in Figure 3b.
In specific registration, process manager receives the confirmation dialog box registration that host process and/or plug-in unit process are sent and asks
It asks;Judge whether corresponding confirmation dialog box has been registered, if so, exiting register flow path;Otherwise, the host process is registered
And/or the corresponding confirmation dialog box function of plug-in unit process triggers logical code, and confirmation pair is added in corresponding confirmation dialog box
Frame message queue is talked about, is ranked up further according to the priority of each confirmation dialog box in confirmation dialog box message queue, it is identical excellent
The confirmation dialog box of first grade, that first registers is arranged in front, after that registers afterwards is arranged in.
The present embodiment provides unified management mechanism through the above scheme, by process manager, manage host process and plug-in unit into
Confirmation dialog box in journey, host process and plug-in unit process use same way accreditation verification dialog box, and unity of form pops up logic
Unified management avoids the appearance of conflict, and is encapsulated to confirmation dialog box information registering, and striding course note may be implemented
Volume, flexibility are high;When increasing new confirmation dialog box, it is only necessary to register: prompt, icon, pop-up priority reduce
Subsequent development cost.
Further, the registration module 305 is also used to during browser execution, when the host process and/or is inserted
When part process is closed, the cancellation confirmation dialog box registration request that the host process and/or plug-in unit process are sent is received;According to described
Cancel confirmation dialog box registration request, deletes the confirmation dialog box information registered.
Specifically, during browser execution, when host process and/or the closing of plug-in unit process, confirmation dialogue is eliminated
The registration of frame, for example Shipping Options Page is only one surplus, wechat has exited login, then corresponding process function initiates cancel register request,
After process manager receives request, chartered information is deleted.
The present embodiment provides unified management mechanism through the above scheme, by process manager, manage host process and plug-in unit into
Confirmation dialog box in journey, host process and plug-in unit process use same way accreditation verification dialog box, and unity of form pops up logic
Unified management avoids the appearance of conflict, and is encapsulated to confirmation dialog box information registering, and striding course note may be implemented
Volume, cancel register, flexibility are high;When increasing new confirmation dialog box, it is only necessary to register: prompt, icon, pop-up priority are i.e.
Can, reduce subsequent development cost.
As shown in figure 9, Fig. 9 is another structural schematic diagram for the browser control manager that the embodiment of the present invention proposes.
As shown in figure 9, the manager may include: processor 1001, such as CPU, network interface 1004, user interface
1003, memory 1005, communication bus 1002.Wherein, communication bus 1002 is for realizing the connection communication between these components.
User interface 1003 may include display screen (Display), keyboard (Keyboard), and optional user interface 1003 can also include
Standard wireline interface and wireless interface.Network interface 1004 optionally may include standard wireline interface and wireless interface (such as
WI-FI interface).Memory 1005 can be high speed RAM memory, be also possible to non-labile memory (non-
Volatile memory), such as a magnetic disk storage.Memory 1005 optionally can also be a and be located remotely from aforementioned processing
The storage device of device 1001.As shown in figure 9, as may include operation system in a kind of memory 1005 of computer storage medium
System, network communication module, Subscriber Interface Module SIM and browser control application program.
In manager shown in Fig. 9, network interface 1004 is mainly used for connecting client, and it is logical to carry out data with client
Letter;User interface 1003 is mainly used for connecting background management platform, carries out data communication with background management platform;And processor
1001 can be used for that the browser stored in memory 1005 is called to control application program, and execute following operation:
It is interacted by network interface 1004 with client, receive client transmission exits browser instructions;According to
It is described to exit browser instructions, the confirmation dialog box for meeting predetermined condition is obtained from confirmation dialog box message queue;It is browsing
Device window shows the confirmation dialog box for meeting predetermined condition;When receive user it is described confirmation dialog box triggering confirmation
After instruction, browser window is closed.
In one embodiment, processor 1001 calls the browser stored in memory 1005 control application program can be with
Execute following operation:
When receiving user after the cancellation instruction of the confirmation dialog box triggering, browser operation is exited in cancellation.
In one embodiment, processor 1001 calls the browser stored in memory 1005 control application program can be with
Execute following operation:
When user selects no longer prompt options in the confirmation dialog box, the state letter of current confirmation dialog box is recorded
Breath;When user triggers again exits browser, the confirmation dialog box is not shown.
In one embodiment, processor 1001 calls the browser stored in memory 1005 control application program can be with
Execute following operation:
Browser instructions are exited according to described, traverse the confirmation dialog box message queue;Highest priority is chosen, and is not had
Have do not reresent detection or have but the confirmation dialog box do not chosen of user.
In one embodiment, processor 1001 calls the browser stored in memory 1005 control application program can be with
Execute following operation:
After host process and/or plug-in unit process initiation, the confirmation dialogue that the host process and/or plug-in unit process are sent is received
Frame registration request;Judge whether corresponding confirmation dialog box has been registered, if so, exiting register flow path;Otherwise described in registration
Host process and/or the corresponding confirmation dialog box function of plug-in unit process trigger logical code, and corresponding confirmation dialog box is added
Confirm dialog box message queue;Priority ranking is carried out to each confirmation dialog box in the confirmation dialog box message queue.
In one embodiment, processor 1001 calls the browser stored in memory 1005 control application program can be with
Execute following operation:
During browser execution, when the host process and/or plug-in unit process are closed, receive the host process and/
Or the cancellation that plug-in unit process is sent confirms dialog box registration request;Dialog box registration request is confirmed according to the cancellation, is deleted
Chartered confirmation dialog box information.
The present embodiment through the above scheme, by providing unified pipe to the confirmation dialog box in host process and plug-in unit process
Reason mechanism avoids the appearance of conflict, improves the control flexibility of browser exit confirmation dialog box, while after also reducing
Continuous development cost.
It should also be noted that, herein, the terms "include", "comprise" or its any other variant are intended to non-
It is exclusive to include, so that the process, method, article or the device that include a series of elements not only include those elements,
It but also including other elements that are not explicitly listed, or further include solid by this process, method, article or device
Some elements.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including
There is also other identical elements in the process, method of the element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in a storage medium
In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, computer, clothes
Business device or the network equipment etc.) execute method described in each embodiment of the present invention.
The above description is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all utilizations
Equivalent structure made by description of the invention and accompanying drawing content or process transformation, are applied directly or indirectly in other relevant skills
Art field, is included within the scope of the present invention.
Claims (12)
1. a kind of browser control method characterized by comprising
Receive client transmission exits browser instructions;
Browser instructions are exited according to described, the confirmation dialogue for meeting predetermined condition is obtained from confirmation dialog box message queue
Frame;
The confirmation dialog box for meeting predetermined condition is shown in browser window;
When receiving user after the confirmation instruction of the confirmation dialog box triggering, browser window is closed;
Wherein, described that browser instructions are exited according to, it is obtained from confirmation dialog box message queue and meets predetermined condition
The step of confirming dialog box includes: that browser instructions are exited according to, traverses the confirmation dialog box message queue;It chooses excellent
First grade highest, and do not reresent detection or have the confirmation dialog box that still user did not chose.
2. the method according to claim 1, wherein further include:
When receiving user after the cancellation instruction of the confirmation dialog box triggering, browser operation is exited in cancellation.
3. the method according to claim 1, wherein further include:
When user selects no longer prompt options in the confirmation dialog box, the status information of current confirmation dialog box is recorded;
When user triggers again exits browser, the confirmation dialog box is not shown.
4. method according to any one of claim 1-3, which is characterized in that the confirmation dialog box is main including at least one
Process confirms that dialog box and an at least plug-in unit process confirm dialog box.
5. according to the method described in claim 4, it is characterized in that, it is described receive that client sends exit browser instructions
Before step further include:
After host process and/or plug-in unit process initiation, the confirmation dialog box note that the host process and/or plug-in unit process are sent is received
Volume request;
Judge whether corresponding confirmation dialog box has been registered, if so, exiting register flow path;Otherwise
The host process and/or the corresponding confirmation dialog box function triggering logical code of plug-in unit process are registered, and will be corresponded to really
Recognize dialog box and confirmation dialog box message queue is added;
Priority ranking is carried out to each confirmation dialog box in the confirmation dialog box message queue.
6. according to the method described in claim 5, it is characterized by further comprising:
During browser execution, when the host process and/or the closing of plug-in unit process, receives the host process and/or insert
The cancellation that part process is sent confirms dialog box registration request;
Dialog box registration request is confirmed according to the cancellation, deletes the confirmation dialog box information registered.
7. a kind of browser controls manager characterized by comprising
Receiving module, for receive client transmission exit browser instructions;
Module is obtained, for exiting browser instructions according to, is obtained from confirmation dialog box message queue and meets predetermined item
The confirmation dialog box of part;
Display module, for showing the confirmation dialog box for meeting predetermined condition in browser window;
Operation module, for closing browser window when receiving user after the confirmation instruction of the confirmation dialog box triggering;
The acquisition module is also used to exit browser instructions according to, traverses the confirmation dialog box message queue;It chooses
Highest priority, and do not reresent detection or have the confirmation dialog box that still user did not chose.
8. manager according to claim 7, which is characterized in that
The operation module is also used to when receiving user after the cancellation instruction of the confirmation dialog box triggering, and cancellation is exited
Browser operation.
9. manager according to claim 7, which is characterized in that
The display module is also used to when user selects no longer prompt options in the confirmation dialog box, and record is current true
Recognize the status information of dialog box;When user triggers again exits browser, the confirmation dialog box is not shown.
10. the manager according to any one of claim 7-9, which is characterized in that the confirmation dialog box includes at least
One host process confirms that dialog box and an at least plug-in unit process confirm dialog box.
11. manager according to claim 10, which is characterized in that further include:
Registration module is sent for after host process and/or plug-in unit process initiation, receiving the host process and/or plug-in unit process
Confirmation dialog box registration request;Judge whether corresponding confirmation dialog box has been registered, if so, exiting register flow path;It is no
Then register the host process and/or plug-in unit process corresponding confirmation dialog box function triggering logical code, and by corresponding confirmation
Confirmation dialog box message queue is added in dialog box;Each confirmation dialog box in the confirmation dialog box message queue is carried out preferential
Grade sequence.
12. manager according to claim 11, which is characterized in that
The registration module is also used to during browser execution, when the host process and/or the closing of plug-in unit process, is connect
Receive the cancellation confirmation dialog box registration request that the host process and/or plug-in unit process are sent;Dialog box is confirmed according to the cancellation
Registration request deletes the confirmation dialog box information registered.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410245413.6A CN105302529B (en) | 2014-06-04 | 2014-06-04 | Browser control method and manager |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410245413.6A CN105302529B (en) | 2014-06-04 | 2014-06-04 | Browser control method and manager |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105302529A CN105302529A (en) | 2016-02-03 |
CN105302529B true CN105302529B (en) | 2019-06-14 |
Family
ID=55199833
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410245413.6A Active CN105302529B (en) | 2014-06-04 | 2014-06-04 | Browser control method and manager |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105302529B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106126221B (en) * | 2016-06-21 | 2019-05-14 | 浪潮电子信息产业股份有限公司 | A kind of list generation method, device and system |
CN106648641A (en) * | 2016-12-09 | 2017-05-10 | 武汉斗鱼网络科技有限公司 | Automatic management method and system for multi-level pop-up boxes on iOS system device |
CN110334299B (en) * | 2019-06-27 | 2023-01-06 | 上海淇馥信息技术有限公司 | Popup window display method and device based on address bar monitoring and electronic equipment |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102542056A (en) * | 2010-12-30 | 2012-07-04 | 微软公司 | Cloud-based web page applications for extending functionality |
CN102566925A (en) * | 2010-12-27 | 2012-07-11 | 微软公司 | Supporting intelligent user interface interactions |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9201687B2 (en) * | 2011-09-02 | 2015-12-01 | Microsoft Technology Licensing, Llc | User interface for process relationship management |
-
2014
- 2014-06-04 CN CN201410245413.6A patent/CN105302529B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102566925A (en) * | 2010-12-27 | 2012-07-11 | 微软公司 | Supporting intelligent user interface interactions |
CN102542056A (en) * | 2010-12-30 | 2012-07-04 | 微软公司 | Cloud-based web page applications for extending functionality |
Also Published As
Publication number | Publication date |
---|---|
CN105302529A (en) | 2016-02-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105637847B (en) | A kind of method, system and readable storage medium storing program for executing that dynamic telephone number is assigned | |
CA2669500C (en) | Enhanced network adapter framework | |
JP7219296B2 (en) | Server, system, user terminal, method and program for messaging service | |
CN104142856B (en) | Service routine call method, system and its smart machine | |
CN109933760A (en) | List generation method, device, computer equipment and computer readable storage medium | |
US8239467B2 (en) | Extending business processes to mobile devices | |
EP2159743A1 (en) | Dynamic node extensions and extension fields for business objects | |
CN101286212A (en) | Business flow path execution method, business flow path engines and its deployment method | |
WO2013177517A1 (en) | Method and apparatus for linking user sessions and establishing identity across channels | |
CN103442138A (en) | Voice control method, device and terminal | |
CN103530338B (en) | Frame for carrying out page rendering on calculation equipment and page generation method | |
CN105205072B (en) | The methods of exhibiting and system of webpage information | |
CN102135895B (en) | System upgrading method and system | |
CN104247378B (en) | Rule-based content analysis is provided to manage the activation of web extensions | |
CN107258072A (en) | The conversation content management method and system and recording medium of chat software | |
CN106663015A (en) | Resuming session states | |
CN102542056A (en) | Cloud-based web page applications for extending functionality | |
CN105302529B (en) | Browser control method and manager | |
CN101202792B (en) | Method and apparatus for processing messages based on relationship between sender and recipient | |
CN108920238A (en) | Operate method, electronic equipment and the computer-readable medium of application | |
CN104067262B (en) | Server side minimum is downloaded and mistake fault shifts | |
US20130059613A1 (en) | System and method for providing end to end interactive mobile applications using sms | |
US9064240B2 (en) | Application based on node types associated with implicit backtracking | |
US20120096096A1 (en) | Mobile communication terminal to provide widget expansion function using message communication, and operation method of the mobile communication terminal | |
EP2977937A1 (en) | Event processing systems and methods |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20221124 Address after: 1402, Floor 14, Block A, Haina Baichuan Headquarters Building, No. 6, Baoxing Road, Haibin Community, Xin'an Street, Bao'an District, Shenzhen, Guangdong 518133 Patentee after: Shenzhen Yayue Technology Co.,Ltd. Address before: 2, 518044, East 403 room, SEG science and Technology Park, Zhenxing Road, Shenzhen, Guangdong, Futian District Patentee before: TENCENT TECHNOLOGY (SHENZHEN) Co.,Ltd. |
|
TR01 | Transfer of patent right |