WO2016101732A1 - Cross-page information transmission method and page browsing apparatus - Google Patents

Cross-page information transmission method and page browsing apparatus Download PDF

Info

Publication number
WO2016101732A1
WO2016101732A1 PCT/CN2015/094814 CN2015094814W WO2016101732A1 WO 2016101732 A1 WO2016101732 A1 WO 2016101732A1 CN 2015094814 W CN2015094814 W CN 2015094814W WO 2016101732 A1 WO2016101732 A1 WO 2016101732A1
Authority
WO
WIPO (PCT)
Prior art keywords
domain name
target domain
webpage
cross
information
Prior art date
Application number
PCT/CN2015/094814
Other languages
French (fr)
Chinese (zh)
Inventor
黄小璐
刘朋科
Original Assignee
北京奇虎科技有限公司
奇智软件(北京)有限公司
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 北京奇虎科技有限公司, 奇智软件(北京)有限公司 filed Critical 北京奇虎科技有限公司
Publication of WO2016101732A1 publication Critical patent/WO2016101732A1/en

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/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9577Optimising the visualization of content, e.g. distillation of HTML documents
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • 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

Definitions

  • the present invention relates to the technical field of a terminal browser, and in particular, to a method for transmitting information across a webpage and a webpage browsing device.
  • the present invention has been made in order to provide an information transmission method and a web page browsing apparatus for a cross-webpage that overcome the above problems or at least partially solve the above problems.
  • a method for transmitting information across web pages including:
  • a method for transmitting information across web pages including:
  • the cross-domain information is received by the iframe tag element of the target domain name webpage in the source domain name webpage and stored in a directory related to the target domain name, and the cross-domain information is specified by the target domain name webpage. use.
  • a web browsing device including:
  • a transmitting module configured to transmit the cross-domain information to be stored to an iframe tag element of the target domain name webpage embedded in the source domain name webpage, where the cross-domain information is specified by the target domain name webpage;
  • a receiving module configured to use the iframe tag element to store the received cross-domain information in an relevant directory of the target domain name stored locally by the browser;
  • An access module configured to store the cross-domain information under an associated directory of the target domain name.
  • a web browsing device including:
  • a determining module after opening the target domain name webpage, determining, according to the target domain name webpage, a directory related to a target domain name stored locally by the browser;
  • An obtaining module configured to obtain stored cross-domain information from a directory related to the target domain name
  • the cross-domain information is received by the iframe tag element of the target domain name webpage in the source domain name webpage and stored in a directory related to the target domain name, and the cross-domain information is specified by the target domain name webpage. use.
  • a computer program comprising computer readable code, when said computer readable code is run on a computing device, causing said computing device to perform a cross-webpage as described above Information transmission method.
  • a computer readable medium storing the above computer program is provided.
  • the cross-domain information to be stored is transmitted to an iframe tag element of the target domain name webpage embedded in the source domain name webpage, wherein the cross-domain information is specified by the target domain name webpage; using the iframe
  • the tag element stores the received cross-domain information in an associated directory of the target domain name stored locally by the browser, for accessing the target domain name webpage, so that the user obtains information in different domain name webpages, and provides the user with Web pages for targeted content improve the user experience.
  • FIG. 1 is a schematic flowchart of a first embodiment of a method for transmitting information across web pages according to the present invention
  • FIG. 2 is a schematic flowchart of a second embodiment of a method for transmitting information across web pages according to the present invention
  • FIG. 3 is a schematic flowchart of a third embodiment of a method for transmitting information across web pages according to the present invention.
  • FIG. 4 is a schematic structural diagram of a first embodiment of a webpage browsing apparatus according to the present invention.
  • FIG. 5 is a schematic structural diagram of a second embodiment of a webpage browsing apparatus according to the present invention.
  • Figure 6 is a block diagram schematically showing a computing device for performing an information transmission method across web pages according to the present invention
  • Fig. 7 schematically shows a storage unit for holding or carrying program code implementing the information transmission method across web pages according to the present invention.
  • the inventor of the present invention considers that a technique is used to store duplicate information in web pages of different domain names locally, and web pages of different domain names can access locally stored information, thereby enabling users to obtain different information in a domain name webpage.
  • the information in the webpage of the domain name provides the user with the webpage with targeted content to enhance the user experience.
  • the cross-domain of the source domain name webpage in order to access the information stored locally by the source domain name webpage from the target domain name webpage, avoiding requesting the information again from the network side, and realizing the information transmission across the webpage, the cross-domain of the source domain name webpage to be stored.
  • the information is transmitted to the iframe tag of the target domain name webpage embedded in the webpage, and the iframe tag stores the cross-domain information received in the relevant directory of the target domain name stored locally by the browser, and is opened locally from the browser after the target domain name webpage is opened.
  • FIG. 1 is a flowchart of a first embodiment of a method for transmitting information across web pages according to the present invention. As shown in FIG. 1 , the flow of the method for transmitting information across web pages in this embodiment includes the following steps:
  • Step 101 The cross-domain information to be stored is transmitted to an iframe tag element of the target domain name webpage embedded in the source domain name webpage.
  • the iframe tag element of the target domain name webpage is embedded in the source domain name webpage, and the source domain name webpage is used as the cross-domain information by using the iframe tag element embedded in the source domain name webpage and the target domain name webpage.
  • the iframe tag element After transmitting the target domain name webpage, the iframe tag element receives the cross-domain information to be stored by the source domain name webpage, and proceeds to step 102.
  • Step 102 The received cross-domain information is stored in an relevant directory of the target domain name stored locally by the browser by using the iframe tag element, so as to be accessed by the target domain name webpage.
  • the iframe tag element of the target domain name webpage embedded in the source domain name webpage receives the source domain name network.
  • the cross-domain information transmitted by the page is stored in the relevant directory of the target domain name stored locally by the browser for access to the target domain name webpage.
  • the stored cross-domain information is accessed from the relevant directory of the target domain name stored locally by the browser, and the cross-domain information is displayed to the user in the target domain name webpage or other preset display manner.
  • the cross-domain information to be stored is transmitted to the iframe tag element of the target domain name webpage embedded in the source domain name webpage, and the iframe tag element stores the received cross-domain information in the browser to store the target domain name locally.
  • the target domain name webpage is accessed, so that the user obtains the information in the webpage of different domain names in a domain name webpage, and provides the webpage with targeted content for the user, thereby improving the user experience.
  • FIG. 2 is a flow chart of a second embodiment of a method for transmitting information across web pages according to the present invention. As shown in FIG. 2, the flow of the information transmission method across the webpage in this embodiment includes the following steps:
  • Step 201 Embed an iframe tag element of the target domain name webpage in the source domain name webpage according to the target domain name webpage corresponding to the cross-domain information.
  • the iframe tag element of the target domain name webpage is embedded in the source domain name webpage according to the target domain name webpage corresponding to the cross-domain information, and then proceeds to step 202.
  • the source domain name webpage may be an html webpage
  • the cross-domain information to be stored includes at least one of the following: a picture file, a text file, a video file, and an audio file.
  • the number of the source domain name webpages is two or more, and one of the source domain name webpages is an iframe label element, so that the other source domain webpages transmit the cross-domain information to be stored to the target domain name stored locally by the browser through the iframe label element.
  • the number of target domain pages is one.
  • Step 202 Transfer the cross-domain information to be stored to an iframe tag element of the target domain name webpage embedded in the source domain name webpage.
  • the source domain name webpage uses the iframe tag element embedded in the source domain name webpage, and some or all of the information is transmitted as the cross-domain information to the target domain name webpage, and the iframe tag element receives the source domain name webpage.
  • the process proceeds to step 203.
  • Step 203 The received cross-domain information is stored in an relevant directory of the target domain name stored locally by the browser by using the iframe tag element, so as to be accessed by the target domain name webpage.
  • the iframe tag element embedded in the source domain name webpage receives the cross-domain information transmitted by the source domain name webpage, and stores the received cross-domain information in a related directory of the target domain name stored locally by the browser.
  • the stored cross-domain information is accessed from the relevant directory of the target domain name stored locally by the browser, and the cross-domain information is displayed to the user in the target domain name webpage or other preset display manner.
  • the target domain name is embedded in the source domain name webpage according to the target domain name webpage corresponding to the cross-domain information.
  • the iframe tag element of the webpage transmits the cross-domain information to be stored to the iframe tag element, and the iframe tag element stores the cross-domain information received in the relevant directory of the target domain name stored locally by the browser, so as to be accessed by the target domain name webpage,
  • the user obtains information in a webpage of a different domain name in a domain name webpage, and provides a webpage with targeted content for the user, thereby improving the user experience.
  • FIG. 3 is a flowchart of a third embodiment of a method for transmitting information across web pages according to the present invention. As shown in FIG. 3, the flow of the information transmission method of the cross-webpage in this embodiment specifically includes the following steps:
  • Step 301 Open a target domain name webpage, and determine, according to the target domain name webpage, a directory related to the target domain name stored locally by the browser.
  • the cross-domain information is received by the iframe tag element of the target domain name webpage in the source domain name webpage and stored in the directory related to the target domain name, and the cross-domain information is specified to be used by the target domain name webpage.
  • the directory related to the target domain name stored locally by the browser is determined according to the target domain name webpage, and then proceeds to step 302.
  • Step 302 Obtain the stored cross-domain information from a directory related to the target domain name.
  • the stored cross-domain information is obtained from a directory related to the target domain name, where the cross-domain information includes at least one of the following: a picture file, a text file, a video file, and an audio file.
  • the step of obtaining the stored cross-domain information from the directory related to the target domain name further includes: obtaining corresponding data from the directory related to the target domain name according to the file name of the picture file; or according to the file name of the text file Obtaining corresponding data from a directory related to the target domain name; or obtaining corresponding data from a directory related to the target domain name according to a file name of the video file; or according to a file name of the audio file, The corresponding data is obtained in a directory related to the target domain name.
  • the target domain page and the source domain page may be html pages, wherein the number of source domain pages may be two or more, and one source domain page is an iframe tag element, so that other source domain pages are required to pass the iframe tag element.
  • the stored cross-domain information is transmitted to the relevant directory of the target domain name stored locally by the browser; the number of target domain name web pages is one.
  • the target domain name webpage is opened, and the directory related to the target domain name stored locally by the browser is determined according to the target domain name webpage, and the stored cross-domain information is obtained from the directory related to the target domain name, so that the user obtains different information in a domain name webpage.
  • the information in the webpage of the domain name provides the user with the webpage with targeted content, which improves the user experience.
  • FIG. 4 is a schematic structural diagram of a first embodiment of a webpage browsing apparatus according to the present invention.
  • the browsing device includes a transmitting module 401, a receiving module 402, and an access module 403.
  • the transmitting module 401 is configured to transmit the cross-domain information to be stored to an iframe tag element of the target domain name webpage embedded in the source domain name webpage, where the cross-domain information is specified to be used by the target domain name webpage.
  • the receiving module 402 is configured to use the iframe tag element to store the received cross-domain information in an associated directory of the target domain name stored locally by the browser; the access module 403 is configured to store the cross-domain information in an associated directory of the target domain name.
  • the webpage browsing apparatus of the embodiment further includes: an embedding module 403, configured to embed an iframe tag element of the target domain name webpage in the source domain name webpage according to the target domain name webpage corresponding to the cross-domain information.
  • the iframe tag element is used to transfer the cross-domain information to be stored to the relevant directory of the target domain name stored locally by the browser.
  • the cross-domain information to be stored is transmitted to the iframe tag element of the target domain name webpage embedded in the source domain name webpage by the transmitting module, and the received cross-domain information is stored in the browser by the receiving module by using the iframe tag element.
  • the access module is configured to store the cross-domain information in the relevant directory of the target domain name
  • the embedded module embeds the iframe tag element of the target domain name webpage in the source domain name webpage, so that the user is in a domain name.
  • the webpage obtains information in webpages of different domain names, and provides webpages with targeted content for users, which improves the user experience.
  • FIG. 5 is a schematic structural diagram of a second embodiment of a webpage browsing apparatus according to the present invention.
  • the webpage browsing apparatus of this embodiment includes a determining module 501 and an obtaining module 502.
  • the determining module 501 is configured to determine, according to the target domain name webpage, a directory related to the target domain name stored locally by the browser after the target domain name webpage is opened.
  • the obtaining module 502 is configured to obtain the stored cross-domain information from the directory related to the target domain name.
  • the cross-domain information is received by the iframe tag element of the target domain name webpage in the source domain name webpage and stored in the directory related to the target domain name, and the cross-domain information designation is used by the target domain name webpage.
  • the obtaining module 502 in the webpage browsing apparatus of the embodiment is further configured to: obtain corresponding data from a directory related to the target domain name according to the file name of the image file; or, according to the file name of the text file, from the target domain name Obtain corresponding data in the related directory; or, according to the file name of the video file, obtain corresponding data from the directory related to the target domain name; or, according to the file name of the audio file, obtain corresponding data from the directory related to the target domain name.
  • the determining module determines, according to the target domain name webpage, a directory related to the target domain name stored locally by the browser, and obtains the stored cross-domain information from the directory related to the target domain name by the obtaining module, so that the user obtains the domain name webpage in a domain name webpage.
  • the information in the web pages of different domain names provides the user with the webpage with targeted content, which improves the user experience.
  • modules in the devices of the embodiments can be adaptively changed and placed in one or more devices different from the embodiment.
  • the modules or units or components of the embodiments may be combined into one module or unit or component, and further they may be divided into a plurality of sub-modules or sub-units or sub-components.
  • any combination of the features disclosed in the specification, including the accompanying claims, the abstract and the drawings, and any methods so disclosed, or All processes or units of the device are combined.
  • Each feature disclosed in this specification (including the accompanying claims, the abstract and the drawings) may be replaced by alternative features that provide the same, equivalent or similar purpose.
  • the various component embodiments of the present invention may be implemented in hardware, or in a software module running on one or more processors, or in a combination thereof.
  • a microprocessor or digital signal processor may be used in practice to implement some or all of the functionality of some or all of the components of a web browsing device in accordance with embodiments of the present invention.
  • the invention can also be implemented as a device or device program (e.g., a computer program and a computer program product) for performing some or all of the methods described herein.
  • a program implementing the invention may be stored on a computer readable medium or may be in the form of one or more signals. Such signals may be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.
  • FIG. 6 illustrates a computing device that can implement an information transfer method across web pages.
  • the computing device traditionally includes a computer program product or computer readable medium in the form of a processor 610 and a memory 620.
  • the memory 620 may be an electronic memory such as a flash memory, an EEPROM (Electrically Erasable Programmable Read Only Memory), an EPROM, a hard disk, or a ROM.
  • Memory 620 has a storage space 630 that stores program code 631 for performing any of the method steps described above.
  • storage space 630 storing program code may be included for implementation, respectively.
  • the program code can be read from or written to one or more computer program products.
  • Such computer program products include program code carriers such as hard disks, compact disks (CDs), memory cards or floppy disks.
  • Such a computer program product is typically a portable or fixed storage unit such as that shown in FIG.
  • the storage unit may have storage segments, storage spaces, and the like that are similarly arranged to memory 620 in the computing device of FIG.
  • the program code can be compressed, for example, in an appropriate form.
  • the storage unit includes computer readable code 631' for performing the method steps of the present invention, ie, code that can be read by a processor, such as 610, that when executed by the computing device causes the computing device to execute Each of the steps in the method described above.

Landscapes

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

Abstract

Provided are a cross-page information transmission method and a page browsing apparatus. The method comprises: transferring cross-domain information to be stored to an iframe tag element of a target domain name page, which is embedded in a source domain name page, wherein the cross-domain information is dedicated for use by the target domain name page; and storing, utilizing the iframe tag element, the received cross-domain information under a relevant directory of target domain names locally stored in a browser, for access by the target domain name page. The method and apparatus enable a user to conveniently acquire information in different domain name pages, provide pages with targeted contents to the user, and improve the user experience.

Description

跨网页的信息传输方法和网页浏览装置Cross-web information transmission method and web browsing device 技术领域Technical field
本发明涉及终端浏览器的技术领域,尤其是涉及一种跨网页的信息传输方法和网页浏览装置。The present invention relates to the technical field of a terminal browser, and in particular, to a method for transmitting information across a webpage and a webpage browsing device.
背景技术Background technique
随着社会的发展和信息化程度的不断提高,电脑、手机等终端的使用越来越普及,人们利用各种终端进行工作、学习和生活娱乐等,提升了工作和学习效率,改善了生活质量。With the development of society and the continuous improvement of the degree of informatization, the use of computers, mobile phones and other terminals has become more and more popular. People use various terminals for work, study and life entertainment, which improves work and study efficiency and improves quality of life. .
现在,通信网络已经成为人们获取信息的主要渠道之一,人们利用网络信息技术来获取信息,包括利用电脑、手机等终端浏览器页面来检索资料、阅读新闻、收听音频或观看网页中播放视频等。Nowadays, communication networks have become one of the main channels for people to obtain information. People use network information technology to obtain information, including using terminal browser pages such as computers and mobile phones to retrieve data, read news, listen to audio or watch videos on web pages. .
在实际应用中,人们在利用终端浏览器网页获取信息的时候,常常需要打开多个显示不同信息的网页,以浏览不同网页中的内容。但是在现有技术中,不同域名网页中的信息是独立的,用户无法在一个域名网页中获取不同域名网页中的信息。In practical applications, when people use the terminal browser webpage to obtain information, it is often necessary to open multiple webpages displaying different information to browse content in different webpages. However, in the prior art, information in different domain name web pages is independent, and the user cannot obtain information in different domain name web pages in one domain name webpage.
发明内容Summary of the invention
鉴于上述问题,提出了本发明以便提供一种克服上述问题或者至少部分地解决上述问题的跨网页的信息传输方法和网页浏览装置。In view of the above problems, the present invention has been made in order to provide an information transmission method and a web page browsing apparatus for a cross-webpage that overcome the above problems or at least partially solve the above problems.
根据本发明的一方面,提供了一种跨网页的信息传输方法,包括:According to an aspect of the present invention, a method for transmitting information across web pages is provided, including:
将要存储的跨域信息传送至嵌于源域名网页中的、目标域名网页的iframe标签元素,其中所述跨域信息指定由目标域名网页使用;Transmitting the cross-domain information to be stored to an iframe tag element of the target domain name webpage embedded in the source domain name webpage, wherein the cross-domain information is specified by the target domain name webpage;
利用所述iframe标签元素将接收的所述跨域信息存储于浏览器本地存储的所述目标域名的相关目录下,以供所述目标域名网页存取。And using the iframe tag element to store the received cross-domain information in an associated directory of the target domain name stored locally by the browser for access by the target domain name webpage.
根据本发明的另一方面,还提供了一种跨网页的信息传输方法,包括:According to another aspect of the present invention, a method for transmitting information across web pages is also provided, including:
打开目标域名网页;Open the target domain page;
依据所述目标域名网页确定浏览器本地存储的目标域名相关的目录;以及Determining, according to the target domain name webpage, a directory related to a target domain name stored locally by the browser;
从所述目标域名相关的目录中获取存储的跨域信息;Obtaining the stored cross-domain information from the directory related to the target domain name;
其中,所述跨域信息是由源域名网页中的、所述目标域名网页的iframe标签元素接收并存储在所述目标域名相关的目录中,且所述跨域信息指定由所述目标域名网页使用。 The cross-domain information is received by the iframe tag element of the target domain name webpage in the source domain name webpage and stored in a directory related to the target domain name, and the cross-domain information is specified by the target domain name webpage. use.
根据本发明的另一方面,还提供了一种网页浏览装置,包括:According to another aspect of the present invention, a web browsing device is further provided, including:
传送模块,用于将要存储的跨域信息传送至嵌于源域名网页中的、目标域名网页的iframe标签元素,其中所述跨域信息指定由目标域名网页使用;a transmitting module, configured to transmit the cross-domain information to be stored to an iframe tag element of the target domain name webpage embedded in the source domain name webpage, where the cross-domain information is specified by the target domain name webpage;
接收模块,用于利用所述iframe标签元素将接收的所述跨域信息存储于浏览器本地存储的所述目标域名的相关目录下;a receiving module, configured to use the iframe tag element to store the received cross-domain information in an relevant directory of the target domain name stored locally by the browser;
存取模块,用于在所述目标域名的相关目录下存储所述跨域信息。An access module, configured to store the cross-domain information under an associated directory of the target domain name.
根据本发明的另一方面,还提供了一种网页浏览装置,包括:According to another aspect of the present invention, a web browsing device is further provided, including:
确定模块,在打开目标域名网页后,用于依据所述目标域名网页确定浏览器本地存储的目标域名相关的目录;a determining module, after opening the target domain name webpage, determining, according to the target domain name webpage, a directory related to a target domain name stored locally by the browser;
获取模块,用于从所述目标域名相关的目录中获取存储的跨域信息;An obtaining module, configured to obtain stored cross-domain information from a directory related to the target domain name;
其中,所述跨域信息是由源域名网页中的、所述目标域名网页的iframe标签元素接收并存储在所述目标域名相关的目录中,且所述跨域信息指定由所述目标域名网页使用。The cross-domain information is received by the iframe tag element of the target domain name webpage in the source domain name webpage and stored in a directory related to the target domain name, and the cross-domain information is specified by the target domain name webpage. use.
根据本发明的又一方面,提供了一种计算机程序,其包括计算机可读代码,当所述计算机可读代码在计算设备上运行时,导致所述计算设备执行如上文所述的跨网页的信息传输方法。According to still another aspect of the present invention, a computer program is provided, comprising computer readable code, when said computer readable code is run on a computing device, causing said computing device to perform a cross-webpage as described above Information transmission method.
根据本发明的再一方面,提供了一种计算机可读介质,其中存储了上述的计算机程序。According to still another aspect of the present invention, a computer readable medium storing the above computer program is provided.
本发明的有益效果为:The beneficial effects of the invention are:
在本发明提供的实施例中,将要存储的跨域信息传送至嵌于源域名网页中的、目标域名网页的iframe标签元素,其中所述跨域信息指定由目标域名网页使用;利用所述iframe标签元素将接收的所述跨域信息存储于浏览器本地存储的所述目标域名的相关目录下,以供所述目标域名网页存取,使用户获取不同域名网页中的信息,为用户提供有针对性内容的网页,改善了用户体验。In an embodiment provided by the present invention, the cross-domain information to be stored is transmitted to an iframe tag element of the target domain name webpage embedded in the source domain name webpage, wherein the cross-domain information is specified by the target domain name webpage; using the iframe The tag element stores the received cross-domain information in an associated directory of the target domain name stored locally by the browser, for accessing the target domain name webpage, so that the user obtains information in different domain name webpages, and provides the user with Web pages for targeted content improve the user experience.
上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is only an overview of the technical solutions of the present invention, and the above-described and other objects, features and advantages of the present invention can be more clearly understood. Specific embodiments of the invention are set forth below.
附图说明DRAWINGS
通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中: Various other advantages and benefits will become apparent to those skilled in the art from a The drawings are only for the purpose of illustrating the preferred embodiments and are not to be construed as limiting. Throughout the drawings, the same reference numerals are used to refer to the same parts. In the drawing:
图1为本发明跨网页的信息传输方法第一实施例的流程示意图;1 is a schematic flowchart of a first embodiment of a method for transmitting information across web pages according to the present invention;
图2为本发明跨网页的信息传输方法第二实施例的流程示意图;2 is a schematic flowchart of a second embodiment of a method for transmitting information across web pages according to the present invention;
图3为本发明跨网页的信息传输方法第三实施例的流程示意图;3 is a schematic flowchart of a third embodiment of a method for transmitting information across web pages according to the present invention;
图4为本发明网页浏览装置第一实施例的结构示意图;4 is a schematic structural diagram of a first embodiment of a webpage browsing apparatus according to the present invention;
图5为本发明网页浏览装置第二实施例的结构示意图;FIG. 5 is a schematic structural diagram of a second embodiment of a webpage browsing apparatus according to the present invention; FIG.
图6示意性地示出了用于执行根据本发明的跨网页的信息传输方法的计算设备的框图;以及Figure 6 is a block diagram schematically showing a computing device for performing an information transmission method across web pages according to the present invention;
图7示意性地示出了用于保持或者携带实现根据本发明的跨网页的信息传输方法的程序代码的存储单元。Fig. 7 schematically shows a storage unit for holding or carrying program code implementing the information transmission method across web pages according to the present invention.
具体实施方式detailed description
下面结合附图和具体的实施方式对本发明作进一步的描述。The invention is further described below in conjunction with the drawings and specific embodiments.
本发明的发明人考虑到,采用一种技术将不同域名的网页中的重复信息在本地进行存储,并使得不同域名的网页可以访问到本地存储的信息,从而使用户在一个域名网页中获取不同域名的网页中的信息,为用户提供有针对性内容的网页,提升用户体验的目的。The inventor of the present invention considers that a technique is used to store duplicate information in web pages of different domain names locally, and web pages of different domain names can access locally stored information, thereby enabling users to obtain different information in a domain name webpage. The information in the webpage of the domain name provides the user with the webpage with targeted content to enhance the user experience.
基于此,本发明的技术方案中,为了从目标域名网页中访问源域名网页在本地存储的信息,避免从网络侧再次请求该信息,实现跨网页的信息传输,源域名网页将要存储的跨域信息传送给嵌于本网页中的、目标域名网页的iframe标签,iframe标签将接收的跨域信息存储于浏览器本地存储的目标域名的相关目录下,在目标域名网页打开后,从浏览器本地存储的目标域名的相关目录下访问存储的跨域信息。Based on this, in the technical solution of the present invention, in order to access the information stored locally by the source domain name webpage from the target domain name webpage, avoiding requesting the information again from the network side, and realizing the information transmission across the webpage, the cross-domain of the source domain name webpage to be stored. The information is transmitted to the iframe tag of the target domain name webpage embedded in the webpage, and the iframe tag stores the cross-domain information received in the relevant directory of the target domain name stored locally by the browser, and is opened locally from the browser after the target domain name webpage is opened. Store the stored cross-domain information under the relevant directory of the target domain name.
图1为本发明跨网页的信息传输方法第一实施例的流程图。如图1所示,本实施例跨网页的信息传输方法的流程包括如下步骤:FIG. 1 is a flowchart of a first embodiment of a method for transmitting information across web pages according to the present invention. As shown in FIG. 1 , the flow of the method for transmitting information across web pages in this embodiment includes the following steps:
步骤101、将要存储的跨域信息传送至嵌于源域名网页中的、目标域名网页的iframe标签元素。Step 101: The cross-domain information to be stored is transmitted to an iframe tag element of the target domain name webpage embedded in the source domain name webpage.
在本步骤中,在源域名网页中嵌入目标域名网页的iframe标签元素,源域名网页通过嵌于源域名网页中的、目标域名网页的iframe标签元素,将其中的部分或全部信息作为跨域信息传送目标域名网页,iframe标签元素接收到源域名网页将要存储的跨域信息之后,进入步骤102。In this step, the iframe tag element of the target domain name webpage is embedded in the source domain name webpage, and the source domain name webpage is used as the cross-domain information by using the iframe tag element embedded in the source domain name webpage and the target domain name webpage. After transmitting the target domain name webpage, the iframe tag element receives the cross-domain information to be stored by the source domain name webpage, and proceeds to step 102.
步骤102、利用iframe标签元素将接收的跨域信息存储于浏览器本地存储的目标域名的相关目录下,以供目标域名网页存取。Step 102: The received cross-domain information is stored in an relevant directory of the target domain name stored locally by the browser by using the iframe tag element, so as to be accessed by the target domain name webpage.
在本步骤中,嵌于源域名网页中的、目标域名网页的iframe标签元素接收源域名网 页传送的跨域信息,并将接收到的跨域信息存储于浏览器本地存储的目标域名的相关目录下,以供目标域名网页存取。当用户打开目标域名网页之后,将从浏览器本地存储的目标域名的相关目录下访问存储的跨域信息,并在目标域名网页中或其他预设显示方式将跨域信息显示给用户。In this step, the iframe tag element of the target domain name webpage embedded in the source domain name webpage receives the source domain name network. The cross-domain information transmitted by the page is stored in the relevant directory of the target domain name stored locally by the browser for access to the target domain name webpage. After the user opens the target domain name webpage, the stored cross-domain information is accessed from the relevant directory of the target domain name stored locally by the browser, and the cross-domain information is displayed to the user in the target domain name webpage or other preset display manner.
在本实施例中,将要存储的跨域信息传送至嵌于源域名网页中的、目标域名网页的iframe标签元素,iframe标签元素将接收的跨域信息存储于浏览器本地存储的目标域名的相关目录下,以供目标域名网页存取,使用户在一个域名网页中获取不同域名的网页中的信息,为用户提供有针对性内容的网页,改善了用户体验。In this embodiment, the cross-domain information to be stored is transmitted to the iframe tag element of the target domain name webpage embedded in the source domain name webpage, and the iframe tag element stores the received cross-domain information in the browser to store the target domain name locally. In the directory, the target domain name webpage is accessed, so that the user obtains the information in the webpage of different domain names in a domain name webpage, and provides the webpage with targeted content for the user, thereby improving the user experience.
图2为本发明跨网页的信息传输方法第二实施例的流程图。如图2所示,本实施例跨网页的信息传输方法的流程包括如下步骤:2 is a flow chart of a second embodiment of a method for transmitting information across web pages according to the present invention. As shown in FIG. 2, the flow of the information transmission method across the webpage in this embodiment includes the following steps:
步骤201、依据跨域信息对应的目标域名网页,在源域名网页中嵌入目标域名网页的iframe标签元素。Step 201: Embed an iframe tag element of the target domain name webpage in the source domain name webpage according to the target domain name webpage corresponding to the cross-domain information.
本步骤中,首先依据跨域信息对应的目标域名网页,在源域名网页中嵌入目标域名网页的iframe标签元素,然后进入步骤202。In this step, the iframe tag element of the target domain name webpage is embedded in the source domain name webpage according to the target domain name webpage corresponding to the cross-domain information, and then proceeds to step 202.
在本实施例中,源域名网页可以为html网页,要存储的跨域信息包括如下至少一种:图片文件、文本文件、视频文件和音频文件。其中,源域名网页的数量为二个以上,其中一个源域名网页为iframe标签元素,以使其他的源域名网页通过iframe标签元素将要存储的跨域信息传送至浏览器本地存储的目标域名的相关目录下,目标域名网页的数量为一个。In this embodiment, the source domain name webpage may be an html webpage, and the cross-domain information to be stored includes at least one of the following: a picture file, a text file, a video file, and an audio file. The number of the source domain name webpages is two or more, and one of the source domain name webpages is an iframe label element, so that the other source domain webpages transmit the cross-domain information to be stored to the target domain name stored locally by the browser through the iframe label element. In the directory, the number of target domain pages is one.
步骤202、将要存储的跨域信息传送至嵌于源域名网页中的、目标域名网页的iframe标签元素。Step 202: Transfer the cross-domain information to be stored to an iframe tag element of the target domain name webpage embedded in the source domain name webpage.
在本步骤中,源域名网页通过嵌于源域名网页中的、目标域名网页的iframe标签元素,将其中的部分或全部信息作为跨域信息传送目标域名网页,iframe标签元素接收到源域名网页将要存储的跨域信息之后,进入步骤203。In this step, the source domain name webpage uses the iframe tag element embedded in the source domain name webpage, and some or all of the information is transmitted as the cross-domain information to the target domain name webpage, and the iframe tag element receives the source domain name webpage. After the stored cross-domain information, the process proceeds to step 203.
步骤203、利用iframe标签元素将接收的跨域信息存储于浏览器本地存储的目标域名的相关目录下,以供目标域名网页存取。Step 203: The received cross-domain information is stored in an relevant directory of the target domain name stored locally by the browser by using the iframe tag element, so as to be accessed by the target domain name webpage.
在本步骤中,嵌于源域名网页中的、目标域名网页的iframe标签元素接收源域名网页传送的跨域信息,并将接收到的跨域信息存储于浏览器本地存储的目标域名的相关目录下,以供目标域名网页存取。当用户打开目标域名网页之后,将从浏览器本地存储的目标域名的相关目录下访问存储的跨域信息,并在目标域名网页中或其他预设显示方式将跨域信息显示给用户。In this step, the iframe tag element embedded in the source domain name webpage receives the cross-domain information transmitted by the source domain name webpage, and stores the received cross-domain information in a related directory of the target domain name stored locally by the browser. Next, for access to the target domain page. After the user opens the target domain name webpage, the stored cross-domain information is accessed from the relevant directory of the target domain name stored locally by the browser, and the cross-domain information is displayed to the user in the target domain name webpage or other preset display manner.
在本实施例中,依据跨域信息对应的目标域名网页,在源域名网页中嵌入目标域名 网页的iframe标签元素,将要存储的跨域信息传送至iframe标签元素,iframe标签元素将接收的跨域信息存储于浏览器本地存储的目标域名的相关目录下,以供目标域名网页存取,使用户在一个域名网页中获取不同域名的网页中的信息,为用户提供有针对性内容的网页,改善了用户体验。In this embodiment, the target domain name is embedded in the source domain name webpage according to the target domain name webpage corresponding to the cross-domain information. The iframe tag element of the webpage transmits the cross-domain information to be stored to the iframe tag element, and the iframe tag element stores the cross-domain information received in the relevant directory of the target domain name stored locally by the browser, so as to be accessed by the target domain name webpage, The user obtains information in a webpage of a different domain name in a domain name webpage, and provides a webpage with targeted content for the user, thereby improving the user experience.
在本实施例中,当需要跨网页之间进行信息传输时,则首先在源域名网页中嵌入目标域名网页的iframe标签元素,以通过iframe标签元素将要存储的跨域信息传送至浏览器本地存储的目标域名的相关目录下,实现从浏览器本地存储的目标域名的相关目录下访问存储的跨域信息,其中,本源域名网页将本网页中的部分信息或全部信息作为跨域信息。图3为本发明跨网页的信息传输方法第三实施例的流程图。如图3所示,本实施例跨网页的信息传输方法的流程具体包括如下步骤:In this embodiment, when information transmission between the web pages is required, the iframe tag element of the target domain name webpage is first embedded in the source domain name webpage to transmit the cross-domain information to be stored to the browser local storage through the iframe tag element. Under the relevant directory of the target domain name, the cross-domain information stored in the relevant directory of the target domain name stored locally by the browser is realized, wherein the local domain name webpage uses part or all of the information in the webpage as cross-domain information. FIG. 3 is a flowchart of a third embodiment of a method for transmitting information across web pages according to the present invention. As shown in FIG. 3, the flow of the information transmission method of the cross-webpage in this embodiment specifically includes the following steps:
步骤301、打开目标域名网页,依据目标域名网页确定浏览器本地存储的目标域名相关的目录。Step 301: Open a target domain name webpage, and determine, according to the target domain name webpage, a directory related to the target domain name stored locally by the browser.
在本实施例中,跨域信息是由源域名网页中的、目标域名网页的iframe标签元素接收并存储在目标域名相关的目录中,且跨域信息指定由目标域名网页使用。在本步骤中,在当用户打开目标域名网页之后,依据目标域名网页确定浏览器本地存储的目标域名相关的目录,然后进入步骤302。In this embodiment, the cross-domain information is received by the iframe tag element of the target domain name webpage in the source domain name webpage and stored in the directory related to the target domain name, and the cross-domain information is specified to be used by the target domain name webpage. In this step, after the user opens the target domain name webpage, the directory related to the target domain name stored locally by the browser is determined according to the target domain name webpage, and then proceeds to step 302.
步骤302、从目标域名相关的目录中获取存储的跨域信息。Step 302: Obtain the stored cross-domain information from a directory related to the target domain name.
在本步骤中,从目标域名相关的目录中获取存储的跨域信息,其中,跨域信息包括如下至少一种:图片文件、文本文件、视频文件和音频文件。从目标域名相关的目录中获取存储的跨域信息的步骤进一步包括:根据所述图片文件的文件名,从所述目标域名相关的目录中获取相应的数据;或者根据所述文本文件的文件名,从所述目标域名相关的目录中获取相应的数据;或者根据所述视频文件的文件名,从所述目标域名相关的目录中获取相应的数据;或者根据所述音频文件的文件名,从所述目标域名相关的目录中获取相应的数据。In this step, the stored cross-domain information is obtained from a directory related to the target domain name, where the cross-domain information includes at least one of the following: a picture file, a text file, a video file, and an audio file. The step of obtaining the stored cross-domain information from the directory related to the target domain name further includes: obtaining corresponding data from the directory related to the target domain name according to the file name of the picture file; or according to the file name of the text file Obtaining corresponding data from a directory related to the target domain name; or obtaining corresponding data from a directory related to the target domain name according to a file name of the video file; or according to a file name of the audio file, The corresponding data is obtained in a directory related to the target domain name.
进一步的,目标域名网页和源域名网页可以为html网页,其中,源域名网页的数量可以为二个以上,其中一个源域名网页为iframe标签元素,以使其他的源域名网页通过iframe标签元素将要存储的跨域信息传送至浏览器本地存储的目标域名的相关目录下;目标域名网页的数量为一个。Further, the target domain page and the source domain page may be html pages, wherein the number of source domain pages may be two or more, and one source domain page is an iframe tag element, so that other source domain pages are required to pass the iframe tag element. The stored cross-domain information is transmitted to the relevant directory of the target domain name stored locally by the browser; the number of target domain name web pages is one.
在本实施例中,打开目标域名网页,依据目标域名网页确定浏览器本地存储的目标域名相关的目录,从目标域名相关的目录中获取存储的跨域信息,使用户在一个域名网页中获取不同域名的网页中的信息,为用户提供有针对性内容的网页,改善了用户体验。In this embodiment, the target domain name webpage is opened, and the directory related to the target domain name stored locally by the browser is determined according to the target domain name webpage, and the stored cross-domain information is obtained from the directory related to the target domain name, so that the user obtains different information in a domain name webpage. The information in the webpage of the domain name provides the user with the webpage with targeted content, which improves the user experience.
图4为本发明网页浏览装置第一实施例的结构示意图。如图4所示,本实施例网页 浏览装置包括:传送模块401、接收模块402和存取模块403。其中,传送模块401用于将要存储的跨域信息传送至嵌于源域名网页中的、目标域名网页的iframe标签元素,其中跨域信息指定由目标域名网页使用。接收模块402用于利用iframe标签元素将接收的跨域信息存储于浏览器本地存储的目标域名的相关目录下;存取模块403用于在目标域名的相关目录下存储所述跨域信息。FIG. 4 is a schematic structural diagram of a first embodiment of a webpage browsing apparatus according to the present invention. As shown in FIG. 4, the webpage of this embodiment The browsing device includes a transmitting module 401, a receiving module 402, and an access module 403. The transmitting module 401 is configured to transmit the cross-domain information to be stored to an iframe tag element of the target domain name webpage embedded in the source domain name webpage, where the cross-domain information is specified to be used by the target domain name webpage. The receiving module 402 is configured to use the iframe tag element to store the received cross-domain information in an associated directory of the target domain name stored locally by the browser; the access module 403 is configured to store the cross-domain information in an associated directory of the target domain name.
进一步的,本实施例网页浏览装置还包括:嵌入模块403,用于依据跨域信息对应的目标域名网页,在源域名网页中嵌入目标域名网页的iframe标签元素。其中,利用iframe标签元素将要存储的跨域信息传送至浏览器本地存储的目标域名的相关目录下。Further, the webpage browsing apparatus of the embodiment further includes: an embedding module 403, configured to embed an iframe tag element of the target domain name webpage in the source domain name webpage according to the target domain name webpage corresponding to the cross-domain information. The iframe tag element is used to transfer the cross-domain information to be stored to the relevant directory of the target domain name stored locally by the browser.
在本实施例中,通过传送模块将要存储的跨域信息传送至嵌于源域名网页中的、目标域名网页的iframe标签元素,通过接收模块利用iframe标签元素将接收的跨域信息存储于浏览器本地存储的目标域名的相关目录下,存取模块用于在目标域名的相关目录下存储所述跨域信息,嵌入模块在源域名网页中嵌入目标域名网页的iframe标签元素,使用户在一个域名网页中获取不同域名的网页中的信息,为用户提供有针对性内容的网页,改善了用户的使用体验。In this embodiment, the cross-domain information to be stored is transmitted to the iframe tag element of the target domain name webpage embedded in the source domain name webpage by the transmitting module, and the received cross-domain information is stored in the browser by the receiving module by using the iframe tag element. In the related directory of the locally stored target domain name, the access module is configured to store the cross-domain information in the relevant directory of the target domain name, and the embedded module embeds the iframe tag element of the target domain name webpage in the source domain name webpage, so that the user is in a domain name. The webpage obtains information in webpages of different domain names, and provides webpages with targeted content for users, which improves the user experience.
图5为本发明网页浏览装置第二实施例的结构示意图。如图5所示,本实施例网页浏览装置包括:确定模块501和获取模块502。其中,确定模块501在打开目标域名网页后,用于依据目标域名网页确定浏览器本地存储的目标域名相关的目录;获取模块502用于从目标域名相关的目录中获取存储的跨域信息。本实施例中,跨域信息是由源域名网页中的、目标域名网页的iframe标签元素接收并存储在所述目标域名相关的目录中,且跨域信息指定由所述目标域名网页使用。FIG. 5 is a schematic structural diagram of a second embodiment of a webpage browsing apparatus according to the present invention. As shown in FIG. 5, the webpage browsing apparatus of this embodiment includes a determining module 501 and an obtaining module 502. The determining module 501 is configured to determine, according to the target domain name webpage, a directory related to the target domain name stored locally by the browser after the target domain name webpage is opened. The obtaining module 502 is configured to obtain the stored cross-domain information from the directory related to the target domain name. In this embodiment, the cross-domain information is received by the iframe tag element of the target domain name webpage in the source domain name webpage and stored in the directory related to the target domain name, and the cross-domain information designation is used by the target domain name webpage.
进一步的,本实施例网页浏览装置中的获取模块502具体还用于:根据图片文件的文件名,从目标域名相关的目录中获取相应的数据;或者,根据文本文件的文件名,从目标域名相关的目录中获取相应的数据;或者,根据视频文件的文件名,从目标域名相关的目录中获取相应的数据;或者,根据音频文件的文件名,从目标域名相关的目录中获取相应的数据。Further, the obtaining module 502 in the webpage browsing apparatus of the embodiment is further configured to: obtain corresponding data from a directory related to the target domain name according to the file name of the image file; or, according to the file name of the text file, from the target domain name Obtain corresponding data in the related directory; or, according to the file name of the video file, obtain corresponding data from the directory related to the target domain name; or, according to the file name of the audio file, obtain corresponding data from the directory related to the target domain name. .
在本实施例中,通过确定模块依据目标域名网页确定浏览器本地存储的目标域名相关的目录,通过获取模块从目标域名相关的目录中获取存储的跨域信息,使用户在一个域名网页中获取不同域名的网页中的信息,为用户提供有针对性内容的网页,改善了用户体验。In this embodiment, the determining module determines, according to the target domain name webpage, a directory related to the target domain name stored locally by the browser, and obtains the stored cross-domain information from the directory related to the target domain name by the obtaining module, so that the user obtains the domain name webpage in a domain name webpage. The information in the web pages of different domain names provides the user with the webpage with targeted content, which improves the user experience.
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。 In the description provided herein, numerous specific details are set forth. However, it is understood that the embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures, and techniques are not shown in detail so as not to obscure the understanding of the description.
类似地,应当理解,为了精简本公开并帮助理解各个发明方面中的一个或多个,在上面对本发明的示例性实施例的描述中,本发明的各个特征有时被一起分组到单个实施例、图、或者对其的描述中。然而,并不应将该公开的方法解释成反映如下意图:即所要求保护的本发明要求比在每个权利要求中所明确记载的特征更多的特征。更确切地说,如下面的权利要求书所反映的那样,发明方面在于少于前面公开的单个实施例的所有特征。因此,遵循具体实施方式的权利要求书由此明确地并入该具体实施方式,其中每个权利要求本身都作为本发明的单独实施例。Similarly, the various features of the invention are sometimes grouped together into a single embodiment, in the above description of the exemplary embodiments of the invention, Figure, or a description of it. However, the method disclosed is not to be interpreted as reflecting the intention that the claimed invention requires more features than those recited in the claims. Rather, as the following claims reflect, inventive aspects reside in less than all features of the single embodiments disclosed herein. Therefore, the claims following the specific embodiments are hereby explicitly incorporated into the embodiments, and each of the claims as a separate embodiment of the invention.
本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。Those skilled in the art will appreciate that the modules in the devices of the embodiments can be adaptively changed and placed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and further they may be divided into a plurality of sub-modules or sub-units or sub-components. In addition to such features and/or at least some of the processes or units being mutually exclusive, any combination of the features disclosed in the specification, including the accompanying claims, the abstract and the drawings, and any methods so disclosed, or All processes or units of the device are combined. Each feature disclosed in this specification (including the accompanying claims, the abstract and the drawings) may be replaced by alternative features that provide the same, equivalent or similar purpose.
此外,本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在下面的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。In addition, those skilled in the art will appreciate that, although some embodiments described herein include certain features that are included in other embodiments and not in other features, combinations of features of different embodiments are intended to be within the scope of the present invention. Different embodiments are formed and formed. For example, in the following claims, any one of the claimed embodiments can be used in any combination.
本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的网页浏览装置中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。The various component embodiments of the present invention may be implemented in hardware, or in a software module running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or digital signal processor (DSP) may be used in practice to implement some or all of the functionality of some or all of the components of a web browsing device in accordance with embodiments of the present invention. The invention can also be implemented as a device or device program (e.g., a computer program and a computer program product) for performing some or all of the methods described herein. Such a program implementing the invention may be stored on a computer readable medium or may be in the form of one or more signals. Such signals may be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.
例如,图6示出了可以实现跨网页的信息传输方法的计算设备。该计算设备传统上包括处理器610和存储器620形式的计算机程序产品或者计算机可读介质。存储器620可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。存储器620具有存储用于执行上述方法中的任何方法步骤的程序代码631的存储空间630。例如,存储程序代码的存储空间630可以包括分别用于实现上 面的方法中的各种步骤的各个程序代码631。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。这些计算机程序产品包括诸如硬盘,紧致盘(CD)、存储卡或者软盘之类的程序代码载体。这样的计算机程序产品通常为例如图7所示的便携式或者固定存储单元。该存储单元可以具有与图6的计算设备中的存储器620类似布置的存储段、存储空间等。程序代码可以例如以适当形式进行压缩。通常,存储单元包括用于执行本发明的方法步骤的计算机可读代码631’,即可以由诸如610之类的处理器读取的代码,当这些代码由计算设备运行时,导致该计算设备执行上面所描述的方法中的各个步骤。For example, FIG. 6 illustrates a computing device that can implement an information transfer method across web pages. The computing device traditionally includes a computer program product or computer readable medium in the form of a processor 610 and a memory 620. The memory 620 may be an electronic memory such as a flash memory, an EEPROM (Electrically Erasable Programmable Read Only Memory), an EPROM, a hard disk, or a ROM. Memory 620 has a storage space 630 that stores program code 631 for performing any of the method steps described above. For example, storage space 630 storing program code may be included for implementation, respectively. The various program codes 631 of the various steps in the method. The program code can be read from or written to one or more computer program products. These computer program products include program code carriers such as hard disks, compact disks (CDs), memory cards or floppy disks. Such a computer program product is typically a portable or fixed storage unit such as that shown in FIG. The storage unit may have storage segments, storage spaces, and the like that are similarly arranged to memory 620 in the computing device of FIG. The program code can be compressed, for example, in an appropriate form. Typically, the storage unit includes computer readable code 631' for performing the method steps of the present invention, ie, code that can be read by a processor, such as 610, that when executed by the computing device causes the computing device to execute Each of the steps in the method described above.
本文中所称的“一个实施例”、“实施例”或者“一个或者多个实施例”意味着,结合实施例描述的特定特征、结构或者特性包括在本发明的至少一个实施例中。此外,请注意,这里“在一个实施例中”的词语例子不一定全指同一个实施例。"an embodiment," or "an embodiment," or "an embodiment," In addition, it is noted that the phrase "in one embodiment" is not necessarily referring to the same embodiment.
应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。It is to be noted that the above-described embodiments are illustrative of the invention and are not intended to be limiting, and that the invention may be devised without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as a limitation. The word "comprising" does not exclude the presence of the elements or steps that are not recited in the claims. The word "a" or "an" The invention can be implemented by means of hardware comprising several distinct elements and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means can be embodied by the same hardware item. The use of the words first, second, and third does not indicate any order. These words can be interpreted as names.
此外,还应当注意,本说明书中使用的语言主要是为了可读性和教导的目的而选择的,而不是为了解释或者限定本发明的主题而选择的。因此,在不偏离所附权利要求书的范围和精神的情况下,对于本技术领域的普通技术人员来说许多修改和变更都是显而易见的。对于本发明的范围,对本发明所做的公开是说明性的,而非限制性的,本发明的范围由所附权利要求书限定。 In addition, it should be noted that the language used in the specification has been selected for the purpose of readability and teaching, and is not intended to be construed or limited. Therefore, many modifications and changes will be apparent to those skilled in the art without departing from the scope of the invention. The disclosure of the present invention is intended to be illustrative, and not restrictive, and the scope of the invention is defined by the appended claims.

Claims (14)

  1. 一种跨网页的信息传输方法,包括:A method for transmitting information across web pages, including:
    将要存储的跨域信息传送至嵌于源域名网页中的、目标域名网页的iframe标签元素,其中所述跨域信息指定由目标域名网页使用;以及Transmitting the cross-domain information to be stored to an iframe tag element of the target domain page embedded in the source domain page, wherein the cross-domain information is specified by the target domain page;
    利用所述iframe标签元素将接收的所述跨域信息存储于浏览器本地存储的所述目标域名的相关目录下,以供所述目标域名网页存取。And using the iframe tag element to store the received cross-domain information in an associated directory of the target domain name stored locally by the browser for access by the target domain name webpage.
  2. 根据权利要求1所述的跨网页的信息传输方法,其中,在传送所述要存储的跨域信息之前,所述方法进一步包含:The method for transmitting information across web pages according to claim 1, wherein before the transmitting the cross-domain information to be stored, the method further comprises:
    依据所述跨域信息对应的目标域名网页,在所述源域名网页中嵌入所述目标域名网页的iframe标签元素。The iframe tag element of the target domain name webpage is embedded in the source domain name webpage according to the target domain name webpage corresponding to the cross-domain information.
  3. 根据权利要求1或2所述的跨网页的信息传输方法,其中,所述要存储的跨域信息包括如下至少一种:The cross-domain information transmission method according to claim 1 or 2, wherein the cross-domain information to be stored includes at least one of the following:
    图片文件、文本文件、视频文件和音频文件。Image files, text files, video files, and audio files.
  4. 根据权利要求1-3任一所述的跨网页的信息传输方法,其中,所述源域名网页为html网页。The method for transmitting information across web pages according to any one of claims 1 to 3, wherein the source domain name webpage is an html webpage.
  5. 根据权利要求1所述的跨网页的信息传输方法,其中,所述源域名网页的数量为二个以上,所述目标域名网页的数量为一个。The method for transmitting information across web pages according to claim 1, wherein the number of the source domain name web pages is two or more, and the number of the target domain name web pages is one.
  6. 一种跨网页的信息传输方法,包括:A method for transmitting information across web pages, including:
    打开目标域名网页;Open the target domain page;
    依据所述目标域名网页确定浏览器本地存储的目标域名相关的目录;以及Determining, according to the target domain name webpage, a directory related to a target domain name stored locally by the browser;
    从所述目标域名相关的目录中获取存储的跨域信息;Obtaining the stored cross-domain information from the directory related to the target domain name;
    其中,所述跨域信息是由源域名网页中的、所述目标域名网页的iframe标签元素接收并存储在所述目标域名相关的目录中,且所述跨域信息指定由所述目标域名网页使用。The cross-domain information is received by the iframe tag element of the target domain name webpage in the source domain name webpage and stored in a directory related to the target domain name, and the cross-domain information is specified by the target domain name webpage. use.
  7. 根据权利要求6所述的跨网页的信息传输方法,其中,所述跨域信息包括如下至少一种:The method for transmitting information across web pages according to claim 6, wherein the cross-domain information comprises at least one of the following:
    图片文件、文本文件、视频文件和音频文件。Image files, text files, video files, and audio files.
  8. 根据权利要求7所述的跨网页的信息传输方法,其中,所述从所述目标域名相关的目录中获取存储的跨域信息的步骤进一步包括:The method for transmitting information across web pages according to claim 7, wherein the step of obtaining the stored cross-domain information from the directory related to the target domain name further comprises:
    根据所述图片文件的文件名,从所述目标域名相关的目录中获取相应的数据;或者Obtaining corresponding data from a directory related to the target domain name according to a file name of the picture file; or
    根据所述文本文件的文件名,从所述目标域名相关的目录中获取相应的数据;或者Obtaining corresponding data from a directory related to the target domain name according to a file name of the text file; or
    根据所述视频文件的文件名,从所述目标域名相关的目录中获取相应的数据;或者 Obtaining corresponding data from a directory related to the target domain name according to a file name of the video file; or
    根据所述音频文件的文件名,从所述目标域名相关的目录中获取相应的数据。Corresponding data is obtained from a directory related to the target domain name according to the file name of the audio file.
  9. 一种网页浏览装置,包括:A web browsing device includes:
    传送模块,用于将要存储的跨域信息传送至嵌于源域名网页中的、目标域名网页的iframe标签元素,其中所述跨域信息指定由目标域名网页使用;a transmitting module, configured to transmit the cross-domain information to be stored to an iframe tag element of the target domain name webpage embedded in the source domain name webpage, where the cross-domain information is specified by the target domain name webpage;
    接收模块,用于利用所述iframe标签元素将接收的所述跨域信息存储于浏览器本地存储的所述目标域名的相关目录下;以及a receiving module, configured to use the iframe tag element to store the received cross-domain information in an associated directory of the target domain name stored locally by the browser;
    存取模块,用于在所述目标域名的相关目录下存储所述跨域信息。An access module, configured to store the cross-domain information under an associated directory of the target domain name.
  10. 根据权利要求9所述的网页浏览装置,其中,还包括:The webpage browsing device according to claim 9, further comprising:
    嵌入模块,用于依据所述跨域信息对应的目标域名网页,在所述源域名网页中嵌入所述目标域名网页的iframe标签元素。And an embedding module, configured to embed an iframe tag element of the target domain name webpage in the source domain name webpage according to the target domain name webpage corresponding to the cross-domain information.
  11. 一种网页浏览装置,包括:A web browsing device includes:
    确定模块,在打开目标域名网页后,用于依据所述目标域名网页确定浏览器本地存储的目标域名相关的目录;a determining module, after opening the target domain name webpage, determining, according to the target domain name webpage, a directory related to a target domain name stored locally by the browser;
    获取模块,用于从所述目标域名相关的目录中获取存储的跨域信息;An obtaining module, configured to obtain stored cross-domain information from a directory related to the target domain name;
    其中,所述跨域信息是由源域名网页中的、所述目标域名网页的iframe标签元素接收并存储在所述目标域名相关的目录中,且所述跨域信息指定由所述目标域名网页使用。The cross-domain information is received by the iframe tag element of the target domain name webpage in the source domain name webpage and stored in a directory related to the target domain name, and the cross-domain information is specified by the target domain name webpage. use.
  12. 根据权利要求11所述的网页浏览装置,其中,所述获取模块具体用于:The webpage browsing device according to claim 11, wherein the obtaining module is specifically configured to:
    根据所述图片文件的文件名,从所述目标域名相关的目录中获取相应的数据;或者Obtaining corresponding data from a directory related to the target domain name according to a file name of the picture file; or
    根据所述文本文件的文件名,从所述目标域名相关的目录中获取相应的数据;或者Obtaining corresponding data from a directory related to the target domain name according to a file name of the text file; or
    根据所述视频文件的文件名,从所述目标域名相关的目录中获取相应的数据;或者Obtaining corresponding data from a directory related to the target domain name according to a file name of the video file; or
    根据所述音频文件的文件名,从所述目标域名相关的目录中获取相应的数据。Corresponding data is obtained from a directory related to the target domain name according to the file name of the audio file.
  13. 一种计算机程序,包括计算机可读代码,当所述计算机可读代码在计算设备上运行时,导致所述计算设备执行根据权利要求1至8任一项所述的跨网页的信息传输方法。A computer program comprising computer readable code, when the computer readable code is run on a computing device, causing the computing device to perform the method of transmitting information across web pages according to any one of claims 1-8.
  14. 一种计算机可读介质,其中存储了如权利要求13所述的计算机程序。 A computer readable medium storing the computer program of claim 13.
PCT/CN2015/094814 2014-12-26 2015-11-17 Cross-page information transmission method and page browsing apparatus WO2016101732A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410836274.4 2014-12-26
CN201410836274.4A CN104504096B (en) 2014-12-26 2014-12-26 A kind of information transferring method and web page browsing device of inter-network page

Publications (1)

Publication Number Publication Date
WO2016101732A1 true WO2016101732A1 (en) 2016-06-30

Family

ID=52945494

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/094814 WO2016101732A1 (en) 2014-12-26 2015-11-17 Cross-page information transmission method and page browsing apparatus

Country Status (2)

Country Link
CN (1) CN104504096B (en)
WO (1) WO2016101732A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109274780A (en) * 2018-08-02 2019-01-25 平安科技(深圳)有限公司 Across domain name data transmission method, device, computer equipment and storage medium
CN110300133A (en) * 2018-03-22 2019-10-01 财付通支付科技有限公司 Cross-domain data transmission method, apparatus, equipment and storage medium

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104504096B (en) * 2014-12-26 2019-02-01 北京奇虎科技有限公司 A kind of information transferring method and web page browsing device of inter-network page
CN107566436A (en) * 2016-07-01 2018-01-09 北京京东尚科信息技术有限公司 Page messages center element and message real time propelling movement method and apparatus
CN108574709B (en) * 2017-03-10 2021-09-07 北京京东尚科信息技术有限公司 Method and device for realizing cross-domain operation
CN107222580A (en) * 2017-07-28 2017-09-29 郑州云海信息技术有限公司 A kind of method that utilization picture realizes cross-domain transmission data
WO2023060427A1 (en) * 2021-10-12 2023-04-20 深圳Tcl新技术有限公司 Browser data cross-domain sharing method and device, medium and computer program product

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103546570A (en) * 2013-10-29 2014-01-29 小米科技有限责任公司 Method, device and terminal for achieving network client-side cross-domain data request
CN104111829A (en) * 2014-06-25 2014-10-22 小米科技有限责任公司 Data storage method and device
CN104504096A (en) * 2014-12-26 2015-04-08 北京奇虎科技有限公司 Cross-web information transmitting method and web browsing device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101610195B (en) * 2008-06-17 2011-10-26 上海格尔软件股份有限公司 Method for AJAX cross-domain synchronous transmission of high volume data
US8452837B2 (en) * 2010-11-03 2013-05-28 Google Inc. Data delivery
CN102307220B (en) * 2011-03-18 2014-04-02 北京思特奇信息技术股份有限公司 Cross-domain webpage information interaction method
CN103309877B (en) * 2012-03-12 2017-04-05 腾讯科技(深圳)有限公司 The method of cross-domain communication and full duplex communication, device
US9264507B2 (en) * 2013-01-03 2016-02-16 Sap Portals Israel Ltd Cross domain communication channel

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103546570A (en) * 2013-10-29 2014-01-29 小米科技有限责任公司 Method, device and terminal for achieving network client-side cross-domain data request
CN104111829A (en) * 2014-06-25 2014-10-22 小米科技有限责任公司 Data storage method and device
CN104504096A (en) * 2014-12-26 2015-04-08 北京奇虎科技有限公司 Cross-web information transmitting method and web browsing device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110300133A (en) * 2018-03-22 2019-10-01 财付通支付科技有限公司 Cross-domain data transmission method, apparatus, equipment and storage medium
CN109274780A (en) * 2018-08-02 2019-01-25 平安科技(深圳)有限公司 Across domain name data transmission method, device, computer equipment and storage medium
CN109274780B (en) * 2018-08-02 2023-01-10 平安科技(深圳)有限公司 Cross-domain name data transmission method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN104504096A (en) 2015-04-08
CN104504096B (en) 2019-02-01

Similar Documents

Publication Publication Date Title
WO2016101732A1 (en) Cross-page information transmission method and page browsing apparatus
US11294983B2 (en) Inferred user identity in content distribution
US11032478B2 (en) Smart camera user interface
WO2015196954A1 (en) Webpage element display method and browser device
US9010622B2 (en) System and method for delivering information using image code
US20150121085A1 (en) Cookie Information Sharing Method and System
CN107390994B (en) Interface presentation method and device
US9697562B2 (en) Resource provisioning for electronic books
WO2015081848A1 (en) Socialized extended search method and corresponding device and system
WO2016101755A1 (en) Drag-and-drop operation-based method and device for adjusting location of object in cross pages
WO2016000507A1 (en) Traffic-saving mode search service method, server, client and system
WO2014000519A1 (en) System and method for keyword filtering
WO2017000613A1 (en) Method and device for generating indication information in search result page
WO2020042376A1 (en) Method and apparatus for outputting information
US20180132012A1 (en) Method and apparatus for playing video in application program
WO2015154682A1 (en) Network request processing method, network server, and network system
US20150220516A1 (en) Method and system for providing relevant portions of multi-media based on text searching of multi-media
US11902341B2 (en) Presenting links during an online presentation
US9798779B2 (en) Obtaining desired web content for a mobile device
US10003632B2 (en) User terminal apparatus, server apparatus and methods of providing, by the user terminal apparatus and the server apparatus, continuous play service
US10044827B1 (en) Trigger-based session service cache population
WO2015154678A1 (en) File processing method, device, and network system
WO2015196776A1 (en) Website link exchange method and apparatus
WO2014059849A1 (en) Search device and method
WO2019073470A1 (en) Method and system for creating, distributing and tracking embedded content and lead generation

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15871801

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15871801

Country of ref document: EP

Kind code of ref document: A1