CN110209463A - Pop-up shows method and apparatus - Google Patents
Pop-up shows method and apparatus Download PDFInfo
- Publication number
- CN110209463A CN110209463A CN201910532292.6A CN201910532292A CN110209463A CN 110209463 A CN110209463 A CN 110209463A CN 201910532292 A CN201910532292 A CN 201910532292A CN 110209463 A CN110209463 A CN 110209463A
- Authority
- CN
- China
- Prior art keywords
- pop
- window
- target
- webpage
- type
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45504—Abstract machines for programme code execution, e.g. Java virtual machine [JVM], interpreters, emulators
- G06F9/45529—Embedded in an application, e.g. JavaScript in a Web browser
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
This application discloses a kind of pop-ups to show method and apparatus, this method comprises: the Webpage of single-page application is presented;Under conditions of satisfaction shows pop-up to the Webpage, pop-up type to be shown is determined;Call preset pop-up template data and the prompting message with the pop-up type matching;According to the pop-up template data, target pop-up window is loaded and showed on the Webpage, and show the prompting message in the target pop-up window.The scheme of the application can reduce size of code needed for pop-up pop-up in single-page application.
Description
Technical field
This application involves web application technical fields more particularly to a kind of pop-up to show method and apparatus.
Background technique
Single-page is a kind of special web application using (Single-page Application, SPA), it will be all
Activity is confined in a Web page, only when the Web page initializes, loads corresponding hypertext markup language ((Hyper
Text Markup Language, HTML), JavaScript and cascading style sheets (Cascading Style Sheets, CSS)
Equal elements.Once the single-page application will not should be the operation of user moreover, the Web page of single-page application is loaded and completed
And reloading for the page is carried out, and single-page jumps and only refreshes Local resource, due to avoiding reloading for the page, single page
Face application can provide more smooth user experience.
Often it is related to popping up some prompt pop-ups in single-page application, e.g., prompts the mistake of user's input error
Pop-up is prompted, input is prompted successfully successfully to prompt pop-up and some warning pop-ups etc..Due to required prompt in different pop-ups
All difference of content, need that different pop-up codes is arranged for different pop-ups at present in single-page application, to support not
With showing for pop-up.However, since different pop-ups need different pop-up codes, so that the size of code of single-page application is more.
Summary of the invention
In view of this, this application provides a kind of pop-ups to show method and apparatus, bullet is popped up to reduce in single-page application
Size of code needed for window.
To achieve the above object, on the one hand, this application provides a kind of pop-ups to show method, comprising:
The Webpage of single-page application is presented;
Under conditions of satisfaction shows pop-up to the Webpage, pop-up type to be shown is determined;
Call preset pop-up template data and the prompting message with the pop-up type matching;
According to the pop-up template data, is loaded on the Webpage and show target pop-up window, and described
The prompting message is shown in target pop-up window.
Preferably, the preset pop-up template data of the calling and the prompting message with the pop-up type matching, packet
It includes:
Based on the pop-up type, generates pop-up and call function, the pop-up calls function to be used for request call pop-up mould
Plate, and the pop-up calls function instruction to have the pop-up type;
Call function by executing the pop-up, call preset pop-up template data and with the pop-up type matching
Prompting message.
Preferably, it is described call preset pop-up template data and with the prompting message of the pop-up type matching
Simultaneously, further includes:
The prompt icon with the pop-up type matching is called, the prompt icon is used to indicate the notification type of pop-up;
While showing the prompting message in the target pop-up window, further includes:
The prompt icon is shown in the target pop-up window.
It is preferably, described to call preset pop-up template data, comprising:
From preset more set pop-up template datas, the target pop-up template data with the pop-up type matching is called,
Wherein, preset every set pop-up template data includes at least the formatted data of pop-up window, and different pop-up template datas are hit by a bullet
The formatted data of window window is different;
It is described to load and show target pop-up window on the Webpage according to the pop-up template data, and
The prompting message is shown in the target pop-up window, comprising:
According to the formatted data for the pop-up window for including in the target pop-up template data, add in the Webpage
Target pop-up window is carried and showed, and controls the display pattern for showing the prompting message in the target pop-up window.
Preferably, while being loaded on the Webpage and showing target pop-up window, further includes:
It is arranged and starts the timer with the target pop-up windows associate, when the timer has the timing of setting
It is long;
When reaching the timing length of the timer setting, the target pop-up showed in the Webpage is closed
Window.
Another aspect, present invention also provides a kind of pop-up display devices, comprising:
Page display unit, the Webpage that single-page is applied for rendering;
Type determining units, for determining bullet to be shown under conditions of satisfaction shows pop-up to the Webpage
Window type;
Data call unit disappears for calling preset pop-up template data and with the prompt of the pop-up type matching
Breath;
Pop-up shows unit, for loading on the Webpage and showing target according to the pop-up template data
Pop-up window, and the prompting message is shown in the target pop-up window.
Preferably, the data call unit, comprising:
Function generation unit generates pop-up and calls function, the pop-up calls function to use for being based on the pop-up type
In request call pop-up template, and the pop-up calls function instruction to have the pop-up type;
Interface call unit, for calling function by executing the pop-up, call preset pop-up template data and
With the prompting message of the pop-up type matching.
Preferably, further includes:
Icon call unit, for the preset pop-up template data of the data call cell call and with the bullet
While the prompting message of window type matching, the prompt icon with the pop-up type matching is called, the prompt icon is used for
Indicate the notification type of pop-up;
Icon display unit shows the prompting message for showing unit in target pop-up window in the pop-up
Meanwhile the prompt icon is shown in the target pop-up window.
Preferably, the pop-up call unit or the interface call unit are calling preset pop-up template data
When, it is specifically used for:
From preset more set pop-up template datas, the target pop-up template data with the pop-up type matching is called,
Wherein, preset every set pop-up template data includes at least the formatted data of pop-up window, and different pop-up template datas are hit by a bullet
The formatted data of window window is different;
The pop-up shows unit, specifically, for according to the pop-up window for including in the target pop-up template data
Formatted data, load and show target pop-up window in the Webpage, and control in the target pop-up window
Show the display pattern of the prompting message.
Preferably, further includes:
Timer setting unit loads on Webpage for showing unit in the pop-up and shows target pop-up window
While mouth, it is arranged and starts the timer with the target pop-up windows associate, when the timer has the timing of setting
It is long;
Control unit is closed, for closing in the Webpage when reaching the timing length of the timer setting
The target pop-up window showed.
It can be seen via above technical scheme that in the embodiment of the present application, being suitble to different pop-up types due to being prefixed
Pop-up template data and different pop-up type, under conditions of meeting Webpage apply to single-page display pop-up,
The prompting message of the pop-up type matching of preset pop-up template data and pop-up to be shown can be then called, in this way, according to
Pop-up window can be loaded and showed on the Webpage according to the pop-up template data, and is shown in the pop-up window
Prompting message, it is seen then that the display that a variety of different types of pop-ups in single-page application can be supported by the scheme of the application, from
Without a set of code is separately provided for each type of pop-up, to advantageously reduce required configuration in single-page application
The size of code of pop-up code.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
The embodiment of application for those of ordinary skill in the art without creative efforts, can also basis
The attached drawing of offer obtains other attached drawings.
A kind of pop-up that Fig. 1 shows the application shows a kind of flow diagram of method;
Fig. 2 shows a kind of schematic diagrames of display reminding icon on the pop-up window of the application;
A kind of pop-up that Fig. 3 shows the application shows another flow diagram of method;
Fig. 4 shows a kind of a kind of composed structure schematic diagram of pop-up display device of the application.
Specific embodiment
The scheme of the application shows pop-up window suitable for single-page application, can not need for each type of
In the case that pop-up code is separately provided in pop-up, the display of different pop-up windows is realized, be hit by a bullet to reduce single-page application
The size of code of window code.
Such as, referring to Fig. 1, it illustrates a kind of flow diagram that a kind of pop-up of the application shows method, the present embodiment
Method can be applied to browser, and the method for the present embodiment includes:
The Webpage of single-page application is presented in S101.
After single-page application operation, the Web page of single-page application, the application couple can be loaded by browser
In record and the detailed process for the Webpage that the single-page is applied can be presented with no restrictions.
S102 determines pop-up type to be shown under conditions of satisfaction shows pop-up to the Webpage.
Wherein, in Webpage meet display pop-up condition can there are many may: such as, detecting the webpage page
Then need to export pop-up prompt information input error or correct in the case where the correct perhaps mistake of information input in face.?
In the case of this kind, the mistake of confirmation input information or correct, it may be possible to which browser is complete to verify, it is also possible to be browsing
Device gets the correct or wrong instruction of information input from server side.
For example, in the log editing area of Webpage there are log submit in the case where, then browser can be confirmed whether
The log of submission is detected, if it is, can export for prompting log to submit successful pop-up;If it is not, then can be defeated
Out for prompting the pop-up of log submittal error.In another example if the user inputted in the Webpage of the list web application
The information that name and modification logging etc. need server side to verify, then the user name that can be inputted by server to user and log in
After password is verified, the prompt for being proved to be successful or failing is returned to browser, so that browser determination currently needs to pop up
The pop-up of success or failure.
For another example, it when there is wrong exception in detecting Webpage, then may need to export different for prompting
Normal or alarm warning pop-up.
Correspondingly, for the different situations for showing the condition of pop-up to the Webpage, the bullet of pop-up to be shown is met
Window type also can there are many, it is e.g., correct for prompt information or input successfully successfully prompts pop-up;For another example, for prompting
Information input mistake or information submit the failure prompt pop-up of failure;For another example, above-mentioned warning pop-up.
Wherein, browser can be determined according to the trigger condition for showing pop-up into Webpage is currently triggered
Need to show which type of pop-up.
S103 calls preset pop-up template data and the prompting message with the pop-up type matching.
Wherein, preset pop-up template data may include basic data needed for showing pop-up window, be based on the pop-up
Template data can show pop-up window.
It is understood that pop-up template data is only basic data needed for showing pop-up window, and it is not related to
The prompting message of required presentation in pop-up window.Wherein, prompting message is in the information in pop-up window for prompting user
Hold.
Wherein, the prompting message prompted needed for different types of pop-up also club's difference, but same type of pop-up institute
The message content of prompt is substantially similar, and therefore, the embodiment of the present application can preset a variety of prompts suitable for different pop-up types
Message, in this way, available to suitable prompt information according to pop-up type to be shown.
Alternatively, the application can encapsulate in advance be uniformly processed interface function (function it is also assumed that
It is the method being commonly called as), in the public function, parameter value that can be different by the setting calls pop-up template number to realize
Accordingly and it is suitble to the prompting messages of different pop-up types.Specifically, the pop-up type can be based on, generates pop-up and calls function,
The pop-up calls function to be used for request call pop-up template, and the pop-up calls function instruction to have the pop-up type;Correspondingly, logical
It crosses and executes the pop-up and call function, call preset pop-up template data and the prompting message with the pop-up type matching.
Wherein, which calls function that can believe to be preset for realizing calling pop-up template data and prompt
The unified function of breath, it is only different according to the type of the pop-up of required calling, the bullet in pop-up calling function can be set
The parameter value of window type.
For example, pop-up calls function can be for " ToastMsg (message, type) " wherein, Message is to execute the bullet
Window call that function returned as a result, i.e. results such as pop-up template data and prompting message;Type expression is to represent successfully, is lost
It loses, the pop-up type alerted etc..
Optionally, at least may be used also other than completing the load of pop-up window and the data showed in the pop-up template data
To include the formatted data of pop-up window, e.g., the size of pop-up window, background color, text size in pop-up window, pop-up
The color of icon, edge of window away from etc..
Further, it is contemplated that different types of pop-up also can difference, the application might be used also to the call format of window
With preset more set pop-up template datas, wherein every set pop-up template data includes at least the formatted data of pop-up window, and different
The formatted data of pop-up window is different in pop-up template data.It, can be from preset correspondingly, when calling pop-up template data
In more set pop-up template datas, the target pop-up template data with the pop-up type matching is called, wherein for the ease of distinguishing,
Pop-up template data with pop-up type matching is known as target pop-up template data.
S104 is loaded on the Webpage according to the pop-up template data and is showed target pop-up window, and in the mesh
The prompting message is shown in mark pop-up window.
Wherein, for the ease of distinguishing, the pop-up window shown in Webpage is known as target pop-up window.
Such as, the template that the pop-up template data shows pop-up window is loaded, to show required presentation in Webpage
Target pop-up window, meanwhile, will be prompted to be shown in the target pop-up window, be shown with completing pop-up.
Optionally, the target pop-up template with pop-up type matching to be shown is being obtained from more set pop-up template datas
In the case where data, due to including the formatted data of pop-up window in target pop-up template data, can be according to target
The formatted data for the pop-up window for including in pop-up template data loads in Webpage and shows target pop-up window, with
So that the pattern of target pop-up window meets the pattern set in the formatted data;At the same time it can also control in target pop-up window
The display pattern of display reminding message in mouthful.Wherein, which may include the display font and font of prompting message
Size etc..
Optionally, prompt icon can be also shown in certain pop-up windows, and icon is prompted to be used to prompt the prompt of pop-up
Type.As shown in Fig. 2, a kind of schematic diagram of the prompt icon shown it illustrates pop-up window.It is to be saved with log in Fig. 2
Scene for, after user successfully saves log, browser can be exported in Webpage for prompt log save at
The pop-up 201 of function is also shown useful in the pop-up 201 other than the prompting message 202 for showing " log saves successfully "
In the prompt icon 203 that prompt pop-up window is successful types.
Correspondingly, the application while step S103, may call upon the prompt icon with the pop-up type matching.
On this basis, it while showing the prompting message in target pop-up window, can also be shown in the target pop-up window
The prompt icon.
Certainly, some pop-ups are relatively simple, may not include prompt icon, in that case, if call less than
Icon is prompted, then can be showed according to the introduction of front, without showing the prompt icon.
As it can be seen that in the embodiment of the present application, the pop-up template data and not of different pop-up types is suitble to due to being prefixed
Preset bullet can be then called under conditions of meeting the Webpage applied to single-page display pop-up with pop-up type
The prompting message of window template data and the pop-up type matching of pop-up to be shown, in this way, just according to the pop-up template data
Pop-up window can be loaded and showed on the Webpage, and shows prompting message in the pop-up window, it is seen then that passed through
The scheme of the application can be applied with single-page in a variety of different types of pop-ups display, without be directed to each type of bullet
A set of code is separately provided in window, to advantageously reduce the size of code of the pop-up code of required configuration in single-page application.
In order to make it easy to understand, the case where to show prompt icon in pop-up window, and it is unified by encapsulation with the application
Call a function to realize call different pop-up templates, prompting message and prompt icon in case where illustrate.As shown in figure 3,
It illustrates another flow diagram that a kind of pop-up of the application shows method, the method for the present embodiment may include:
The Webpage of single-page application is presented in S301.
After single-page application operation, the Web page of single-page application, the application couple can be loaded by browser
In record and the detailed process for the Webpage that the single-page is applied can be presented with no restrictions.
S302 determines pop-up type to be shown under conditions of satisfaction shows pop-up to the Webpage.
Step S101 and S102 may refer to the related introduction of preceding embodiment, and details are not described herein.
S303 is based on the pop-up type, generates pop-up and calls function.
Wherein, pop-up call function be used for request call pop-up template, and the pop-up call function instruction have it is to be shown
The mark of the pop-up type and the corresponding prompt icon of the pop-up type.
Pop-up call function be encapsulate in advance be used to call the function (or referred to as method) of pop-up, and browser according to
The pop-up type of the pop-up of required calling can determine that the parameter value and the prompt figure of pop-up type in function are called in the pop-up
Target indicates name, is suitble to the pop-up type and the pop-up tune comprising prompting the pop-up of icon for calling so as to construct
Use function.
Such as, a set of pop-up component can be stored in advance in browser, be provided in pop-up component for selecting prompting message
Mark and the control information such as pop-up pattern class name, confirming button needed for can also having some pop-ups, cancel button etc.
Class name.The entrance of a modification pop-up can be provided, in the pop-up component to control by calling the entrance that object is written
Pop-up variation.Wherein, the object being written herein can call function for the pop-up generated.
It illustrates, it is assumed that the pop-up calls function can be with are as follows: " ToastMsg (message, type, iconclass) "
Wherein, Message is to execute that the pop-up calls that function returned as a result, i.e. results such as pop-up template data and prompting message;
Type expression is represents successfully, and unsuccessfully, the pop-up type alerted etc., for example, indicate successful pop-up type, the value of type can be with
It is 1;And the value of the pop-up of the Fail Type type can be 0, other numbers can be set in other kinds of pop-up.
Iconclass is the name for prompting icon, wherein different types of pop-up can prompt the title of icon would also vary from.
Based on this, browser can construct corresponding pop-up and call function.
S304 calls function, invocation target pop-up template data, the prompt with the pop-up type matching by executing pop-up
Message and prompt icon.
Wherein, prompt icon is used to prompt the notification type of the pop-up.
It is understood that in conjunction with step S303 introduction it is found that generate pop-up call function after, execute the pop-up
Call function be actually call corresponding interface (e.g., the interface of pop-up component) with obtain corresponding pop-up template data,
Prompting message and prompt icon.In this way, calling the Message in function that can return to corresponding data by the pop-up.
Wherein, a set of pop-up template data which can be preset is also possible to preset from covering more
Pop-up template data in the pop-up template data with the pop-up type matching selected.Such as, it is being prefixed different type bullet
In the case where the pop-up template data that window is applicable in, function is called by executing the pop-up, it can be based on the pop-up in the function
Type gets the target pop-up template data of pop-up type matching.It specifically may refer to the correlation of front for this kind of situation
It introduces, details are not described herein.
S305, according to the formatted data for the pop-up window for including in the target pop-up template data, in the Webpage
Target pop-up window, the display reminding icon on target pop-up window are loaded and showed, and is controlled in the target pop-up window
Show the display pattern of the prompting message.
In the case where a kind of possible, in the application above embodiments, loaded on Webpage and show target bullet
While window window, further includes: be arranged and start the timer with the target pop-up windows associate, wherein the timer has
The timing length of setting.Correspondingly, closing this showed in the Webpage when reaching the timing length of timer setting
Target pop-up window.
By can effectively control the aobvious of each pop-up window to show that timer is arranged in pop-up window in Webpage
Show duration, avoid single pop-up window that from can not being automatically closed, and leads to the case where showing excessive pop-up window in Webpage.
Certainly, in the case where user actively closes pop-up window, then user's operation can be responded, directly closing pop-up window
Mouthful, without being limited by timer duration.
It, can be with after being loaded on the Webpage and showing target pop-up window in alternatively possible situation:
It detects in Webpage there are in the case where page jump, closes target pop-up window.Once that is, in Webpage
In the presence of the local updating occurred due to page jump, and target pop-up window can be directly closed, it can also be to avoid webpage page
A large amount of unrelated pop-up windows are presented in face.
A kind of pop-up of corresponding the application shows method, and present invention also provides a kind of pop-up display devices.Such as Fig. 4 institute
Show, it illustrates a kind of a kind of composed structure schematic diagram of pop-up display device of the application, the apparatus may include:
Page display unit 401, the Webpage that single-page is applied for rendering;
Type determining units 402, for determining to be shown under conditions of satisfaction shows pop-up to the Webpage
Pop-up type;
Data call unit 403, for calling preset pop-up template data and being mentioned with the pop-up type matching
Show message;
Pop-up shows unit 404, for loading on the Webpage and showing mesh according to the pop-up template data
Pop-up window is marked, and shows the prompting message in the target pop-up window.
Optionally, the data call unit, comprising:
Function generation unit generates pop-up and calls function, the pop-up calls function to use for being based on the pop-up type
In request call pop-up template, and the pop-up calls function instruction to have the pop-up type;
Interface call unit, for calling function by executing the pop-up, call preset pop-up template data and
With the prompting message of the pop-up type matching.
In one possible implementation, which can also include:
Icon call unit, for the preset pop-up template data of the data call cell call and with the bullet
While the prompting message of window type matching, the prompt icon with the pop-up type matching is called, the prompt icon is used for
Indicate the notification type of pop-up;
Icon display unit shows the prompting message for showing unit in target pop-up window in the pop-up
Meanwhile the prompt icon is shown in the target pop-up window.
In one possible implementation, the pop-up call unit or the interface call unit are preset in calling
Pop-up template data when, be specifically used for:
From preset more set pop-up template datas, the target pop-up template data with the pop-up type matching is called,
Wherein, preset every set pop-up template data includes at least the formatted data of pop-up window, and different pop-up template datas are hit by a bullet
The formatted data of window window is different;
The pop-up shows unit, specifically, for according to the pop-up window for including in the target pop-up template data
Formatted data, load and show target pop-up window in the Webpage, and control in the target pop-up window
Show the display pattern of the prompting message.
Optionally, the device of the present embodiment can also include:
Timer setting unit loads on Webpage for showing unit in the pop-up and shows target pop-up window
While mouth, it is arranged and starts the timer with the target pop-up windows associate, when the timer has the timing of setting
It is long;
Control unit is closed, for closing in the Webpage when reaching the timing length of the timer setting
The target pop-up window showed.
It should be noted that all the embodiments in this specification are described in a progressive manner, each embodiment weight
Point explanation is the difference from other embodiments, and the same or similar parts between the embodiments can be referred to each other.
For device class embodiment, since it is basically similar to the method embodiment, so being described relatively simple, related place ginseng
See the part explanation of embodiment of the method.
The foregoing description of the disclosed embodiments can be realized those skilled in the art or using the present invention.To this
A variety of modifications of a little embodiments will be apparent for a person skilled in the art, and the general principles defined herein can
Without departing from the spirit or scope of the present invention, to realize in other embodiments.Therefore, the present invention will not be limited
It is formed on the embodiments shown herein, and is to fit to consistent with the principles and novel features disclosed in this article widest
Range.
The above is only the preferred embodiment of the present invention, it is noted that those skilled in the art are come
It says, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications also should be regarded as
Protection scope of the present invention.
Claims (10)
1. a kind of pop-up shows method characterized by comprising
The Webpage of single-page application is presented;
Under conditions of satisfaction shows pop-up to the Webpage, pop-up type to be shown is determined;
Call preset pop-up template data and the prompting message with the pop-up type matching;
According to the pop-up template data, is loaded on the Webpage and show target pop-up window, and in the target
The prompting message is shown in pop-up window.
2. pop-up according to claim 1 shows method, which is characterized in that it is described call preset pop-up template data with
And the prompting message with the pop-up type matching, comprising:
Based on the pop-up type, generating pop-up and call function, the pop-up calls function to be used for request call pop-up template, and
The pop-up calls function instruction to have the pop-up type;
Function is called by executing the pop-up, call preset pop-up template data and is mentioned with the pop-up type matching
Show message.
3. pop-up according to claim 1 shows method, which is characterized in that call preset pop-up template data described
And while prompting message with the pop-up type matching, further includes:
The prompt icon with the pop-up type matching is called, the prompt icon is used to indicate the notification type of pop-up;
While showing the prompting message in the target pop-up window, further includes:
The prompt icon is shown in the target pop-up window.
4. pop-up according to claim 1 or 2 shows method, which is characterized in that described to call preset pop-up template number
According to, comprising:
From preset more set pop-up template datas, the target pop-up template data with the pop-up type matching is called, wherein
Preset every set pop-up template data includes at least the formatted data of pop-up window, and pop-up window in different pop-up template datas
Formatted data it is different;
It is described according to the pop-up template data, loaded on the Webpage and show target pop-up window, and described
The prompting message is shown in target pop-up window, comprising:
According to the formatted data for the pop-up window for including in the target pop-up template data, loaded simultaneously in the Webpage
Show target pop-up window, and controls the display pattern for showing the prompting message in the target pop-up window.
5. pop-up according to claim 1 shows method, which is characterized in that loaded on the Webpage and show mesh
While marking pop-up window, further includes:
It is arranged and starts the timer with the target pop-up windows associate, the timer has the timing length of setting;
When reaching the timing length of the timer setting, the target pop-up window showed in the Webpage is closed
Mouthful.
6. a kind of pop-up display device characterized by comprising
Page display unit, the Webpage that single-page is applied for rendering;
Type determining units, for determining pop-up class to be shown under conditions of satisfaction shows pop-up to the Webpage
Type;
Data call unit, the prompting message for calling preset pop-up template data and with the pop-up type matching;
Pop-up shows unit, for loading on the Webpage and showing target pop-up according to the pop-up template data
Window, and the prompting message is shown in the target pop-up window.
7. pop-up display device according to claim 6, which is characterized in that the data call unit, comprising:
Function generation unit generates pop-up and calls function, the pop-up calls function for asking for being based on the pop-up type
It asks and calls pop-up template, and the pop-up calls function instruction to have the pop-up type;
Interface call unit, for calling function by executing the pop-up, call preset pop-up template data and with institute
State the prompting message of pop-up type matching.
8. pop-up display device according to claim 6, which is characterized in that further include:
Icon call unit, for the preset pop-up template data of the data call cell call and with the pop-up class
While type matched prompting message, the prompt icon with the pop-up type matching is called, the prompt icon is used to indicate
The notification type of pop-up;
Icon display unit shows the same of the prompting message for showing unit in target pop-up window in the pop-up
When, the prompt icon is shown in the target pop-up window.
9. pop-up display device according to claim 6 or 7, which is characterized in that the pop-up call unit or described
Interface call unit is specifically used for when calling preset pop-up template data:
From preset more set pop-up template datas, the target pop-up template data with the pop-up type matching is called, wherein
Preset every set pop-up template data includes at least the formatted data of pop-up window, and pop-up window in different pop-up template datas
Formatted data it is different;
The pop-up shows unit, specifically, for the lattice according to the pop-up window for including in the target pop-up template data
Formula data load and are showed in the Webpage target pop-up window, and control and show in the target pop-up window
The display pattern of the prompting message.
10. pop-up display device according to claim 6, which is characterized in that further include:
Timer setting unit loads on Webpage for showing unit in the pop-up and shows target pop-up window
Meanwhile being arranged and starting the timer with the target pop-up windows associate, the timer has the timing length of setting;
Control unit is closed, for closing in the Webpage and showing when reaching the timing length of the timer setting
The target pop-up window.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910532292.6A CN110209463A (en) | 2019-06-19 | 2019-06-19 | Pop-up shows method and apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910532292.6A CN110209463A (en) | 2019-06-19 | 2019-06-19 | Pop-up shows method and apparatus |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110209463A true CN110209463A (en) | 2019-09-06 |
Family
ID=67793584
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910532292.6A Pending CN110209463A (en) | 2019-06-19 | 2019-06-19 | Pop-up shows method and apparatus |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110209463A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110673910A (en) * | 2019-09-11 | 2020-01-10 | 上海二三四五网络科技有限公司 | Control method and control device for controlling popup window display in app system |
CN110673971A (en) * | 2019-09-30 | 2020-01-10 | 北京金山云网络技术有限公司 | Processing method and device for expiration of login session and user terminal |
CN110955482A (en) * | 2019-11-27 | 2020-04-03 | 维沃移动通信有限公司 | Popup display method, apparatus, electronic device and medium |
CN111580804A (en) * | 2020-03-31 | 2020-08-25 | 完美世界(北京)软件科技发展有限公司 | Software project development method and device |
CN113190776A (en) * | 2021-05-11 | 2021-07-30 | 上海哔哩哔哩科技有限公司 | Popup window display method and system |
CN114416265A (en) * | 2022-01-26 | 2022-04-29 | 北京得间科技有限公司 | Interface authority display method, electronic equipment and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102194003A (en) * | 2011-05-26 | 2011-09-21 | 重庆猪八戒网络有限公司 | Web page popup window method and device |
CN102945341A (en) * | 2012-10-23 | 2013-02-27 | 北京奇虎科技有限公司 | Method and device for intercepting popup |
CN104978201A (en) * | 2015-07-14 | 2015-10-14 | 安一恒通(北京)科技有限公司 | Method and device for controlling automatic pop-up window display |
CN105635442A (en) * | 2015-12-18 | 2016-06-01 | 北京奇虎科技有限公司 | Method and apparatus for displaying message on mobile terminal |
CN106776723A (en) * | 2016-11-17 | 2017-05-31 | 福建中金在线信息科技有限公司 | A kind of ejection layer display methods and device |
CN107291443A (en) * | 2017-05-05 | 2017-10-24 | 北京金山安全软件有限公司 | Information processing method and device and terminal equipment |
CN107808010A (en) * | 2017-11-17 | 2018-03-16 | 北京锐安科技有限公司 | A kind of pop-up page generation method, device, browser and storage medium |
-
2019
- 2019-06-19 CN CN201910532292.6A patent/CN110209463A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102194003A (en) * | 2011-05-26 | 2011-09-21 | 重庆猪八戒网络有限公司 | Web page popup window method and device |
CN102945341A (en) * | 2012-10-23 | 2013-02-27 | 北京奇虎科技有限公司 | Method and device for intercepting popup |
CN104978201A (en) * | 2015-07-14 | 2015-10-14 | 安一恒通(北京)科技有限公司 | Method and device for controlling automatic pop-up window display |
CN105635442A (en) * | 2015-12-18 | 2016-06-01 | 北京奇虎科技有限公司 | Method and apparatus for displaying message on mobile terminal |
CN106776723A (en) * | 2016-11-17 | 2017-05-31 | 福建中金在线信息科技有限公司 | A kind of ejection layer display methods and device |
CN107291443A (en) * | 2017-05-05 | 2017-10-24 | 北京金山安全软件有限公司 | Information processing method and device and terminal equipment |
CN107808010A (en) * | 2017-11-17 | 2018-03-16 | 北京锐安科技有限公司 | A kind of pop-up page generation method, device, browser and storage medium |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110673910A (en) * | 2019-09-11 | 2020-01-10 | 上海二三四五网络科技有限公司 | Control method and control device for controlling popup window display in app system |
CN110673910B (en) * | 2019-09-11 | 2023-05-26 | 上海二三四五网络科技有限公司 | Control method and control device for controlling popup window display in app system |
CN110673971A (en) * | 2019-09-30 | 2020-01-10 | 北京金山云网络技术有限公司 | Processing method and device for expiration of login session and user terminal |
CN110955482A (en) * | 2019-11-27 | 2020-04-03 | 维沃移动通信有限公司 | Popup display method, apparatus, electronic device and medium |
CN110955482B (en) * | 2019-11-27 | 2023-12-05 | 维沃移动通信有限公司 | Popup window display method and device, electronic equipment and medium |
CN111580804A (en) * | 2020-03-31 | 2020-08-25 | 完美世界(北京)软件科技发展有限公司 | Software project development method and device |
CN111580804B (en) * | 2020-03-31 | 2023-05-26 | 完美世界(北京)软件科技发展有限公司 | Method and device for developing software project |
CN113190776A (en) * | 2021-05-11 | 2021-07-30 | 上海哔哩哔哩科技有限公司 | Popup window display method and system |
CN113190776B (en) * | 2021-05-11 | 2022-11-01 | 上海哔哩哔哩科技有限公司 | Popup window display method and system |
CN114416265A (en) * | 2022-01-26 | 2022-04-29 | 北京得间科技有限公司 | Interface authority display method, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110209463A (en) | Pop-up shows method and apparatus | |
US11741183B2 (en) | Systems and methods for hosted applications | |
CN111104315A (en) | Test script generation method and device and computer readable storage medium | |
CN106648779B (en) | A kind of intelligent terminal suspended window authority setting method | |
CN106371752B (en) | A kind of the virtual key implementation method and device of Android system intelligent terminal | |
WO2017101663A1 (en) | Application guiding method and apparatus, and terminal | |
AU2018241159B2 (en) | Contextual solicitation in a starter application | |
CN110069177A (en) | Electronic device, application program guiding method of operating and storage medium | |
CN104486430A (en) | Method, device and client for realizing data sharing in mobile browser client | |
CN105814591A (en) | Verification information transmission method and terminal | |
US9342275B2 (en) | System and method for automatically declaring variables | |
CN110750415B (en) | Interface service configuration method, device, medium and computer equipment | |
CN110203209A (en) | A kind of phonetic prompt method and device | |
CN111949334B (en) | Sandbox environment-based virtual application starting control method, device and equipment | |
CN106940674A (en) | The triggering method and device of object event in a kind of mobile terminal | |
WO2017214665A1 (en) | Improvements in or relating to forms | |
JP2007172098A (en) | Information processing system and information processing server device | |
CN112181272A (en) | Information display method, information display device, electronic equipment and computer readable storage medium | |
CN110659082A (en) | Application program interface display method and device, terminal and storage medium | |
CN108681471A (en) | Application control method, device, electronic equipment and readable storage medium storing program for executing | |
CN101212239A (en) | Method for providing mobile telephone anti-theft and safety function with separate accessories | |
CN103984730B (en) | information processing method and electronic equipment | |
CN116304441A (en) | Page locking method, device, medium and equipment | |
CN111090403B (en) | Character input method and system for ink screen equipment | |
CN111638917A (en) | Application start limiting method, device and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190906 |
|
RJ01 | Rejection of invention patent application after publication |