CN108021593B - Information transfer method and device and browser - Google Patents

Information transfer method and device and browser Download PDF

Info

Publication number
CN108021593B
CN108021593B CN201610972140.4A CN201610972140A CN108021593B CN 108021593 B CN108021593 B CN 108021593B CN 201610972140 A CN201610972140 A CN 201610972140A CN 108021593 B CN108021593 B CN 108021593B
Authority
CN
China
Prior art keywords
page
target
information
target information
public
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610972140.4A
Other languages
Chinese (zh)
Other versions
CN108021593A (en
Inventor
马世豪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Kingsoft Cloud Network Technology Co Ltd
Beijing Kingsoft Cloud Technology Co Ltd
Original Assignee
Beijing Kingsoft Cloud Network Technology Co Ltd
Beijing Kingsoft Cloud Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Kingsoft Cloud Network Technology Co Ltd, Beijing Kingsoft Cloud Technology Co Ltd filed Critical Beijing Kingsoft Cloud Network Technology Co Ltd
Priority to CN201610972140.4A priority Critical patent/CN108021593B/en
Publication of CN108021593A publication Critical patent/CN108021593A/en
Application granted granted Critical
Publication of CN108021593B publication Critical patent/CN108021593B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention discloses an information transmission method, an information transmission device and a browser, wherein the method comprises the following steps: after jumping to a target page under the same domain name from a current page, receiving an instruction for transmitting target information of the current page to the target page, wherein the target information is as follows: the information which can be transmitted to the target page in the current page; judging whether a preset public page contains the target information or not; if so, the target information contained in the public page is transmitted to the target page. By applying the embodiment of the invention, the error probability during information transmission between the pages can be reduced.

Description

Information transfer method and device and browser
Technical Field
The invention relates to the technical field of internet, in particular to an information transmission method, an information transmission device and a browser.
Background
With the rapid development of the internet, more and more users access websites in the internet to acquire information. A website corresponds to a domain name, which is the name used by the Internet (INTERNET) to find the website, and is an important identifier of the website on the Internet, for example, the domain name of the Jinshanyun iswww.ksyun.comThe domain name is the name of an enterprise or organization on the internet, also called an enterprise online trademark. When a website includes a plurality of webpages (also called sub-pages), the domain name corresponding to each webpage is a sub-domain name under the domain name of the website, and for convenience of description, the domain name of the website may be referred to as a main domain name, and the domain name of the sub-page is a sub-domain name, for example, the main domain name is abc.
For example, as shown in fig. 1, after jumping from page a to page B, all states (such as menu information, machine room information, user name, user ID, commodity ID, and the like) of the user at page a need to be transferred to page B, and after the browser obtains the state parameter information transferred by page a and performs initialization processing, page B may be rendered and/or requested for data from a server at page B.
At present, the state parameter information of one page is transferred to the next page, a common method is to transfer a related value through a URL link, and the state parameter information to be transferred is included in the URL link of the next page, for example, when a user name (userName), a user ID (userld), a commodity ID and other related information are required to be transferred when a page a jumps to a page B, the URL of the page B obtained by jumping from the page a needs to carry information such as the user name, the user ID, the commodity ID and the like. A URL (Uniform resource locator), also called a web page address, is an address of a standard resource on the internet.
Therefore, when the page jumps among different sub-domains under the same main domain name, the information is transmitted to the next page through the URL link. However, for the page development and maintenance, different pages may be maintained by different developers, when the page developer B maintains the page B, the parameter information that the page B needs to obtain from the previous page a is changed, and the developer a of the page a cannot respond to the change made by the developer B in time to correspondingly modify the parameter information that the page a transmits to the page B through the URL link. In this case, one or more messages are missed or missed when passing messages between pages, resulting in the next page being in error due to lack of messages.
Disclosure of Invention
The embodiment of the invention aims to provide an information transmission method, an information transmission device and a browser, which can reduce the probability of errors in information transmission between pages.
In order to achieve the above object, an embodiment of the present invention discloses an information transmission method, including:
after jumping to a target page under the same domain name from a current page, receiving an instruction for transmitting target information of the current page to the target page, wherein the target information is as follows: the information which can be transmitted to the target page in the current page;
judging whether a preset public page contains the target information or not;
if so, the target information contained in the public page is transmitted to the target page.
Optionally, after the transmitting the target information contained in the public page to the target page, the method further includes:
and rendering the target page according to the target information.
Optionally, the method further includes:
and when the public page is judged not to contain the target information, writing the target information into the public page, and then executing the step of transmitting the target information contained in the public page to the target page.
Optionally, the step of transferring the target information contained in the public page to the target page includes:
judging whether first information is consistent with the target information contained in the public page, wherein the first information is as follows: the information which needs to be transmitted to the target page currently in the current page;
if so, transmitting the target information contained in the public page to the target page;
otherwise, after the target information contained in the public page is replaced by the first information, the target information contained in the public page is transmitted to the target page.
Optionally, the method further includes:
storing the target information contained in the public page in a local storage of the public page;
before the step of judging whether the target information is stored in the preset public page, the method further includes:
and loading the target information stored in the local storage into the public page.
Optionally, the method further includes:
and deleting the target information stored in the local storage.
In order to achieve the above object, an embodiment of the present invention further discloses an information transmission apparatus, including:
a receiving module, configured to receive, after jumping from a current page to a target page under the same domain name, an instruction for transferring target information of the current page to the target page, where the target information is: the information which can be transmitted to the target page in the current page;
the judging module is used for judging whether a preset public page contains the target information or not; if yes, triggering a transmission module;
the transfer module is configured to transfer the target information included in the public page to the target page.
Optionally, the apparatus further comprises:
and the rendering module is used for rendering the target page according to the target information after the target information contained in the public page is transmitted to the target page by the transmission module.
Optionally, the apparatus further comprises:
and the writing module is used for writing the target information into the public page and triggering the transfer module when the judging module judges that the public page does not contain the target information.
Optionally, the transfer module includes:
a determining submodule, configured to determine whether first information is consistent with the target information included in the public page, where the first information is: the information which needs to be transmitted to the target page currently in the current page; if yes, triggering the transmission submodule, otherwise, triggering the replacement transmission submodule;
the delivery sub-module is configured to deliver the target information included in the public page to the target page when the judgment sub-module judges that the first information is consistent with the target information included in the public page;
the replacement transmission sub-module is configured to, when the judgment sub-module judges that the first information is consistent with the target information included in the public page, replace the target information included in the public page with the first information, and transmit the target information included in the public page to the target page.
Optionally, the apparatus further comprises:
the storage module is used for storing the target information contained in the public page in a local storage of the public page;
and the loading module is used for loading the target information stored in the local storage into the public page before the judging module judges whether the target information is stored in the preset public page.
Optionally, the apparatus further comprises:
and the deleting module is used for deleting the target information stored in the local storage.
In order to achieve the above object, an embodiment of the present invention further discloses a browser, where the browser is a browser that applies any one of the above information transfer devices.
As can be seen from the above, in the solution provided in the embodiment of the present invention, after jumping from the current page to the target page under the same domain name, an instruction for transferring the target information of the current page to the target page is received, whether the target information is stored in a preset public page is determined, and if so, the target information stored in the public page is transferred to the target page.
Therefore, by applying the scheme provided by the embodiment of the invention, the target information of the information which can be transmitted to the target page by the current page can be acquired from the preset public page after the jump between the pages is carried out, and the target information does not need to be acquired from the URL link of the target page, so that the condition of missing transmission or wrong transmission during information transmission between the pages is avoided, and the error probability during information transmission is reduced.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a diagram illustrating information transfer between pages in the prior art;
fig. 2 is a first flowchart of an information delivery method according to an embodiment of the present invention;
fig. 3 is a second flowchart of an information delivery method according to an embodiment of the present invention;
fig. 4 is a third flowchart illustrating an information delivery method according to an embodiment of the present invention;
fig. 5 is a schematic diagram illustrating information transfer between pages in the information transfer method according to the embodiment of the present invention;
fig. 6 is a schematic diagram of a first structure of an information delivery apparatus according to an embodiment of the present invention;
fig. 7 is a schematic diagram of a second structure of an information delivery apparatus according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a third information transmission apparatus according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
First, technical terms related to the embodiments of the present invention will be briefly described.
Local storage (localStorage) is an object for storing local data based on a browser of HTML5 technology, and localStorage has the following advantages: large capacity, easy use, strong, native support.
The postMessage is a commonly used function in the Windows API (Application Programming Interface) for placing a message in a message queue. The postMessage method in the HTML5 technology can realize cross-document message transmission, allow scripts from different sources to perform limited communication in an asynchronous mode, and realize cross-text file, multi-window and cross-domain message transmission.
In order to solve the problem of the prior art, embodiments of the present invention provide an information transfer method, an information transfer device, and a browser. First, an information delivery method provided by an embodiment of the present invention is described in detail below.
It should be noted that the information transmission method and apparatus provided in the embodiment of the present invention are preferably applicable to browsers, for example, an IE kernel-based browser and a Chrome kernel-based browser, and certainly are also applicable to other types of browsers, which is not limited in the embodiment of the present invention.
Fig. 2 is a first flowchart of an information delivery method according to an embodiment of the present invention, where the method includes:
s201, after jumping from the current page to the target page under the same domain name, receiving an instruction of transmitting the target information of the current page to the target page.
Wherein, the target information is: information in the current page that can be passed to the target page. For example, the information in the current page that can be passed to the target page may include: the identification information of the user in the current page, the identification information of the commodity in the current page, and the like.
It can be understood that different pages under the same domain name have a certain correlation, for example, a user clicks a jump link in a current page and jumps to a target page corresponding to the jump link under the same domain name, and the content in the target page has a correlation with the content in the current page, at this time, in order to ensure the continuity of information, it is necessary to transfer the information related to the target page in the current page to the target page, so that the target page performs page rendering according to the related information, and responds to other operations of the user on the target page according to the related information.
S202, judging whether a preset public page contains target information or not; if so, S203 is executed.
It should be noted that, it is reasonable that the public page may be a page preset by the browser in the domain name where the current page is located, or may be a page automatically added to the domain name by the browser when the user accesses the web page corresponding to the domain name for the first time, and the like, and the embodiment of the present invention does not limit this.
S203, transmitting the target information contained in the public page to the target page.
Specifically, the step of transferring the target information contained in the public page to the target page may include:
judging whether the first information is consistent with target information contained in the public page, wherein the first information is as follows: the information which needs to be transmitted to the target page currently in the current page;
if so, transmitting the target information contained in the public page to the target page;
otherwise, after the target information contained in the public page is replaced by the first information, the target information contained in the public page is transmitted to the target page.
It can be understood that, in practical applications, a situation may occur where information that can be transferred to a target page in a current page changes, for example: when different users jump from the current page to the target page, the identification information of the users transmitted to the target page by the current page is different; for another example: after the current page is maintained or updated, the target information which can be transmitted to the target page by the current page is changed. Therefore, it is also necessary to determine whether the information that needs to be currently transferred to the target page in the current page is consistent with the target information included in the common page. If the information is inconsistent with the first information, the target information contained in the public page is required to be replaced by the first information, and then the target information contained in the public page is transmitted to the target page, so that the correctness of the transmitted information is ensured.
In practical applications, there may be three cases that the first information is inconsistent with the target information contained in the public page: the first information includes information not included in the object information, the object information includes information not included in the first information, and the object information includes information that does not match the first information. At this time, the target information contained in the public page may be replaced with the first information by calling the postMessage method in the HTML5 to add, delete, and change information in the public page.
In practical application, after jumping to a target page, target information in a public page can be read by calling a postMessage method in the HTML5, so that the transfer of the target information is realized.
In a specific implementation manner of the embodiment of the present invention, as shown in fig. 3, on the basis of the embodiment shown in fig. 2, the information delivery method may further include:
s204, when the public page is judged not to contain the target information, the target information is written into the public page, and then the step S203 is executed.
It can be understood that in practical applications, there may be some cases where the common page does not contain the target information that can be transferred to the target page in the current page, for example: the user jumps from the current page to the target page for the first time, or the target information contained in the common page is cleared before jumping from the current page to the target page. Therefore, when it is determined that the target information is not contained in the common page, the target information may be written in the common page and then the target information contained in the common page may be transferred to the target page.
In practical application, target information can be written into a public page by calling a postMessage method in the HTML5, so that cross-domain storage of the target information is realized, that is, information of a current page is stored into the public page.
In order to locally persist target information contained in a common page, on the basis of the embodiments shown in fig. 2 and fig. 3, the information delivery method may further include: and storing the target information contained in the public page in a local storage of the public page.
In this case, before determining whether the target information is stored in the preset public page, the information delivery method may further include: and loading the target information stored in the local storage of the public page into the public page.
In practical application, if the current page stores the wrong information in the local storage of the public page due to bug (bug) of the development function, the wrong information stored in the local storage of the public page needs to be deleted, so that the correct information is stored in the local storage of the public page again, and the wrong information is prevented from being transmitted to the target page. Therefore, on the basis of the embodiments shown in fig. 2 and fig. 3, the information delivery method may further include: and deleting the target information stored in the local storage.
In practical applications, the target information stored in the local storage can be deleted by calling the postMessage method in the HTML 5.
In an embodiment of the present invention, as shown in fig. 4, on the basis of the embodiment shown in fig. 2, after the step S203 transfers the target information contained in the public page to the target page, the information transfer method may further include:
and S205, rendering the target page according to the target information.
It can be understood that, in practical applications, after the target information included in the public page is transmitted to the target page, the target page may perform page rendering by using the target information, for example, after a user clicks a certain commodity in the current page, the user may jump to the target page corresponding to the commodity, the current page needs to transmit the identification information of the commodity to the target page, the target page may request all information of the commodity, such as pictures, characters, and the like, from the back-end server according to the identification information of the commodity, and perform page rendering on the target page based on the commodity information obtained by the request.
It should be emphasized that, in the embodiment of the present invention, the current page may write all the information that can be transferred to the target page in the current page into the common page, and after jumping from the current page to the target page, the target page may directly read the required target information from the common page. Therefore, developers of the current page only need to consider that all information which can be transmitted to the target page by the current page is written into the public page, and do not need to consider the specific content of the information required by the target page; when a developer of the target page maintains the target page, only the specific information required to be acquired from the public page is changed. Therefore, for developers, only the logic of the page and the information which can be provided by the page to other pages need to be considered, communication with the developers of other pages is not needed, the information which is required to be transmitted to other pages by the page is needed, and the communication pressure among the developers is reduced.
For example, as shown in fig. 5, which is a schematic diagram of information transfer between pages in the information transfer method provided by the embodiment of the present invention, page a may store all state machines of the page into a common page, so-called state machine, that is, information of states in which elements in the page are currently located. After jumping from page a to page B, page B may read the required state machine information from the state machine information of page a in the common page, and perform page rendering based on the read information.
As can be seen from the above, in the solution provided in the embodiment of the present invention, after jumping from the current page to the target page under the same domain name, an instruction for transferring the target information of the current page to the target page is received, whether the target information is stored in a preset public page is determined, and if so, the target information stored in the public page is transferred to the target page.
Therefore, by applying the scheme provided by the embodiment of the invention, the target information of the information which can be transmitted to the target page by the current page can be acquired from the preset public page after the jump between the pages is carried out, and the target information does not need to be acquired from the URL link of the target page, so that the condition of missing transmission or wrong transmission during information transmission between the pages is avoided, and the error probability during information transmission is reduced.
It should be noted that, the common page is set in the same domain name of the current page and the target page, and the security mechanism of the browser only allows the pages in the same domain name to be called, for example, the browser only allows the page with the domain name of a.abc.com to call the information of the page with the domain name of b.abc.com, but does not allow the page corresponding to a.abc.com to call the information of the page corresponding to a.def.com, so that it is safe to use the information transfer method provided by the embodiment of the present invention to transfer information between pages in the same domain name. Moreover, as can be seen from the above description, the embodiment of the present invention can be implemented based on the postMessage method and local storage in the HTML5 technology, the implementation principle is simple, and the used code is popular, so that the application is also simple and convenient.
Corresponding to the information transmission method, the embodiment of the invention also provides an information transmission device.
Corresponding to the method embodiment shown in fig. 2, fig. 6 is a first schematic structural diagram of an information delivery apparatus according to an embodiment of the present invention, where the apparatus may include:
a receiving module 601, configured to receive, after jumping from a current page to a target page under the same domain name, an instruction for transferring target information of the current page to the target page, where the target information is: the information which can be transmitted to the target page in the current page;
a determining module 602, configured to determine whether a preset public page includes the target information; if yes, the transmission module 603 is triggered;
the transferring module 603 is configured to transfer the target information included in the public page to the target page.
In practical applications, the transferring module 603 may include:
a determining submodule (not shown in the figure), configured to determine whether first information is consistent with the target information included in the public page, where the first information is: the information which needs to be transmitted to the target page currently in the current page; if yes, triggering a transmission submodule (not shown in the figure), otherwise, triggering a replacement transmission submodule (not shown in the figure);
the delivery sub-module is configured to deliver the target information included in the public page to the target page when the judgment sub-module judges that the first information is consistent with the target information included in the public page;
the replacement transmission sub-module is configured to, when the judgment sub-module judges that the first information is consistent with the target information included in the public page, replace the target information included in the public page with the first information, and transmit the target information included in the public page to the target page.
In practical applications, as shown in the second schematic structural diagram of the message delivery apparatus shown in fig. 7, on the basis of the embodiment shown in fig. 6, the message delivery apparatus may further include:
a writing module 604, configured to write the target information into the public page and then trigger the transferring module 603 when the determining module 602 determines that the public page does not include the target information.
In practical applications, the information delivery apparatus may further include:
a storage module (not shown in the figure) for storing the target information contained in the public page in a local storage of the public page;
a loading module (not shown in the figure), configured to load the target information stored in the local storage into the public page before the determining module 602 determines whether the target information is stored in a preset public page.
In practical applications, the information delivery apparatus may further include:
a deleting module (not shown in the figure) for deleting the target information stored in the local storage.
In practical applications, as shown in the third schematic structural diagram of the message passing apparatus shown in fig. 8, on the basis of the embodiment shown in fig. 6, the message passing apparatus may further include:
a rendering module 605, configured to render the target page according to the target information after the transfer module 603 transfers the target information included in the public page to the target page.
As can be seen from the above, in the solution provided in the embodiment of the present invention, after jumping from the current page to the target page under the same domain name, an instruction for transferring the target information of the current page to the target page is received, whether the target information is stored in a preset public page is determined, and if so, the target information stored in the public page is transferred to the target page.
Therefore, by applying the scheme provided by the embodiment of the invention, the target information of the information which can be transmitted to the target page by the current page can be acquired from the preset public page after the jump between the pages is carried out, and the target information does not need to be acquired from the URL link of the target page, so that the condition of missing transmission or wrong transmission during information transmission between the pages is avoided, and the error probability during information transmission is reduced.
An embodiment of the present invention further provides a browser, where the browser has the same function as the existing browser, and the browser further applies any one of the information delivery apparatuses in fig. 6 to 8, so that the browser provided in the embodiment of the present invention can achieve the same effect as the above fig. 6 to 8, and the specific content of the browser is not described in detail in the embodiment of the present invention, and the same contents refer to the corresponding contents.
For the above device embodiment and browser, since they are basically similar to the method embodiment, the description is simple, and the relevant points can be referred to the partial description of the method embodiment.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. The term "comprising", without further limitation, means that the element so defined is not excluded from the group consisting of additional identical elements in the process, method, article, or apparatus that comprises the element.
Those skilled in the art will appreciate that all or part of the steps in the above method embodiments may be implemented by a program to instruct relevant hardware to perform the steps, and the program may be stored in a computer-readable storage medium, which is referred to herein as a storage medium, such as: ROM/RAM, magnetic disk, optical disk, etc.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (11)

1. An information delivery method, the method comprising:
after jumping to a target page under the same domain name from a current page, receiving an instruction for transmitting target information of the current page to the target page, wherein the target information is as follows: the information which can be transmitted to the target page in the current page;
judging whether a preset public page with the same domain name as the current page contains the target information or not;
if so, transmitting the target information contained in the public page to the target page by calling a postMessage function;
and when the public page does not contain the target information, writing the target information into the public page by calling the postMessage function, and then executing the step of transferring the target information contained in the public page to the target page by calling the postMessage function.
2. The method of claim 1, further comprising, after said passing said destination information contained in said common page to said destination page:
and rendering the target page according to the target information.
3. The method of claim 1, wherein the step of passing the target information contained in the public page to the target page by calling a postMessage function comprises:
judging whether first information is consistent with the target information contained in the public page, wherein the first information is as follows: the information which needs to be transmitted to the target page currently in the current page;
if so, transferring the target information contained in the public page to the target page by calling the postMessage function;
otherwise, after the target information contained in the public page is replaced by the first information, the target information contained in the public page is transmitted to the target page by calling the postMessage function.
4. The method of claim 1, further comprising:
storing the target information contained in the public page in a local storage of the public page;
before the step of judging whether the target information is stored in the preset public page, the method further includes:
and loading the target information stored in the local storage into the public page.
5. The method of claim 4, further comprising:
and deleting the target information stored in the local storage.
6. An information delivery apparatus, the apparatus comprising:
a receiving module, configured to receive, after jumping from a current page to a target page under the same domain name, an instruction for transferring target information of the current page to the target page, where the target information is: the information which can be transmitted to the target page in the current page;
the judging module is used for judging whether a preset public page under the same domain name as the current page contains the target information or not; if yes, triggering a transmission module;
the transfer module is used for transferring the target information contained in the public page to the target page by calling a postMessage function;
and the writing module is used for writing the target information into the public page by calling the postMessage function when the judging module judges that the public page does not contain the target information, and then triggering the transfer module.
7. The apparatus of claim 6, further comprising:
and the rendering module is used for rendering the target page according to the target information after the target information contained in the public page is transmitted to the target page by the transmission module.
8. The apparatus of claim 6, wherein the transfer module comprises:
a determining submodule, configured to determine whether first information is consistent with the target information included in the public page, where the first information is: the information which needs to be transmitted to the target page currently in the current page; if yes, triggering the transmission submodule, otherwise, triggering the replacement transmission submodule;
the delivery sub-module is configured to deliver the target information included in the public page to the target page by calling the postMessage function when the judgment sub-module judges that the first information is consistent with the target information included in the public page;
the replacement transfer sub-module is configured to, when the judgment sub-module judges that the first information is consistent with the target information included in the public page, replace the target information included in the public page with the first information, and transfer the target information included in the public page to the target page by calling the postMessage function.
9. The apparatus of claim 6, further comprising:
the storage module is used for storing the target information contained in the public page in a local storage of the public page;
and the loading module is used for loading the target information stored in the local storage into the public page before the judging module judges whether the target information is stored in the preset public page.
10. The apparatus of claim 9, further comprising:
and the deleting module is used for deleting the target information stored in the local storage.
11. A browser to which the information delivery apparatus according to any one of claims 6 to 10 is applied.
CN201610972140.4A 2016-11-03 2016-11-03 Information transfer method and device and browser Active CN108021593B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610972140.4A CN108021593B (en) 2016-11-03 2016-11-03 Information transfer method and device and browser

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610972140.4A CN108021593B (en) 2016-11-03 2016-11-03 Information transfer method and device and browser

Publications (2)

Publication Number Publication Date
CN108021593A CN108021593A (en) 2018-05-11
CN108021593B true CN108021593B (en) 2020-05-08

Family

ID=62084489

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610972140.4A Active CN108021593B (en) 2016-11-03 2016-11-03 Information transfer method and device and browser

Country Status (1)

Country Link
CN (1) CN108021593B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110245156A (en) * 2019-05-29 2019-09-17 吉旗(成都)科技有限公司 Caching data processing method and device
CN112905940A (en) * 2021-02-25 2021-06-04 平安普惠企业管理有限公司 Page communication method and device, computer equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102279876A (en) * 2011-07-22 2011-12-14 张士益 Method for controlling information interaction between websites
CN102508674A (en) * 2011-12-02 2012-06-20 方正国际软件有限公司 Method based on JSON (javascript serialized object notation) for passing object-oriented parameters and system
CN103207863A (en) * 2012-01-13 2013-07-17 腾讯科技(深圳)有限公司 Page cross-domain interacting method and terminal
CN103428179A (en) * 2012-05-18 2013-12-04 阿里巴巴集团控股有限公司 Method, system and device for logging into multi-domain-name website
CN104954501A (en) * 2014-03-31 2015-09-30 北京金山网络科技有限公司 Cross-domain information interactive method, device thereof and system thereof
CN104965690A (en) * 2014-04-18 2015-10-07 腾讯科技(深圳)有限公司 Method and apparatus for processing data

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9680910B2 (en) * 2014-01-22 2017-06-13 International Business Machines Corporation Storing information to manipulate focus for a webpage

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102279876A (en) * 2011-07-22 2011-12-14 张士益 Method for controlling information interaction between websites
CN102508674A (en) * 2011-12-02 2012-06-20 方正国际软件有限公司 Method based on JSON (javascript serialized object notation) for passing object-oriented parameters and system
CN103207863A (en) * 2012-01-13 2013-07-17 腾讯科技(深圳)有限公司 Page cross-domain interacting method and terminal
CN103428179A (en) * 2012-05-18 2013-12-04 阿里巴巴集团控股有限公司 Method, system and device for logging into multi-domain-name website
CN104954501A (en) * 2014-03-31 2015-09-30 北京金山网络科技有限公司 Cross-domain information interactive method, device thereof and system thereof
CN104965690A (en) * 2014-04-18 2015-10-07 腾讯科技(深圳)有限公司 Method and apparatus for processing data

Also Published As

Publication number Publication date
CN108021593A (en) 2018-05-11

Similar Documents

Publication Publication Date Title
JP6898452B2 (en) Data acquisition method and device
US10049168B2 (en) Systems and methods for modifying webpage data
CN109446459B (en) Page switching method and device, electronic equipment and storage medium
US9026902B2 (en) Handling unexpected responses to script executing in client-side application
US20130104038A1 (en) Method for automatic url shortening
CN105335404A (en) Page information loading method and device
CN104111944A (en) Page processing method and device and page generating method and device
CN106528587B (en) Page display method and device in composite webpage system
CN113641940B (en) Page jump method, device, system, equipment and storage medium
EP2960793B1 (en) Communication between frames of a web browser
CN105743945A (en) Method and system for downloading files on the basis of switching download sources
CN112637361B (en) Page proxy method, device, electronic equipment and storage medium
CN106330988B (en) Method and device for reissuing hypertext transfer request and client
US9292252B2 (en) Methods and apparatus for voiced-enabling a web application
CN108021593B (en) Information transfer method and device and browser
US11729248B2 (en) Web application component migration to a cloud computing system
US20220078161A1 (en) Method and apparatus for advertisement anti-blocking
CN112417336B (en) Page display method and device, electronic equipment and storage medium
CN106156291A (en) The caching method of static resource and system thereof based on Localstroage
CN112187622B (en) Instant message display method and device and server
CN103905477A (en) HTTP request processing method and server
CN111382387B (en) Webpage access method, device, equipment and storage medium based on applet
CN104346460A (en) Method and device for downloading file and browser client
CN114528510A (en) Webpage data processing method and device, electronic equipment and medium
CN113626741A (en) Method and equipment for loading webpage of mobile client

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant