A page pop-up window display method and device

By crawling pop-up page elements through a middleware server, the problems of low development efficiency and configuration errors in pop-up pages are solved, resulting in more efficient pop-up display.

CN112559934BActive Publication Date: 2025-02-25BEIJING SANKUAI ONLINE TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202011475042.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-14
Publication Date
2025-02-25
Estimated Expiration
2040-12-14

AI Technical Summary

Technical Problem

Current technologies for developing pop-up windows are inefficient and prone to errors due to manual configuration.

Method used

By crawling page elements of pop-up pages through a middleware server, the workload of developers is reduced and development efficiency is improved.

Benefits of technology

It reduces the workload of developers, improves the development efficiency of page pop-ups, and reduces the possibility of configuration errors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112559934B_ABST
    Figure CN112559934B_ABST
Patent Text Reader

Abstract

This specification discloses a method and device for displaying a page pop-up window. When a user is detected accessing a specified page, a page acquisition request is sent to a back-end server through a middle-tier server, and the page data of the specified page returned by the back-end server through the middle-tier server and the page address corresponding to the pop-up window displayed on the specified page are received. Afterwards, a pop-up page acquisition request containing the page address corresponding to the pop-up window is sent to the middle-tier server, so that the middle-tier server crawls the page elements specified in the corresponding pop-up window page through the crawler code. Finally, the page elements specified in the pop-up window page returned by the middle-tier server are received, and the page pop-up window is displayed in the specified page. The page elements in the pop-up window page are crawled by the middle-tier server, and the pop-up window is displayed based on the page elements, which reduces the workload of developers and improves the development efficiency of page pop-ups.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of Internet application technology, and in particular to a method and device for displaying a page pop-up window. Background Art

[0002] Page pop-up is a common business promotion method. That is, when a user visits a page in the application, a window pops up on the page, and the window displays the business information of the promoted business, so that the user can jump to the page where the promoted business is located by clicking on the pop-up window, thereby increasing the user's visit volume.

[0003] At present, when developing page pop-ups, business personnel usually write promotion pop-up window codes according to the needs of business promotion, and write the pop-up window codes into the page code, where the pop-up window code includes the size of the pop-up window, the content displayed in the pop-up window, and the jump link corresponding to the pop-up window. When a user visits a page, by running the page code of the page, a pop-up window will be displayed on the page to display the content of the promotion business. And when the user clicks on the pop-up window, he can jump to the promotion page corresponding to the pop-up window. Summary of the invention

[0004] The embodiments of the present specification provide a method and device for displaying a page pop-up window, which are used to partially solve the problem in the prior art that the code for displaying the pop-up window content needs to be manually written, resulting in low efficiency in developing page pop-up windows.

[0005] The embodiments of this specification adopt the following technical solutions:

[0006] This manual provides a page pop-up window display method, including:

[0007] When it is detected that a user accesses a specified page, a page acquisition request is sent to a backend server through the middle-tier server, wherein the page acquisition request includes a page identifier of the specified page;

[0008] Receive the page data of the designated page returned by the back-end server through the middle-tier server, and the page address corresponding to the pop-up window displayed on the designated page;

[0009] Sending a pop-up window page acquisition request including a page address corresponding to the pop-up window to the middle-tier server, so that the middle-tier server crawls the page element specified in the pop-up window page corresponding to the page address through the crawler code;

[0010] Receive the page element specified in the pop-up window page returned by the middle-tier server, and display the page pop-up window in the specified page according to the received page element.

[0011] Optionally, the page data of the designated page includes basic configuration information of the pop-up window;

[0012] According to the received page element, a page pop-up window is displayed in the specified page, specifically including:

[0013] The page pop-up window is combined according to the received page elements and the basic configuration information of the pop-up window contained in the page data of the designated page, and the page pop-up window is displayed in the designated page.

[0014] This manual provides a page pop-up window display method, including:

[0015] When receiving a page acquisition request containing a page identifier of a specified page, forwarding the page acquisition request to a backend server, and forwarding the page data of the specified page returned by the backend server and the page address corresponding to the pop-up window displayed on the specified page to the terminal;

[0016] Receiving a pop-up window page acquisition request sent by the terminal, wherein the pop-up window page acquisition request includes a page address corresponding to the pop-up window;

[0017] According to the page address corresponding to the pop-up window, crawl the page elements specified in the pop-up window page corresponding to the page address through the crawler code;

[0018] The crawled specified page elements are returned to the terminal, so that the terminal renders a display page pop-up window in the specified page according to the specified page elements.

[0019] Optionally, according to the page address corresponding to the pop-up window, crawling a page element specified in the pop-up window page corresponding to the page address through a crawler code specifically includes:

[0020] According to the page address corresponding to the pop-up window, a request for obtaining an element of the pop-up window page is sent to a server corresponding to the pop-up window page through the crawler code, wherein the request for obtaining an element carries an element identifier of a specified page element;

[0021] Receive the page element specified in the pop-up page returned by the server corresponding to the pop-up page.

[0022] Optionally, according to the page address corresponding to the pop-up window, crawling a page element specified in the pop-up window page corresponding to the page address through a crawler code specifically includes:

[0023] According to the page address corresponding to the pop-up window, a pop-up window page acquisition request is sent to the server corresponding to the pop-up window page through the crawler code;

[0024] Receiving page data of the pop-up window page returned by the server corresponding to the pop-up window page;

[0025] According to preset element display information, a page element specified in the pop-up page is determined from the received page data of the pop-up page.

[0026] Optionally, the method further comprises:

[0027] When the page address corresponding to the pop-up window displayed on the specified page is received and returned by the back-end server, the page elements specified in the pop-up window page corresponding to the page address are crawled through the crawler code.

[0028] This specification provides a page pop-up display device, including:

[0029] The monitoring module, when monitoring that a user accesses a specified page, sends a page acquisition request to the back-end server through the middle-tier server, wherein the page acquisition request includes a page identifier of the specified page;

[0030] A receiving module receives the page data of the designated page returned by the back-end server through the middle-tier server, and a page address corresponding to the pop-up window displayed on the designated page;

[0031] The crawling module sends a pop-up window page acquisition request including a page address corresponding to the pop-up window to the middle-tier server, so that the middle-tier server crawls the page elements specified in the pop-up window page corresponding to the page address through the crawler code;

[0032] The display module receives the page element specified in the pop-up window page returned by the middle-tier server, and displays the page pop-up window in the specified page according to the received page element.

[0033] This specification provides a page pop-up display device, including:

[0034] A forwarding module, when receiving a page acquisition request containing a page identifier of a specified page, forwards the page acquisition request to a backend server, and forwards the page data of the specified page returned by the backend server and the page address corresponding to the pop-up window displayed on the specified page to the terminal;

[0035] A receiving module receives a pop-up window page acquisition request sent by the terminal, wherein the pop-up window page acquisition request includes a page address corresponding to the pop-up window;

[0036] A crawling module, according to the page address corresponding to the pop-up window, crawls the page elements specified in the pop-up window page corresponding to the page address through the crawler code;

[0037] The display module returns the crawled specified page elements to the terminal, so that the terminal renders a display page pop-up window in the specified page according to the specified page elements.

[0038] This specification provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the above-mentioned page pop-up window display method is implemented.

[0039] An electronic device provided in this specification includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned page pop-up window display method when executing the program.

[0040] At least one of the above technical solutions adopted in the embodiments of this specification can achieve the following beneficial effects:

[0041] In this specification, when it is monitored that a user accesses a specified page, a page acquisition request is sent to a back-end server through a middle-tier server, and the page data of the specified page returned by the back-end server through the middle-tier server and the page address corresponding to the pop-up window displayed on the specified page are received. Afterwards, a pop-up page acquisition request containing the page address corresponding to the pop-up window is sent to the middle-tier server, so that the middle-tier server crawls the page elements specified in the corresponding pop-up page through the crawler code. Finally, the page elements specified in the pop-up page returned by the middle-tier server are received, and the page pop-up window is displayed in the specified page. By crawling the page elements in the pop-up page through the middle-tier server and displaying the pop-up window based on the page elements, the workload of developers is reduced and the development efficiency of page pop-ups is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0043] Figure 1 A schematic diagram of a method for displaying a pop-up window on a page provided in an embodiment of this specification;

[0044] Figure 2 A schematic diagram of a method for displaying a pop-up window on a page provided in an embodiment of this specification;

[0045] Figure 3 An interactive flow chart of a page pop-up window display provided in an embodiment of this specification;

[0046] Figure 4 A schematic diagram of the structure of a page pop-up display device provided in an embodiment of this specification;

[0047] Figure 5 A schematic diagram of the structure of a page pop-up display device provided in an embodiment of this specification;

[0048] Figure 6 A schematic diagram of an electronic device for implementing a method for displaying a page pop-up window provided in an embodiment of this specification. DETAILED DESCRIPTION

[0049] In order to make the purpose, technical solutions and advantages of this specification more clear, the technical solutions of this application will be clearly and completely described below in combination with the specific embodiments of this specification and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of this application, not all of them. Based on the embodiments in the specification, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0050] At present, in the process of developing page pop-up windows, front-end developers usually write corresponding pop-up window codes according to the business needs of the promotion business. Among them, the pop-up window code contains information such as the size of the pop-up window, the content displayed in the pop-up window, and the jump link corresponding to the pop-up window. The jump link corresponding to the pop-up window is the page link of the promotion business.

[0051] After that, the pop-up window code is written into the page code of a certain page of the application, so that when the user visits the page, the terminal can display the pop-up window information in the page by running the page code containing the pop-up window code. And when the user clicks the pop-up window displayed on the page, he can jump to the page where the promotion business is located.

[0052] In order to make the pop-up window configuration more flexible, there is also a method for developing a page pop-up window in the prior art. That is, the page pop-up window is encapsulated as a page component. Then, during the page loading process, the page pop-up window can be loaded as a component in the page and displayed in the page.

[0053] When developing page pop-up windows, developers can configure the page pop-up window components separately according to the business needs of the promotion business, that is, configure the pop-up window display content and the corresponding jump link of the pop-up window and other information. In addition, when the promotion business changes, the page pop-up window can be updated directly by changing the configuration information of the page pop-up window component, making the page pop-up window configuration more flexible.

[0054] However, both of the above two methods of developing page pop-up windows require developers to manually configure the pop-up window display content, which may lead to errors. For example, the developer configures the jump link corresponding to the pop-up window as a link to page A, but the display content of the pop-up window is configured as business information of page B, resulting in the problem that the page pop-up window display content does not correspond to the jump page. Moreover, the developer writes the pop-up window display content by himself according to the promotion business, which leads to low development efficiency.

[0055] Based on the above-mentioned problems, this specification provides a page pop-up display method. When loading a page, the page address corresponding to the pop-up window displayed on the page returned by the back-end server is obtained, and a pop-up page acquisition request is sent to the middle-tier server, so that the middle-tier server crawls the specified page elements from the corresponding pop-up page and returns them to the terminal for display in the page pop-up window.

[0056] The technical solutions provided by various embodiments of the present application are described in detail below in conjunction with the accompanying drawings.

[0057] Figure 1 A flowchart of a method for displaying a page pop-up window provided in an embodiment of this specification is provided, and the method is executed by a terminal, and may specifically include the following steps:

[0058] S100: When it is detected that a user accesses a specified page, a page acquisition request is sent to a backend server via the middle-tier server.

[0059] Generally, a page pop-up window is usually set in a part of a specified page, so that when a user visits the specified page, the promotional service is displayed in the form of a pop-up window in the specified page, and when the user clicks the pop-up window, the user can jump to the page where the promotional service is located. Therefore, in this specification, when a user visits a specified page, a page pop-up window can be displayed through the following steps. Among them, the page pop-up window display method of this specification can be specifically executed by a terminal that displays the specified page and the page pop-up window.

[0060] Specifically, the terminal can monitor the user's various actions in the terminal, and when the user's entry operation on the specified page is detected, a page acquisition request is sent to the corresponding server to obtain the page data of the specified page for display. The page acquisition request includes the page identifier of the specified page. The specified page is the page for pop-up display.

[0061] In order to better achieve the separation of front-end and back-end, the application development process is currently usually divided into front-end, middle-layer and back-end for development. Among them, the middle-layer is usually written based on the node language, which can be used to merge and forward the business requests of the front-end, process the business data returned by the back-end, etc. Of course, the middle-layer can also be written in other programming languages, and this manual does not limit this.

[0062] Therefore, in this specification, the terminal may send a page acquisition request to the middle-tier server, and the middle-tier server may forward the page acquisition request to the back-end server.

[0063] S102: Receive the page data of the designated page and the page address corresponding to the pop-up window displayed on the designated page, which are returned by the back-end server through the middle-tier server.

[0064] In one or more embodiments of the present specification, since the specified page needs to display a pop-up window, the data received and returned by the back-end server must also include the page address corresponding to the pop-up window displayed in the specified page, so as to obtain the information of the pop-up page corresponding to the page address through subsequent steps.

[0065] Specifically, the terminal can receive the page data of the specified page returned by the backend server through the middle-tier server, as well as the page address corresponding to the pop-up window displayed in the specified page, that is, the Uniform Resource Locator (URL). After that, the terminal can render and display the specified page according to the page data of the specified page.

[0066] The page address corresponding to the pop-up window displayed in the specified page can be written in the page code of the specified page and returned to the terminal. Alternatively, the pop-up window displayed in the specified page can also be encapsulated as a page component in the specified page, and the page address corresponding to the pop-up window can be carried in the pop-up window component and returned to the terminal.

[0067] It should be noted that the data returned by the backend server received by the terminal includes basic configuration information of the pop-up window displayed on the specified page, such as the pop-up window size and the pop-up window display time, but does not include the display content in the pop-up window.

[0068] S104: Sending a pop-up window page acquisition request including a page address corresponding to the pop-up window to the middle-tier server, so that the middle-tier server crawls the page elements specified in the pop-up window page corresponding to the page address through the crawler code.

[0069] In one or more embodiments of the present specification, after the terminal receives the page address corresponding to the page pop-up window, it can obtain the display information in the corresponding pop-up window page through the intermediate layer server.

[0070] Specifically, the terminal can send a pop-up page acquisition request to the middle-tier server according to the page address corresponding to the received pop-up window, wherein the pop-up page is the page corresponding to the page address. The middle-tier server crawls the page elements specified in the pop-up page corresponding to the page address, such as the title, background, and main image of the webpage, according to the page address included in the received pop-up page acquisition request through a preset crawler code.

[0071] Furthermore, when the terminal receives the page address corresponding to the pop-up window, it can directly send a pop-up window page acquisition request to the middle-tier server. Alternatively, it can also send a pop-up window page acquisition request to the middle-tier server when a user's specified operation is detected. Among them, the specified operation is the user behavior that triggers the pop-up window display. It can be set according to business needs, and this manual does not limit this.

[0072] S106: receiving a page element specified in the pop-up window page returned by the middle-tier server, and displaying a page pop-up window in the specified page according to the received page element.

[0073] In one or more embodiments of the present specification, since the area of ​​the page pop-up window is small, the full pop-up window page is usually not displayed. Therefore, the terminal can obtain only some page elements in the pop-up window page through the middle-layer server and display them.

[0074] Specifically, the terminal can receive the page elements specified in the pop-up window page returned by the middle-tier server, and combine the page elements specified in the pop-up window page and the basic configuration information of the pop-up window in the page data of the specified page received in step S102 to form a page pop-up window, and display the page pop-up window in the specified page. And when the user clicks on the page pop-up window, it can jump to the corresponding pop-up window page. Among them, the basic configuration information of the pop-up window includes basic style information such as the size of the pop-up window.

[0075] Further, in this specification, when a pop-up window is encapsulated as a page component in a specified page, the basic configuration information of the pop-up window can also be carried in the pop-up window component together with the page address corresponding to the pop-up window in step S102 and returned to the terminal. Whether the basic configuration information of the pop-up window is encapsulated in the pop-up window component and returned or written into the page code of the specified page and returned can be set as needed, and this specification does not limit this.

[0076] Furthermore, after receiving the page elements required to be displayed in the pop-up window, the terminal can directly display the pop-up window according to the pop-up window display time contained in the basic configuration information of the pop-up window. Alternatively, after receiving the page elements required to be displayed in the pop-up window, the terminal can render and display the page pop-up window when it detects that the user performs a specified operation that triggers the pop-up window display. The specific display timing can be set according to the needs of the promotion business, and this manual does not limit this.

[0077] based on Figure 1The page pop-up display method shown, when monitoring the user to access the specified page, sends a page acquisition request to the back-end server through the middle-tier server, and receives the page data of the specified page returned by the back-end server through the middle-tier server and the page address corresponding to the pop-up window displayed on the specified page. Afterwards, a pop-up page acquisition request containing the page address corresponding to the pop-up window is sent to the middle-tier server, so that the middle-tier server crawls the page elements specified in the corresponding pop-up page through the crawler code. Finally, the page elements specified in the pop-up page returned by the middle-tier server are received, and the page pop-up window is displayed in the specified page. The page elements in the pop-up page are crawled by the middle-tier server, and the pop-up window is displayed based on the page elements, which reduces the workload of developers and improves the development efficiency of page pop-ups.

[0078] Furthermore, by crawling page elements from the page address corresponding to the pop-up window through crawler code, the possibility of pop-up window configuration errors caused by the inconsistency between the pop-up window display content configured in the prior art and the page code corresponding to the pop-up window can be further reduced.

[0079] Regarding the above Figure 1 The page pop-up window display method shown in the specification also provides a corresponding execution process on the server side, such as Figure 2 shown.

[0080] Figure 2 A flowchart of a page pop-up window display method provided in an embodiment of this specification is shown, with the middle-tier server as the execution subject, and may specifically include the following steps:

[0081] S200: When a page acquisition request containing a page identifier of a specified page is received, the page acquisition request is forwarded to a backend server, and the page data of the specified page returned by the backend server and the page address corresponding to the pop-up window displayed on the specified page are forwarded to the terminal.

[0082] The page pop-up window display method provided in this specification refers to displaying a pop-up window in a specified page. Therefore, when displaying a page pop-up window, the page data of the specified page can be obtained and displayed first, so that the pop-up window can be displayed in the specified page later.

[0083] Specifically, when the middle-tier server receives a page acquisition request containing a page identifier of a specified page sent by a user terminal, the page acquisition request can be forwarded to the corresponding back-end server. Afterwards, since a page pop-up window needs to be displayed in the specified page, the middle-tier server can receive the page data of the specified page returned by the back-end server, as well as the page address corresponding to the pop-up window displayed in the specified page, and forward it to the terminal. The display information of the pop-up window page corresponding to the page address can be obtained through subsequent steps and displayed in the terminal.

[0084] S202: Receive a pop-up page acquisition request sent by the terminal.

[0085] In one or more embodiments of the present specification, when the terminal needs to display a pop-up window in a specified page, the intermediate layer server can receive a pop-up window page acquisition request sent by the terminal to acquire page information of the pop-up window page.

[0086] Specifically, the middle-layer server may receive a pop-up window page acquisition request sent by the terminal, wherein the pop-up window page acquisition request includes a page address corresponding to the pop-up window, so that the middle-layer server can obtain the content displayed in the subsequent pop-up window from the corresponding pop-up window page according to the page address.

[0087] S204: According to the page address corresponding to the pop-up window, crawl the page elements specified in the pop-up window page corresponding to the page address through the crawler code.

[0088] In one or more embodiments of the present specification, when the middle-tier server receives a pop-up page acquisition request sent by the terminal, it can determine the corresponding pop-up page and obtain the page elements in the pop-up page based on the page address corresponding to the pop-up contained in the pop-up page acquisition request.

[0089] Specifically, the middle-tier server can send an element acquisition request for the pop-up page to the server corresponding to the pop-up page through the crawler code according to the page address corresponding to the pop-up window contained in the pop-up page acquisition request, wherein the element acquisition request carries the element identifier of the specified page element. Afterwards, the middle-tier server can receive the page element specified in the pop-up page returned by the corresponding server. Among them, the crawler code can use existing crawler tools such as Puppeter, node-crawler, etc., or be written by itself. This manual does not limit this and can be set as needed.

[0090] Furthermore, the page elements specified in the pop-up window page to be crawled are the contents displayed in the pop-up window of the specified page. Therefore, the page elements to be crawled should also be pre-set in the crawler code, such as the title, background or main image of the web page.

[0091] Furthermore, in order to facilitate the crawler code to crawl the content of the pop-up page, when developing the page, the page architecture of each pop-up page can be standardized through the user interface (UI), and the element identifiers of the same page elements can be unified. This can reduce the difficulty and workload of the crawler code to crawl the specified page elements.

[0092] S206: Return the crawled specified page element to the terminal, so that the terminal renders a display page pop-up window in the specified page according to the specified page element.

[0093] In one or more embodiments of the present specification, after the middle-tier server crawls the page elements in the corresponding pop-up window page, it can return the page elements to the terminal so that the terminal can display the pop-up window in the designated page.

[0094] Specifically, after crawling the page elements specified in the pop-up page, the middle-tier server can perform integration processing and return the integrated page elements to the terminal, so that the terminal can combine and generate the pop-up window according to the basic configuration information of the pop-up window and the page elements specified in the pop-up page, and render and display it in the specified page.

[0095] based on Figure 2 The page pop-up window display method shown, when receiving a page acquisition request containing a page identifier of a specified page, forwards the page acquisition request to the back-end server, and forwards the page data of the specified page returned by the back-end server and the page address corresponding to the pop-up window displayed on the specified page to the terminal. Afterwards, when receiving the pop-up window page acquisition request sent by the terminal, according to the page address corresponding to the pop-up window contained in the pop-up window page acquisition request, crawl the page elements specified in the pop-up window page corresponding to the page address through the crawler code. Finally, the crawled specified page elements are returned to the terminal, so that the terminal renders and displays the page pop-up window in the specified page according to the received page elements. Based on the page address corresponding to the pop-up window, the page elements are crawled from the corresponding pop-up window page through the crawler code, and returned to the terminal, so that the terminal displays the pop-up window according to the crawled page elements, thereby improving the development efficiency of the page pop-up window and reducing the possibility of manual configuration errors.

[0096] In step S204 of this specification, the middle-tier server may also crawl the page data of the pop-up page, and filter out the page elements required to be displayed in the pop-up window from the page data and return them to the terminal. Specifically, the middle-tier server may send a pop-up page acquisition request to the server corresponding to the pop-up page through the crawler code according to the page address corresponding to the pop-up window. Afterwards, the page data of the pop-up page returned by the corresponding server is received, and according to the preset element display information, the page element specified in the pop-up page is determined from the page data of the received pop-up page. Among them, the preset element display information is the page element displayed in the page pop-up window, which can be set as needed, and this specification does not limit this.

[0097] In one or more embodiments of the present specification, the backend server that provides the specified page and the server that provides the pop-up page can be the same server or different servers. The specific settings can be made according to needs, and the present specification does not impose any restrictions on this.

[0098] In one or more embodiments of the present specification, after receiving the page address corresponding to the pop-up window displayed in the specified page returned by the back-end server in step S200, the middle layer can directly execute the page pop-up window display method of steps S204 to S206 according to the page address corresponding to the pop-up window, that is, crawl the page elements specified in the pop-up window page corresponding to the page address through the crawler code, and return the crawled page elements to the terminal, so that the terminal displays the pop-up window in the specified page.

[0099] Based on the above discussion of the page pop-up window display method from the terminal side and the server side, this specification provides the following Figure 3 The interactive flow chart shown. When a page pop-up window is displayed in a specified page, the terminal may first send a page acquisition request for the specified page to the middle-tier server, and the middle-tier server forwards the page acquisition request to the back-end server. Afterwards, the middle-tier server receives the page data of the execution page returned by the back-end server, as well as the page address corresponding to the pop-up window displayed in the specified page, and forwards it to the terminal. Then, the middle-tier server receives the pop-up page acquisition request sent by the terminal, wherein the pop-up page acquisition request contains the page address corresponding to the pop-up window. And according to the page address corresponding to the pop-up window, the page elements specified in the corresponding pop-up page are crawled through the crawler code. Finally, the middle-tier server returns the crawled page elements to the terminal, so that the terminal receives the page elements and the basic configuration information of the pop-up window for rendering and display.

[0100] based on Figure 1 The page pop-up window display method shown in the figure, the embodiment of this specification also provides a structural schematic diagram of a page pop-up window display device, such as Figure 4 shown.

[0101] Figure 4 A schematic diagram of a page pop-up window display device provided in an embodiment of this specification, the device comprising:

[0102] The monitoring module 300, when monitoring that a user accesses a specified page, sends a page acquisition request to the back-end server through the middle-tier server, wherein the page acquisition request includes a page identifier of the specified page;

[0103] The receiving module 302 receives the page data of the designated page returned by the back-end server through the middle-tier server, and the page address corresponding to the pop-up window displayed on the designated page;

[0104] The crawling module 304 sends a pop-up window page acquisition request including a page address corresponding to the pop-up window to the middle-tier server, so that the middle-tier server crawls the page element specified in the pop-up window page corresponding to the page address through the crawler code;

[0105] The display module 306 receives the page element specified in the pop-up window page returned by the middle-tier server, and displays the page pop-up window in the specified page according to the received page element.

[0106] Optionally, the page data of the designated page contains basic configuration information of the pop-up window, and the display module 306 is specifically used to combine the page pop-up window according to the received page elements and the basic configuration information of the pop-up window contained in the page data of the designated page, and display the page pop-up window in the designated page.

[0107] based on Figure 2 The page pop-up window display method shown in the figure, the embodiment of this specification also provides a structural schematic diagram of a page pop-up window display device, such as Figure 5 shown.

[0108] Figure 5 A schematic diagram of a page pop-up window display device provided in an embodiment of this specification, the device comprising:

[0109] The forwarding module 400, when receiving a page acquisition request including a page identifier of a specified page, forwards the page acquisition request to a backend server, and forwards the page data of the specified page returned by the backend server and the page address corresponding to the pop-up window displayed on the specified page to the terminal;

[0110] A receiving module 402 receives a pop-up window page acquisition request sent by the terminal, wherein the pop-up window page acquisition request includes a page address corresponding to the pop-up window;

[0111] The crawling module 404 crawls the page elements specified in the pop-up window page corresponding to the page address through the crawler code according to the page address corresponding to the pop-up window;

[0112] The display module 406 returns the crawled specified page elements to the terminal, so that the terminal renders and displays a page pop-up window in the specified page according to the specified page elements.

[0113] Optionally, the crawling module 404 is specifically used to send an element acquisition request for the pop-up page to the server corresponding to the pop-up page through the crawler code according to the page address corresponding to the pop-up window, the element acquisition request carries the element identifier of the specified page element, and receives the page element specified in the pop-up page returned by the server corresponding to the pop-up page.

[0114] Optionally, the crawling module 404 is specifically used to send a pop-up page acquisition request to the server corresponding to the pop-up page through the crawler code according to the page address corresponding to the pop-up window, receive the page data of the pop-up page returned by the server corresponding to the pop-up page, and determine the page element specified in the pop-up page from the received page data of the pop-up page according to preset element display information.

[0115] Optionally, the forwarding module 402 is also used to crawl the page elements specified in the pop-up window page corresponding to the page address through the crawler code when receiving the page address corresponding to the pop-up window displayed on the specified page returned by the back-end server.

[0116] The present specification also provides a computer-readable storage medium, which stores a computer program, which can be used to execute the above Figure 1 or Figure 2 The page pop-up window display method provided.

[0117] based on Figure 1 or Figure 2 The page pop-up window display method shown in the present specification also proposes Figure 6 The schematic structure diagram of the electronic device shown in FIG. Figure 6 At the hardware level, the electronic device includes a processor, an internal bus, a network interface, a memory, and a non-volatile memory, and may also include other hardware required for the business. The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it to achieve the above Figure 1 or Figure 2 The page pop-up window display method shown.

[0118] Of course, in addition to software implementation, this specification does not exclude other implementation methods, such as logic devices or a combination of software and hardware, etc., that is to say, the executor of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.

[0119] In the 1990s, improvements to a technology could be clearly distinguished as hardware improvements (for example, improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to the method flow). However, with the development of technology, many improvements to the method flow today can be regarded as direct improvements to the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that an improvement in a method flow cannot be implemented using a hardware entity module. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming it themselves, without having to ask a chip manufacturer to design and produce a dedicated integrated circuit chip. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed ​​Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages ​​and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.

[0120] The controller can be implemented in any appropriate manner, for example, the controller can take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (such as software or firmware) that can be executed by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art also know that in addition to implementing the controller in a purely computer-readable program code manner, the controller can be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, this controller can be considered as a hardware component, and the devices included therein for implementing various functions can also be regarded as structures within the hardware component. Or even, the devices for implementing various functions can be regarded as both software modules for implementing the method and structures within the hardware component.

[0121] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.

[0122] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0123] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0124] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0125] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0126] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0127] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0128] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0129] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media 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 disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0130] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0131] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems or computer program products. Therefore, this specification may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0132] This specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. This specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.

[0133] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0134] The above description is only an embodiment of the present specification and is not intended to limit the present specification. For those skilled in the art, the present specification may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present specification shall be included in the scope of the claims of the present specification.

Claims

1. A page pop-up window display method, characterized in that: include: When it is detected that a user accesses a specified page, a page acquisition request is sent to a backend server through the middle-tier server, wherein the page acquisition request includes a page identifier of the specified page; Receive the page data of the designated page returned by the back-end server through the middle-tier server, and the page address corresponding to the pop-up window displayed on the designated page, wherein the page data of the designated page includes basic configuration information of the pop-up window; Sending a pop-up window page acquisition request including a page address corresponding to the pop-up window to the middle-tier server, so that the middle-tier server crawls the page element specified in the pop-up window page corresponding to the page address through the crawler code; Receive the page elements specified in the pop-up page returned by the middle-tier server, and display the page pop-up in the specified page according to the received page elements, specifically including: combining the page pop-up according to the received page elements and the basic configuration information of the pop-up contained in the page data of the specified page, and displaying the page pop-up in the specified page.

2. A page pop-up window display method, characterized in that: include: When receiving a page acquisition request containing a page identifier of a specified page, forwarding the page acquisition request to a backend server, and forwarding the page data of the specified page returned by the backend server and the page address corresponding to the pop-up window displayed on the specified page to the terminal, wherein the page data of the specified page contains basic configuration information of the pop-up window; Receiving a pop-up window page acquisition request sent by the terminal, wherein the pop-up window page acquisition request includes a page address corresponding to the pop-up window; According to the page address corresponding to the pop-up window, crawl the page elements specified in the pop-up window page corresponding to the page address through the crawler code; The crawled specified page elements are returned to the terminal so that the terminal renders and displays the page pop-up window in the specified page according to the specified page elements, specifically including: enabling the terminal to combine the page pop-up windows according to the received page elements and the basic configuration information of the pop-up windows contained in the page data of the specified page, and render and display the page pop-up window in the specified page.

3. The method according to claim 2, characterized in that According to the page address corresponding to the pop-up window, crawling the page elements specified in the pop-up window page corresponding to the page address through the crawler code specifically includes: According to the page address corresponding to the pop-up window, a request for obtaining an element of the pop-up window page is sent to a server corresponding to the pop-up window page through the crawler code, wherein the request for obtaining an element carries an element identifier of a specified page element; Receive the page element specified in the pop-up page returned by the server corresponding to the pop-up page.

4. The method according to claim 2, characterized in that According to the page address corresponding to the pop-up window, crawling the page elements specified in the pop-up window page corresponding to the page address through the crawler code specifically includes: According to the page address corresponding to the pop-up window, a pop-up window page acquisition request is sent to the server corresponding to the pop-up window page through the crawler code; Receiving page data of the pop-up window page returned by the server corresponding to the pop-up window page; According to preset element display information, a page element specified in the pop-up page is determined from the received page data of the pop-up page.

5. The method according to claim 2, characterized in that The method further comprises: When the page address corresponding to the pop-up window displayed on the specified page is received and returned by the back-end server, the page elements specified in the pop-up window page corresponding to the page address are crawled through the crawler code.

6. A page pop-up display device, characterized in that: Specifically include: The monitoring module, when monitoring that a user accesses a specified page, sends a page acquisition request to the back-end server through the middle-tier server, wherein the page acquisition request includes a page identifier of the specified page; A receiving module receives the page data of the designated page returned by the back-end server through the middle-tier server, and the page address corresponding to the pop-up window displayed on the designated page, wherein the page data of the designated page includes basic configuration information of the pop-up window; The crawling module sends a pop-up window page acquisition request including a page address corresponding to the pop-up window to the middle-tier server, so that the middle-tier server crawls the page elements specified in the pop-up window page corresponding to the page address through the crawler code; The display module receives the page elements specified in the pop-up page returned by the middle-tier server, and displays the page pop-up in the specified page according to the received page elements, specifically including: combining the page pop-up according to the received page elements and the basic configuration information of the pop-up contained in the page data of the specified page, and displaying the page pop-up in the specified page.

7. A page pop-up display device, characterized in that: Specifically include: a forwarding module, which, when receiving a page acquisition request containing a page identifier of a specified page, forwards the page acquisition request to a backend server, and forwards the page data of the specified page returned by the backend server and the page address corresponding to the pop-up window displayed on the specified page to the terminal, wherein the page data of the specified page contains basic configuration information of the pop-up window; A receiving module receives a pop-up window page acquisition request sent by the terminal, wherein the pop-up window page acquisition request includes a page address corresponding to the pop-up window; A crawling module, according to the page address corresponding to the pop-up window, crawls the page elements specified in the pop-up window page corresponding to the page address through the crawler code; The display module returns the crawled specified page elements to the terminal so that the terminal renders a display page pop-up window in the specified page according to the specified page elements, specifically including: enabling the terminal to combine the page pop-up windows according to the received page elements and the basic configuration information of the pop-up windows contained in the page data of the specified page, and render the display page pop-up window in the specified page.

8. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the method described in claim 1 or any one of claims 2 to 5 is implemented.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method described in claim 1 or any one of claims 2 to 5 is implemented.

Citation Information

Patent Citations

  • Method and apparatus for identifying elements of a webpage

    US20150142567A1