Web site multi-Tab tab loading control method and control system

By pushing initialization information and confirmation messages in the broadcast channel of the web site, the loading of multiple Tabs is controlled, and the data inconsistency and server load problems are solved during multi Tabs loading, realizing the uniqueness and efficient loading of tabs.

CN119903259APending Publication Date: 2025-04-29FOUNDER INT(WUHAN)TECH DEV CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411853876.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-16
Publication Date
2025-04-29

AI Technical Summary

Technical Problem

In traditional web projects, operating the same data at the same time by multiple Tab tabs may lead to data inconsistency and conflicts, and users may see duplicate content, increasing server load and bandwidth consumption.

Method used

By pushing initialization information to the broadcast channel of the web site, the target Tab tab is loaded when a confirmation message is received, otherwise the tab is closed. The broadcast channel determines whether there is an open Tab tab. If so, the loading of the new tab will be rejected.

Benefits of technology

Make sure that the web site can only open one Tab at the same time, avoid duplicate loading, and reduce data conflicts and server load.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119903259A_ABST
    Figure CN119903259A_ABST
Patent Text Reader

Abstract

The invention provides a web site multi-Tab tab loading control method and system, and the method comprises the steps: pushing initialization information to a broadcast channel of a web site when a target Tab tab is loaded; when a confirmation message of the broadcast channel is received, the target Tab tab is not closed, and the target Tab tab is loaded; when rejection information of the broadcast channel is received, closing the target Tab tab; wherein when the broadcast channel receives the initialization information of the target Tab tab, whether the web site has an opened Tab tab currently is judged, and if yes, refusal information of the target Tab tab is returned; and if not, returning a confirmation message of the target tab. According to the method and the device, a broadcast channel mechanism of the web site is utilized to inform the web site of the condition of loading the Tab tabs in real time, so that the web site can only open one web tab at the same time and cannot load repeated Tab tabs at the same time, and confusion is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of Tab page loading, and more specifically, to a method and a control system for controlling loading of multiple Tab pages of a website. Background Art

[0002] In traditional Web projects, there is the problem of loading multiple tab pages. During the loading process, multiple tabs operating the same data at the same time may cause data inconsistency and conflict; users may see duplicate content in multiple tabs, causing confusion and inconvenience; multiple tabs loading the same page at the same time will increase server load and bandwidth consumption.

[0003] The multi-tab deduplication function usually relies on localStorage. Although these methods can basically meet the needs, they have many limitations and shortcomings in actual applications. The storage space of localStorage is limited, usually around 5MB. The storage of large amounts of data may cause performance degradation, and localStorage and sessionStorage use storage events to notify other tabs of storage changes, but the triggering timing and frequency of these events are uncontrollable, which may cause delays or losses.

[0004] With the continuous development of Web applications, users have an increasing demand for multi-tab management, and traditional solutions can no longer meet the growing demand. Summary of the invention

[0005] The present invention aims at the technical problems existing in the prior art and provides a method and a control system for controlling loading of multiple tab pages of a website, which solves the confusion problem caused by loading multiple tab pages at the same time.

[0006] According to a first aspect of the present invention, a method for controlling loading of multiple tabs of a website is provided, comprising: When the target tab is loaded, push initialization information to the web site's broadcast channel; When receiving the confirmation message of the broadcast channel, the target Tab page is not closed, and the target Tab page is loaded; When receiving the rejection information of the broadcast channel, closing the target Tab page; Among them, when the broadcast channel receives the initialization information of the target Tab page, it determines whether the web site currently has an open Tab page. If there is an open web tab, the rejection information of the target Tab page is returned; if there is no open web tab, the confirmation message of the target tab is returned.

[0007] Based on the above technical solution, the present invention can also make the following improvements.

[0008] Optionally, when the target Tab page is loaded, initialization information is pushed to the broadcast channel of the website, which includes: Assign a unique identifier to each Tab page; When the target Tab page needs to be loaded, the initialization information and the identification information of the target Tab page are pushed to the broadcast channel of the web site; The broadcast channel determines whether there is a Tab page with the same identification information already opened on the web site based on the identification information of the target Tab page. If so, the broadcast channel returns the rejection information of the target Tab page and the identification information of the Tab page currently opened on the web site. If there is no Tab page with the same identification information already opened on the web site or there is no Tab page already opened on the web site, the broadcast channel returns the confirmation information of the target Tab page and the identification information of the target Tab page.

[0009] Optionally, when receiving the confirmation message of the broadcast channel, the target Tab page is not closed and the target Tab page is loaded, including: Divide the user interface of the web site into a Tab area and a data area, wherein the Tab area displays Tab pages, and a user interface object is created in the data area; When receiving the confirmation message of the broadcast channel, obtaining the target Tab object corresponding to the target Tab page tab; According to the target Tab object, obtain corresponding user data; The user data is displayed in the data area through the user interface object.

[0010] Optionally, the identification information of the Tab page has a corresponding relationship with the user data; According to the target Tab object, corresponding user data is obtained, including: According to the identification information of the target Tab page tab corresponding to the target Tab object, user data corresponding to the identification information of the target Tab page tab is acquired.

[0011] Optionally, when receiving the confirmation message of the broadcast channel, the target Tab page is not closed and the target Tab page is loaded, including: The core position of the Tab area of ​​the user interface is replaced with the target Tab page tab, and the target Tab page tab is displayed in the Tab area.

[0012] Optionally, displaying the user data in the data area through the user interface object includes: The data of the user interface object is modified according to the user data, and the data area is refreshed based on the modified data of the user interface object to display the user data corresponding to the target Tab page.

[0013] According to a second aspect of the present invention, a website multi-Tab page loading control system is provided, comprising: The push module is used to push initialization information to the broadcast channel of the web site when the target Tab page is loaded; A loading / closing module, configured to load the target Tab page without closing the target Tab page when receiving a confirmation message from the broadcast channel; and to close the target Tab page when receiving a rejection message from the broadcast channel; Among them, when the broadcast channel receives the initialization information of the target Tab page, it determines whether the web site currently has an open Tab page. If there is an open web tab, the rejection information of the target Tab page is returned; if there is no open web tab, the confirmation message of the target tab is returned.

[0014] According to a third aspect of the present invention, an electronic device is provided, comprising a memory and a processor, wherein the processor is configured to implement the steps of a method for controlling loading of multiple tabs of a website when executing a computer management program stored in the memory.

[0015] According to a fourth aspect of the present invention, there is provided a computer-readable storage medium on which a computer management program is stored. When the computer management program is executed by a processor, the steps of the website multi-Tab page loading control method are implemented.

[0016] The present invention provides a method and system for controlling the loading of multiple tabs of a web site. When loading a target tab, initialization information is pushed to the broadcast channel of the web site; when receiving a confirmation message from the broadcast channel, the target tab is loaded without closing the target tab; when receiving a rejection message from the broadcast channel, the target tab is closed; wherein, when the broadcast channel receives the initialization information of the target tab, it is determined whether the web site currently has an open tab, and if so, the rejection message of the target tab is returned; if not, the confirmation message of the target tab is returned. The present invention utilizes the broadcast channel mechanism of the web site to notify the web site of the loading of the tab in real time, and can ensure that the web site can only open one web tab at the same time, and will not load duplicate tabs at the same time, so as to avoid confusion. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 A flow chart of a method for controlling loading of multiple tabs of a website provided by the present invention; Figure 2 An interactive diagram of multi-tab loading control; Figure 3 A schematic diagram of the structure of a multi-tab page loading control for a website provided by the present invention; Figure 4 A schematic diagram of the hardware structure of a possible electronic device provided by the present invention; Figure 5 A schematic diagram of the hardware structure of a possible computer-readable storage medium provided by the present invention. DETAILED DESCRIPTION

[0018] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention. In addition, the technical features in the various embodiments or single embodiments provided by the present invention can be arbitrarily combined with each other to form a feasible technical solution. This combination is not subject to the constraints of the sequence of steps and / or the structural composition mode, but must be based on the ability of ordinary technicians in this field to achieve. When the combination of technical solutions is contradictory or cannot be achieved, it should be considered that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.

[0019] Figure 1 A flowchart of a method for controlling loading multiple tabs of a website provided by the present invention is shown in FIG. Figure 1 As shown, the method includes: Step 1: When the target Tab page is loaded, push initialization information to the broadcast channel of the web site.

[0020] It is understandable that when the same web site needs to load multiple web tabs, when the Tab tab (called the target Tab tab) needs to be loaded, the initialization information is pushed to the web site's broadcast channel broadcast, trying to seize the identity of the "initial page", that is, to inform the broadcast channel broadcast that the target Tab tab needs to be loaded.

[0021] Step 2: when receiving a confirmation message from the broadcast channel, the target Tab page is not closed but loaded; when receiving a rejection message from the broadcast channel, the target Tab page is closed.

[0022] Understandably, see Figure 2When the broadcast channel receives the initialization information of the target Tab page, it determines whether the web site currently has an open Tab page. If there is an open web page, it returns the rejection information of the target Tab page; if there is no open web page, it returns the confirmation message of the target tab.

[0023] Specifically, a unique identifier is assigned to each Tab page, and when a target Tab page needs to be loaded, initialization information and identification information of the target Tab page are pushed to the broadcast channel of the web site.

[0024] When the broadcast channel receives the pushed initialization information and the identification information of the target Tab tab, the broadcast channel determines whether there is a Tab tab with the same identification information currently opened on the web site based on the identification information of the target Tab tab. If so, the broadcast channel returns the rejection information of the target Tab tab and the identification information of the Tab tab currently opened on the web site. If there is no Tab tab with the same identification information currently opened on the web site or there is no Tab tab already opened on the web site, the broadcast channel returns the confirmation information of the target Tab tab and the identification information of the target Tab tab.

[0025] It is understandable that when the broadcast channel receives the initialization information pushed by the target Tab page, it determines whether the web site has currently loaded the Tab page with the same identification information according to the identification information of the target Tab page. If the web site has currently opened the Tab page with the same identification information, the loading request of the target Tab page is rejected. At this time, the rejection information of the target Tab page loading is returned. When the rejection information of the broadcast channel is received, the target Tab page is closed and the target Tab page is not loaded.

[0026] If the web site does not currently open a Tab page with the same identification information, or the web site does not currently open any Tab page, the broadcast channel returns confirmation information of the target Tab page. When the confirmation information of the target Tab page returned by the broadcast channel is received, the target Tab page is loaded.

[0027] When loading the target Tab page, the user interface of the web site is divided into a Tab area and a data area. The Tab page is displayed in the Tab area, and a user interface object is created in the data area. When a confirmation message from the broadcast channel is received, the target Tab object corresponding to the target Tab page is obtained. Among them, the identification information of the Tab page has a corresponding relationship with the user data; according to the identification information of the target Tab page corresponding to the target Tab object, the user data corresponding to the identification information of the target Tab page is obtained. The user data is displayed in the data area through the user interface object.

[0028] The core position of the Tab area of ​​the user interface is replaced with the target Tab page, and the target Tab page is displayed in the Tab area. The data of the user interface object is modified according to the user data, and the data area is refreshed based on the modified data of the user interface object to display the user data corresponding to the target Tab page, so as to display the target Tab page in the Tab area of ​​the web site and display the user data in the data area.

[0029] See also Figure 3 , a web site multi-Tab page loading control system of the present invention is provided, the system includes a push module 301 and a load / close module 302, wherein: The push module 301 is used to push initialization information to the broadcast channel of the website when the target Tab page is loaded; The loading / closing module 302 is used to load the target Tab page without closing the target Tab page when receiving the confirmation message of the broadcast channel; and close the target Tab page when receiving the rejection message of the broadcast channel; Among them, when the broadcast channel receives the initialization information of the target Tab page, it determines whether the web site currently has an open Tab page. If there is an open web tab, the rejection information of the target Tab page is returned; if there is no open web tab, the confirmation message of the target tab is returned.

[0030] It can be understood that the website multi-Tab page loading control system provided by the present invention corresponds to the website multi-Tab page loading control method provided by the aforementioned embodiments. The relevant technical features of the website multi-Tab page loading control system can refer to the relevant technical features of the website multi-Tab page loading control method, which will not be repeated here.

[0031] See also Figure 4 , Figure 4 Schematic diagram of an electronic device provided by an embodiment of the present invention. Figure 4 As shown, an embodiment of the present invention provides an electronic device 400, including a memory 410, a processor 420, and a computer program 411 stored in the memory 410 and executable on the processor 420. When the processor 420 executes the computer program 411, the following steps are implemented: when loading a target Tab page, initialization information is pushed to a broadcast channel of a web site; when receiving a confirmation message of the broadcast channel, the target Tab page is not closed, and the target Tab page is loaded; when receiving a rejection message of the broadcast channel, the target Tab page is closed; Among them, when the broadcast channel receives the initialization information of the target Tab page, it determines whether the web site currently has an open Tab page. If there is an open web tab, the rejection information of the target Tab page is returned; if there is no open web tab, the confirmation message of the target tab is returned.

[0032] See also Figure 5 , Figure 5 Schematic diagram of an embodiment of a computer-readable storage medium provided by the present invention. Figure 5 As shown, this embodiment provides a computer-readable storage medium 500, on which a computer program 511 is stored. When the computer program 511 is executed by the processor, the following steps are implemented: when loading the target Tab tab, pushing initialization information to the broadcast channel of the web site; when receiving a confirmation message from the broadcast channel, not closing the target Tab tab, loading the target Tab tab; when receiving a rejection message from the broadcast channel, closing the target Tab tab; wherein, when the broadcast channel receives the initialization information of the target Tab tab, it is determined whether the web site currently has an open Tab tab, and if there is an open web tab, the rejection information of the target Tab tab is returned; if there is no open web tab, the confirmation message of the target tab is returned.

[0033] The embodiment of the present invention provides a method and control system for controlling the loading of multiple tabs of a website. When loading a target tab, initialization information is pushed to the broadcast channel of the website. When receiving a confirmation message from the broadcast channel, the target tab is loaded without closing the target tab. When receiving a rejection message from the broadcast channel, the target tab is closed. When the broadcast channel receives the initialization information of the target tab, it is determined whether the website currently has an open tab. If so, the rejection message of the target tab is returned. If not, the confirmation message of the target tab is returned. The present invention utilizes the broadcast channel mechanism of the website to notify the website of the loading of the tab in real time, and can ensure that the website can only open one web tab at the same time, and will not load duplicate tabs at the same time, so as to avoid confusion.

[0034] It should be noted that in the above embodiments, the description of each embodiment has its own emphasis, and for parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0035] It will be appreciated by those skilled in the art 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. Furthermore, 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.

[0036] 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 computer, 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.

[0037] 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.

[0038] 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 A step that specifies a function in one or more boxes.

[0039] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.

[0040] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A method for controlling loading of multiple tabs of a website, characterized in that: include: When the target tab is loaded, push initialization information to the web site's broadcast channel; When receiving the confirmation message of the broadcast channel, the target Tab page is not closed, and the target Tab page is loaded; When receiving the rejection information of the broadcast channel, closing the target Tab page; Among them, when the broadcast channel receives the initialization information of the target Tab page, it determines whether the web site currently has an open Tab page. If there is an open web tab, the rejection information of the target Tab page is returned; if there is no open web tab, the confirmation message of the target tab is returned.

2. The method for controlling loading of multiple tabs of a website according to claim 1, characterized in that: When the target Tab page is loaded, initialization information is pushed to the broadcast channel of the website, which includes: Assign a unique identifier to each Tab page; When the target Tab page needs to be loaded, the initialization information and the identification information of the target Tab page are pushed to the broadcast channel of the web site; The broadcast channel determines whether there is a Tab page with the same identification information already opened on the web site based on the identification information of the target Tab page. If so, the broadcast channel returns the rejection information of the target Tab page and the identification information of the Tab page currently opened on the web site. If there is no Tab page with the same identification information already opened on the web site or there is no Tab page already opened on the web site, the broadcast channel returns the confirmation information of the target Tab page and the identification information of the target Tab page.

3. The method for controlling loading of multiple tabs of a website according to claim 1, characterized in that: When receiving the confirmation message of the broadcast channel, the target Tab page is not closed and the target Tab page is loaded, including: Divide the user interface of the web site into a Tab area and a data area, wherein the Tab area displays Tab pages, and a user interface object is created in the data area; When receiving the confirmation message of the broadcast channel, obtaining the target Tab object corresponding to the target Tab page tab; According to the target Tab object, obtain corresponding user data; The user data is displayed in the data area through the user interface object.

4. The method for controlling loading of multiple tabs of a website according to claim 3, characterized in that: The identification information of the Tab page has a corresponding relationship with the user data; According to the target Tab object, corresponding user data is obtained, including: According to the identification information of the target Tab page tab corresponding to the target Tab object, user data corresponding to the identification information of the target Tab page tab is acquired.

5. The method for controlling loading of multiple tabs of a website according to claim 3, characterized in that: The method of loading the target Tab page without closing the target Tab page when receiving the confirmation message of the broadcast channel includes: The core position of the Tab area of ​​the user interface is replaced with the target Tab page tab, and the target Tab page tab is displayed in the Tab area.

6. The method for controlling loading of multiple tabs of a website according to claim 3, characterized in that: Displaying the user data in the data area through the user interface object includes: The data of the user interface object is modified according to the user data, and the data area is refreshed based on the modified data of the user interface object to display the user data corresponding to the target Tab page.

7. A web site multi-tab page loading control system, characterized in that: include: The push module is used to push initialization information to the broadcast channel of the web site when the target Tab page is loaded; A loading / closing module, configured to load the target Tab page without closing the target Tab page when receiving a confirmation message from the broadcast channel; and to close the target Tab page when receiving a rejection message from the broadcast channel; Among them, when the broadcast channel receives the initialization information of the target Tab page, it determines whether the web site currently has an open Tab page. If there is an open web tab, the rejection information of the target Tab page is returned; if there is no open web tab, the confirmation message of the target tab is returned.

8. An electronic device, characterized in that: The invention comprises a memory and a processor, wherein the processor is used to implement the steps of a method for controlling loading of multiple tabs of a website when executing a computer management program stored in the memory.

9. A computer-readable storage medium, characterized in that: A computer management program is stored thereon, and when the computer management program is executed by the processor, the steps of the method for controlling the loading of multiple tabs of a website are implemented.