CN112579220B - Modal popup window display method and device - Google Patents
Modal popup window display method and device Download PDFInfo
- Publication number
- CN112579220B CN112579220B CN201910934409.3A CN201910934409A CN112579220B CN 112579220 B CN112579220 B CN 112579220B CN 201910934409 A CN201910934409 A CN 201910934409A CN 112579220 B CN112579220 B CN 112579220B
- Authority
- CN
- China
- Prior art keywords
- page
- access path
- displayed
- state
- target access
- 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
- 238000000034 method Methods 0.000 title claims abstract description 46
- 230000003993 interaction Effects 0.000 claims description 17
- 238000004891 communication Methods 0.000 claims description 3
- 238000010586 diagram Methods 0.000 description 10
- 238000004590 computer program Methods 0.000 description 6
- 230000008569 process Effects 0.000 description 6
- 230000006870 function Effects 0.000 description 4
- 230000005540 biological transmission Effects 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000012790 confirmation Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
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
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/955—Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Databases & Information Systems (AREA)
- Human Computer Interaction (AREA)
- Data Mining & Analysis (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The application provides a modal popup display method and device, which are used for configuring a corresponding access path for a modal popup and recording the access path in a URL of a page as a page state corresponding to a display page of the modal popup. Therefore, the display state of the modal popup window is reproduced through the page URL.
Description
Technical Field
The application belongs to the technical field of computers, and particularly relates to a modal popup window display method and device.
Background
The modal popup window is one kind of popup window and is mainly used for completing information transmission and user feedback. The modal popup breaks the current operation flow of the user, and other functions on the page cannot be used if the user does not operate on the popup.
The modal popup is usually attached to the bottom page, as shown in fig. 1, when the modal popup is displayed, the modal popup 2 is displayed on the displayed bottom page 1, and the modal popup as a temporary state of the page cannot be reproduced by copying the URL of the page. For example, if a problem occurs when the user a uses the modal popup function of the page, when the problem needs to be sent to another user B to view, when the user B opens the URL corresponding to the page sent by the user a, only the bottom page of the modal popup can be seen, and the content of the modal popup cannot be seen.
Disclosure of Invention
In view of the above, the present application aims to provide a method and a device for displaying a modal popup, so as to solve the problem that the modal popup cannot be reproduced through a URL, and the specific technical scheme is as follows:
in a first aspect, the present application provides a method for displaying a modal popup window, which is applied to a client, and the method includes:
acquiring a URL of a page to be displayed, wherein the URL comprises an access path corresponding to a preset page state of the page to be displayed, and the preset page state comprises a first page state of only displaying the page to be displayed or a second page state of simultaneously displaying the page to be displayed and an associated modal popup window;
analyzing the URL of the page to be displayed to obtain a target access path;
and if the target access path is the access path corresponding to the second page state, displaying the page to be displayed and the associated modal popup according to the target access path.
In a possible implementation manner of the first aspect, the method further includes:
and if the target access path is the access path corresponding to the first page state, displaying only the page to be displayed according to the target access path.
In another possible implementation manner of the first aspect, if the target access path is an access path corresponding to the first page state, displaying only the page to be displayed according to the target access path includes:
when the target access path is the access path corresponding to the first page state, setting all mode popups associated with the page to be displayed to be in a hidden state;
and hiding all modal popups associated with the page to be displayed according to the hiding state, and displaying the view of the page to be displayed.
In another possible implementation manner of the first aspect, if the target access path is an access path corresponding to the second page state, displaying the page to be displayed and the associated modal popup according to the target access path includes:
when the target access path is the access path corresponding to the second page state, setting a modal popup window corresponding to the target access path to be in a display state;
and displaying the page to be displayed and displaying a modal popup window corresponding to the target access path on the page to be displayed according to the display state.
In another possible implementation manner of the first aspect, the acquiring a URL of a page to be displayed includes:
detecting an interaction event generated by an operation body operating the page to be displayed;
and analyzing the interaction event to obtain the URL of the page to be displayed.
In another possible implementation manner of the first aspect, the obtaining, by the client, the URL of the page to be displayed includes:
and acquiring the URL of the page to be displayed from the address bar of the browser.
In a second aspect, the present application further provides a modal popup window display device, applied to a client, where the device includes:
the first acquisition module is used for acquiring a URL of a page to be displayed, wherein the URL comprises an access path corresponding to a preset page state of the page to be displayed, and the preset page state comprises a first page state of only displaying the page to be displayed or a second page state of simultaneously displaying the page to be displayed and an associated modal popup window;
the analysis module is used for analyzing the URL of the page to be displayed to obtain a target access path;
and the first display module is used for displaying the page to be displayed and the associated modal popup window according to the target access path if the target access path is the access path corresponding to the second page state.
In a possible implementation manner of the second aspect, the first display module includes:
the state setting sub-module is used for setting a modal popup window corresponding to the target access path to be in a display state when the target access path is the access path corresponding to the second page state;
and the display sub-module is used for displaying the page to be displayed and displaying the modal popup window corresponding to the target access path on the page to be displayed according to the display state.
In a third aspect, the present application also provides an apparatus comprising: at least one processor, and at least one memory, bus, coupled to the processor;
the processor and the memory complete communication with each other through the bus;
the processor is configured to invoke the program instructions in the memory to execute the method for displaying a modal popup according to any one of the possible implementation manners of the first aspect.
In a fourth aspect, the present application further provides a storage medium, where a program is stored, where the program is loaded and executed by a processor, to implement the method for displaying a modal popup according to any possible implementation manner of the first aspect.
According to the modal popup display method provided by the application, the corresponding access path is configured for the modal popup, and the access path is used as a page state corresponding to the display page of the modal popup to be recorded in the URL of the page. Therefore, the display state of the modal popup window is reproduced through the page URL.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of a page displaying a modal pop-up;
FIG. 2 is a flow chart of a method for displaying a modal popup according to the present application;
FIG. 3 is a flowchart of another method for displaying a modal popup according to the present application;
fig. 4 is a schematic structural diagram of a modal popup window display device provided by the present application;
fig. 5 is a schematic structural diagram of another display device for a modal popup window according to the present application;
fig. 6 is a schematic structural diagram of an apparatus provided by the present application.
Detailed Description
The inventor of the application finds that the modal popup as a temporary state of the page cannot be recorded in the URL of the page, and therefore the modal popup cannot be reproduced through the URL of the page. In order to solve the technical problem, the application provides a modal popup display method, which configures a corresponding access path for a modal popup, and records the access path as a page state corresponding to a display page of the modal popup in a URL of a page, namely, records the access path of the modal popup as a page state of a bottom page in the URL of the page, thereby realizing the purpose of opening the modal popup directly through the URL.
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
Referring to fig. 2, a flowchart of a method for displaying a modal popup window according to the present application is shown, where the method is applied to a client, for example, a browser or other application. As shown in fig. 2, the method comprises the steps of:
s110, acquiring the URL of the page to be displayed.
The page to be displayed may be any one of a web site or an application program.
The URL is a uniform resource locator, and the client uses the front-end route to analyze the path in the URL, obtains the corresponding page content according to the path and returns the page content to the user. Front-end routing does not refer to a network device router, but rather a state manager of different front-end pages for maintaining a mapping relationship between each URL and a corresponding handler, where the handler may include all operations required for page loading.
In the embodiment of the application, a corresponding access path is configured for the modal popup in advance, and the page state when the modal popup is displayed is represented and recorded in the URL of the page by utilizing the access path corresponding to the modal popup, so that the page state when the modal popup is displayed is recorded in the URL. That is, the URL of a page includes access paths corresponding to the page in different page states.
The page states corresponding to the page nested with the modal popup window comprise a first page state and a second page state, wherein the first page state refers to a state of displaying only the page, and the second page state refers to a state of displaying the page and the modal popup window associated with the page at the same time. In addition, a page may be associated with at least one modal popup, each of which may be displayed as a page state for the page.
It should be noted that, in the page development stage, the page and its nested modal popup are required to be configured, corresponding access paths are configured for each modal popup, and the view of the modal popup is embedded into the corresponding page view. The access path of the modal popup window nested by the underlying page needs to be configured according to the access path of the page.
For example, a modal popup window B is set in the bottom page a, and if the access path corresponding to the bottom page a is "/a", the access path corresponding to the modal popup window B is "/a/B". Meanwhile, a view of the modal popup window B is inserted into a view of the bottom page A, so that the modal popup window B is attached to the bottom page A for display.
In addition, one modal popup may be attached to a different underlying page, for example, the access path of the underlying page C is "/C", and the modal popup B may be attached to the underlying page C in addition to the underlying page a, where the corresponding access path is "/C/B" when the modal popup B is associated with the underlying page C.
And finally, generating the URL corresponding to the page in different page states according to the access path corresponding to the page in different page states in advance.
For example, if the access path corresponding to the bottom page A is "/a", the URL corresponding to the bottom page A in the first page state is "http:// domain.com/a"; when the page A displays the modal popup window B, the corresponding access path is "/a/B", and when the modal popup window B is displayed on the bottom page A (namely, in the second page state), the corresponding URL is "http:// domain.com/a/B".
S120, analyzing the URL of the page to be displayed to obtain a target access path.
Analyzing the obtained URL of the page to be displayed to obtain an access path corresponding to the page, which is called a target access path.
And S130, if the target access path is the access path corresponding to the second page state, displaying the page to be displayed and the associated modal popup window according to the target access path.
And if the access path contained in the URL is the access path corresponding to the page to be displayed in the second page state, displaying the page to be displayed, and displaying a modal popup window corresponding to the target access path on the page to be displayed.
In an application scenario in which the modal popup and the underlying page are in a nested relationship, the modal popup is nested in the view of the underlying page, and is hidden/displayed by configuring a modal popup hiding state/display state. Moreover, the initial state of the modal popup is a hidden state, i.e., the default state of the system is the hidden modal popup.
In one possible implementation manner of the present application, if the target access path is an access path corresponding to a second page state of the display page and the associated modal popup, setting the modal popup corresponding to the access path to the display state; and displaying a bottom page based on the display state, and displaying the modal popup window on the bottom page at the same time.
In a specific implementation manner, the target access path is analyzed to obtain the access path of the bottom page, and meanwhile obtain the access path of the modal popup, and then the corresponding page is displayed according to the access path of the bottom page, and meanwhile, the modal popup corresponding to the access path of the modal popup is displayed on the page.
For example, if the target path obtained by analyzing the URL is "/a/B", where "/a" is known to be the access path corresponding to the page a and "/B" is the access path corresponding to the modal popup B, the page a is displayed, and the modal popup B is displayed on the lower page a.
And S140, if the target access path is the access path corresponding to the first page state, only displaying the page to be displayed according to the target access path.
And if the access path contained in the URL is the access path corresponding to the page in the first page state, displaying only the page to be displayed.
In one embodiment of the application, setting the modal popup to a hidden state may enable only the underlying page to be displayed. Specifically, the initial states of all the modal popups associated with one page may be set to a hidden state, that is, the modal popups are not displayed in a default situation. And when the modal popup window is required to be displayed, setting the modal popup window to be in a display state, so that the modal popup window is displayed on the bottom page.
According to the modal popup display method provided by the embodiment, a corresponding access path is configured for the modal popup, and the access path is used as a page state corresponding to a display page of the modal popup to be recorded in a URL of the page. Therefore, the display state of the modal popup window is reproduced through the page URL.
Referring to fig. 3, a flowchart of another method for displaying a modal popup is shown, and this embodiment mainly introduces a process that a user opens the modal popup through a menu or a button on a page. Under the application scene, the client detects an interaction event generated by operating the physical operation page. Then, the interaction event is analyzed to determine the URL corresponding to the interaction event. And the client returns the corresponding page to the user by analyzing the URL.
As shown in fig. 3, the method comprises the steps of:
s210, the browser detects an interaction event generated by the operation body operating the page to be displayed.
The operation body means an execution body that generates an operation action, for example, if a person directly operates the browser, the operation body at this time is a person; if a person operates the browser by means of an operation tool (e.g., a stylus, etc.), the operation body at this time is the operation tool by which the person is by means of, e.g., a stylus. The interaction event refers to an event generated when an operator operates an object such as a control on a page, for example, when a user clicks a certain control on the page, a modal popup window may be popped up to display information that needs to be confirmed by the user.
S220, analyzing the interaction event to obtain the URL of the page to be displayed corresponding to the interaction event.
For example, after the interaction event is analyzed, if it is determined that the interaction event needs to display a modal popup on the current page, a URL corresponding to the current page when the modal popup is displayed is further obtained.
S230, analyzing the URL of the page to be displayed to obtain a target access path.
And S240, if the target access path is the access path corresponding to the second page state, displaying the page to be displayed and the associated modal popup window according to the target access path.
S250, if the target access path is the access path corresponding to the first page state, only displaying the page to be displayed according to the target access path.
In another application scenario, the user B receives a URL corresponding to the display of the modal popup window B on the page C, where the user B may directly open the page C when the modal popup window B is displayed through the URL. For example, user B may copy the URL directly into the browser's address bar, where the browser parses the URL to display the corresponding page. Alternatively, the URL sent by the user a to the user B is a hyperlink, in which case, the user B directly clicks on the hyperlink to directly call the browser, and fills the URL into the address bar of the browser, and the browser opens the page corresponding to the URL in the address bar. The process of displaying the page of the modal popup window through the URL is the same as the display process in the above embodiment, and will not be described here again.
According to the modal popup display method provided by the embodiment, the corresponding access path is configured for the modal popup, the access path is used as a page state corresponding to the display page of the modal popup to be recorded in the URL of the page, namely, the access path of the modal popup is used as a page state of the bottom page to be recorded in the URL of the page, and therefore the purpose of opening the modal popup directly through the URL is achieved.
On the other hand, the application also provides an embodiment of the modal popup window display device.
Referring to fig. 4, a schematic structural diagram of a modal popup window display device provided by the present application is shown, where the device is applied to a client, and the device includes: a first acquisition module 410, a parsing module 420, and a first display module 430.
The first obtaining module 410 is configured to obtain a URL of a page to be displayed.
The URL comprises an access path corresponding to a preset page state of a page to be displayed, wherein the preset page state comprises a first page state of the page to be displayed or a second page state of the page to be displayed and an associated modal popup window.
In an application scene, detecting an interaction event generated by an operation body operating a page to be displayed, and analyzing the interaction event to obtain a URL of the page to be displayed. For example, clicking a control on a page by a user may pop up a modal window to display information that needs confirmation by the user.
In another application scenario, the URL of the page to be displayed is obtained from an address bar of the browser.
For example, the user B receives the URL corresponding to the display of the modal popup window B on the page C sent by the user a, and at this time, the user B may directly open the page C when the modal popup window B is displayed through the URL.
And the parsing module 420 is configured to parse the URL of the page to be displayed to obtain a target access path.
The first display module 430 is configured to display the page to be displayed and the associated modal popup according to the target access path when the target access path is the access path corresponding to the second page state.
In one embodiment of the present application, the first display module 430 includes: the state setting sub-module and the display sub-module.
The state setting sub-module is configured to set a modal popup corresponding to the target access path to a display state when the target access path is an access path corresponding to the second page state.
The display sub-module is used for displaying a page to be displayed according to the display state and displaying a modal popup window corresponding to the target access path on the page to be displayed.
According to the modal popup display device provided by the embodiment, a corresponding access path is configured for a modal popup, and the access path is recorded in the URL of the page as a page state corresponding to the display page of the modal popup. Therefore, the display state of the modal popup window is reproduced through the page URL.
Referring to fig. 5, a schematic structural diagram of another modal popup window display device according to the present application is shown, and the device further includes a second display module 510 based on the embodiment shown in fig. 4.
The second display module 520 is configured to display only the page to be displayed according to the target access path when the target access path is the access path corresponding to the first page state.
In one possible implementation of the present application, the second display module 520 is specifically configured to:
when the target access path is the access path corresponding to the first page state, setting all mode popup windows associated with the page to be displayed to be in a hidden state; and hiding all modal popups associated with the page to be displayed according to the hiding state, and displaying the view of the page to be displayed.
According to the modal popup window display device provided by the embodiment, when the situation that a user wants to access the bottom page is detected, all modal popup windows associated with the bottom page are set to be in a hidden state, so that the purpose of displaying only the bottom page is achieved.
The modal popup display device includes a processor and a memory, where the first acquiring module 410, the analyzing module 420, the first display module 430, the second display module 520, and the like are all stored as program units, and the processor executes the program units stored in the memory to implement corresponding functions.
The processor includes a kernel, and the kernel fetches the corresponding program unit from the memory. The kernel can set one or more than one, and the page state is recorded in the page URL by adjusting the kernel parameters, so that the page state when the page is displayed in the mode popup window is reproduced through the URL.
The embodiment of the application provides a storage medium, on which a program is stored, which when executed by a processor, implements the modal popup display method.
The embodiment of the application provides a processor which is used for running a program, wherein the program runs to execute the modal popup display method.
An embodiment of the present application provides an apparatus, as shown in fig. 6, including at least one processor 601, and at least one memory 602, a bus 603, connected to the processor 601; wherein, the processor 601 and the memory 602 complete communication with each other through the bus 603; the processor 601 is configured to invoke the program instructions in the memory 602 to perform the modal popup display method described above. The device herein may be a server, PC, PAD, cell phone, etc.
The application also provides a computer program product adapted to perform, when executed on a data processing device, a program initialized with the method steps of:
acquiring a URL of a page to be displayed, wherein the URL comprises an access path corresponding to a preset page state of the page to be displayed, and the preset page state comprises a first page state of only displaying the page to be displayed or a second page state of simultaneously displaying the page to be displayed and an associated modal popup window;
analyzing the URL of the page to be displayed to obtain a target access path;
and if the target access path is the access path corresponding to the second page state, displaying the page to be displayed and the associated modal popup according to the target access path.
In a possible implementation manner of the first aspect, the method further includes:
and if the target access path is the access path corresponding to the first page state, displaying only the page to be displayed according to the target access path.
In another possible implementation manner of the first aspect, if the target access path is an access path corresponding to the first page state, displaying only the page to be displayed according to the target access path includes:
when the target access path is the access path corresponding to the first page state, setting all mode popups associated with the page to be displayed to be in a hidden state;
and hiding all modal popups associated with the page to be displayed according to the hiding state, and displaying the view of the page to be displayed.
In another possible implementation manner of the first aspect, if the target access path is an access path corresponding to the second page state, displaying the page to be displayed and the associated modal popup according to the target access path includes:
when the target access path is the access path corresponding to the second page state, setting a modal popup window corresponding to the target access path to be in a display state;
and displaying the page to be displayed and displaying a modal popup window corresponding to the target access path on the page to be displayed according to the display state.
In another possible implementation manner of the first aspect, the acquiring a URL of a page to be displayed includes:
detecting an interaction event generated by an operation body operating the page to be displayed;
and analyzing the interaction event to obtain the URL of the page to be displayed.
In another possible implementation manner of the first aspect, the obtaining, by the client, the URL of the page to be displayed includes:
and acquiring the URL of the page to be displayed from the address bar of the browser.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, the device includes one or more processors (CPUs), memory, and a bus. The device may also include input/output interfaces, network interfaces, and the like.
The memory may include volatile memory, random Access Memory (RAM), and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM), among other forms in computer readable media, the memory including at least one memory chip. Memory is an example of a computer-readable medium.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises an element.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and variations of the present application will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. which come within the spirit and principles of the application are to be included in the scope of the claims of the present application.
Claims (9)
1. A modal popup display method, characterized by being applied to a client, the method comprising:
acquiring a URL of a page to be displayed, wherein the URL comprises an access path corresponding to a preset page state of the page to be displayed, and the preset page state comprises a first page state of only displaying the page to be displayed or a second page state of simultaneously displaying the page to be displayed and an associated modal popup window;
analyzing the URL of the page to be displayed to obtain a target access path;
if the target access path is the access path corresponding to the second page state, displaying the page to be displayed and the associated modal popup window according to the target access path;
and if the target access path is the access path corresponding to the first page state, displaying only the page to be displayed according to the target access path.
2. The method of claim 1, wherein displaying only the page to be displayed according to the target access path if the target access path is the access path corresponding to the first page state comprises:
when the target access path is the access path corresponding to the first page state, setting all mode popups associated with the page to be displayed to be in a hidden state;
and hiding all modal popups associated with the page to be displayed according to the hiding state, and displaying the view of the page to be displayed.
3. The method of claim 1, wherein if the target access path is the access path corresponding to the second page state, displaying the page to be displayed and the associated modal popup according to the target access path comprises:
when the target access path is the access path corresponding to the second page state, setting a modal popup window corresponding to the target access path to be in a display state;
and displaying the page to be displayed and displaying a modal popup window corresponding to the target access path on the page to be displayed according to the display state.
4. The method of claim 1, wherein the obtaining the URL of the page to be displayed comprises:
detecting an interaction event generated by an operation body operating the page to be displayed;
and analyzing the interaction event to obtain the URL of the page to be displayed.
5. The method of claim 1, wherein the client is a browser, and the obtaining the URL of the page to be displayed comprises:
and acquiring the URL of the page to be displayed from the address bar of the browser.
6. A modal popup display device for use with a client, the device comprising:
the first acquisition module is used for acquiring a URL of a page to be displayed, wherein the URL comprises an access path corresponding to a preset page state of the page to be displayed, and the preset page state comprises a first page state of only displaying the page to be displayed or a second page state of simultaneously displaying the page to be displayed and an associated modal popup window;
the analysis module is used for analyzing the URL of the page to be displayed to obtain a target access path;
the first display module is used for displaying the page to be displayed and the associated modal popup window according to the target access path when the target access path is the access path corresponding to the second page state;
and the second display module is used for displaying only the page to be displayed according to the target access path when the target access path is the access path corresponding to the first page state.
7. The apparatus of claim 6, wherein the first display module comprises:
the state setting sub-module is used for setting a modal popup window corresponding to the target access path to be in a display state when the target access path is the access path corresponding to the second page state;
and the display sub-module is used for displaying the page to be displayed and displaying the modal popup window corresponding to the target access path on the page to be displayed according to the display state.
8. An electronic device, comprising: at least one processor, and at least one memory, bus, coupled to the processor;
the processor and the memory complete communication with each other through the bus;
the processor is configured to invoke program instructions in the memory to perform the modal popup display method of any of claims 1-5.
9. A storage medium having a program stored thereon, wherein the program, when loaded and executed by a processor, implements the modal popup display method of any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910934409.3A CN112579220B (en) | 2019-09-29 | 2019-09-29 | Modal popup window display method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910934409.3A CN112579220B (en) | 2019-09-29 | 2019-09-29 | Modal popup window display method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112579220A CN112579220A (en) | 2021-03-30 |
CN112579220B true CN112579220B (en) | 2023-10-31 |
Family
ID=75111319
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910934409.3A Active CN112579220B (en) | 2019-09-29 | 2019-09-29 | Modal popup window display method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112579220B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2001006393A1 (en) * | 1998-10-08 | 2001-01-25 | Easynet Access Inc. | User interface method |
KR20020084337A (en) * | 2001-04-27 | 2002-11-07 | 아리누리시스템즈 주식회사 | Communication system and method using window for inputting URL of web browser |
CN102855081A (en) * | 2011-06-07 | 2013-01-02 | 三星电子株式会社 | Apparatus and method for providing web browser interface using gesture in device |
CN103001856A (en) * | 2012-12-05 | 2013-03-27 | 华为软件技术有限公司 | Information sharing method and system and instant messaging (IM) client and server |
CN106227887A (en) * | 2016-08-12 | 2016-12-14 | 汪念鸿 | A kind of method returning the former page in browser new page |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040030719A1 (en) * | 2002-02-13 | 2004-02-12 | Jie Wei | Web page based dynamic book for document presentation and operation |
US20120226659A1 (en) * | 2011-02-02 | 2012-09-06 | Ball Derek | System and method for monitoring elements and categorizing users within a network |
-
2019
- 2019-09-29 CN CN201910934409.3A patent/CN112579220B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2001006393A1 (en) * | 1998-10-08 | 2001-01-25 | Easynet Access Inc. | User interface method |
KR20020084337A (en) * | 2001-04-27 | 2002-11-07 | 아리누리시스템즈 주식회사 | Communication system and method using window for inputting URL of web browser |
CN102855081A (en) * | 2011-06-07 | 2013-01-02 | 三星电子株式会社 | Apparatus and method for providing web browser interface using gesture in device |
CN103001856A (en) * | 2012-12-05 | 2013-03-27 | 华为软件技术有限公司 | Information sharing method and system and instant messaging (IM) client and server |
CN106227887A (en) * | 2016-08-12 | 2016-12-14 | 汪念鸿 | A kind of method returning the former page in browser new page |
Non-Patent Citations (1)
Title |
---|
Web会话构造中基于多窗口的路径补充;黄金晶;赵雷;杨季文;;计算机应用与软件(第07期);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN112579220A (en) | 2021-03-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7676699B2 (en) | Event trace conditional logging | |
US7805670B2 (en) | Partial rendering of web pages | |
US8650481B1 (en) | Stable and secure use of content scripts in browser extensions | |
CN109446459B (en) | Page switching method and device, electronic equipment and storage medium | |
US20140137006A1 (en) | Graphical Overlay Related To Data Mining And Analytics | |
EP3436943B1 (en) | Validating stateful dynamic links in mobile applications | |
GB2494027A (en) | Enabling a web application to call at least one native function of a mobile device | |
CN110633156B (en) | Method and device for associating application program with browser, electronic equipment and storage medium | |
CN107040574B (en) | Screenshot and data processing method and device | |
TW201416977A (en) | Webpages with onboard hardware functions | |
EP2839628B1 (en) | Providing rule based analysis of content to manage activation of web extension | |
WO2019242435A1 (en) | Application association for browser | |
US10541854B2 (en) | Component loading based on user interactions | |
WO2021087858A1 (en) | Web application component migration to a cloud computing system | |
WO2019047677A1 (en) | Application download source detection method and apparatus | |
CN112579220B (en) | Modal popup window display method and device | |
WO2016086032A1 (en) | Visual indication method and device | |
CN105739717B (en) | Data inputting method and device | |
CN110708270B (en) | Abnormal link detection method and device | |
CN112527424A (en) | Control method and device for popup window | |
CN112579221A (en) | Modal popup display method and device | |
CN109388313B (en) | Method and device for sending feedback mails | |
CN114968528A (en) | Policy-based information processing method, electronic device, and storage medium | |
CN113626158A (en) | Event agent-based embedded point execution method and device | |
US20190325073A1 (en) | Systems and Methods for Providing Content Items in Situations Involving Suboptimal Network Conditions |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |