[go: up one dir, main page]

CN101150559A - A data exchange method and system for websites - Google Patents

A data exchange method and system for websites Download PDF

Info

Publication number
CN101150559A
CN101150559A CNA2006101270450A CN200610127045A CN101150559A CN 101150559 A CN101150559 A CN 101150559A CN A2006101270450 A CNA2006101270450 A CN A2006101270450A CN 200610127045 A CN200610127045 A CN 200610127045A CN 101150559 A CN101150559 A CN 101150559A
Authority
CN
China
Prior art keywords
page
data
website
local
websites
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.)
Pending
Application number
CNA2006101270450A
Other languages
Chinese (zh)
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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CNA2006101270450A priority Critical patent/CN101150559A/en
Publication of CN101150559A publication Critical patent/CN101150559A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a data switching method between websites, which is used for solving problems that display effect is bad and the quoted page content can not be modified when pages are quoted between websites in prior art, further solving problems that the whole page fault is caused by fault of the quoted page content and cross-domain sharing can not be realized when pages are quoted, etc. The method comprises: a website which receives a page access request determines the accessed local website which needs quote pages of other websites; the website acquires page data of other websites and combines with data of the local website into data of one page; the website sends the data of one page to requesters. The invention also discloses a website system and a data switching system.

Description

The method and system of exchanges data between a kind of website
Technical field
The present invention relates to networking technology area, relate in particular to the method and system of exchanges data between a kind of website.
Background technology
Frame (Frame) technology is mainly used in the page data that carries out between the website and shares, this technology is passed through the Frame mark with a HTML (HTML, Hyper Text Markup Language) file is embedded in another html file, and makes this two separate demonstrations of file.
Frame (Iframe) technology of floating has been done improvement to the Frame technology, this technology is directly embedded into a html file in another html file by the Iframe mark, and carry out the mutual integration of content with embedded html file, make the as a whole identical content that repeatedly in the different pages, shows, such as menu, page navigation etc.; Perhaps, make as a whole a plurality of different contents that in the same page, show, need not to repeat to write content, improved reusability greatly.
Yet, carry out page data between the website when sharing utilizing the Iframe technology, Iframe parent form (promptly comprise the window of Iframe or quote the window of other content of pages) must be specified the size of the Iframe child form (frame promptly floats) that is cited, if the size and the not of uniform size of appointment of actual Iframe child form cause, when actual Iframe child form is excessive, will cause parent form scroll bar to occur, when actual Iframe child form is too small, will cause the parent form blank, either way influence very much the attractive in appearance of the page.
In addition, the Iframe child form is made mistakes and will be caused full page to be made mistakes; And, utilize the Iframe technology can't revise the content of Iframe child form, parent form and child form can not be shared the page data of non-html format, can not cross-domainly share, promptly when both stride different domain names, parent form can not be quoted the JavaScript content in the child form, the JavaScript mistake will occur if quote.Owing to be not that all browsers are all supported the Iframe technology preferably, therefore use the Iframe technology also will bring compatible relatively poor problem.
Summary of the invention
The invention provides the method and system of exchanges data between a kind of website, have the display effect difference when solving in the prior art reference page between the website and can't revise the problem of the content of pages that is cited; Further solve because the content of pages that is cited is made mistakes and caused full page to be made mistakes, and the problem such as cross-domain shared that when reference page, can't realize data.
The invention provides following technical scheme:
The method of exchanges data between a kind of website, the method comprising the steps of:
The website that receives accessing page request determines that accessed local page need quote the page of other website;
Described website obtains the data of the page of described other website, and is the data of a page with the data fusion of itself and described local page;
Described website sends to the requestor with the data of a described page.
According to said method:
After described website determines that accessed local page need be quoted the page of other website, judge earlier the data of the page that the local data that whether store by described local page become with the data fusion of the page of described other website, if, then directly read the data of this page, otherwise, obtain the data of corresponding page from described other websites and it is become the data of a page with the data fusion of described local page, and the data of further preserving this page in this locality.
If described website can't obtain described other website the page data or when the data of the page that obtains described other website, make mistakes, then described website uses pre-prepd data to replace the data of the page of described other website, and is that the data of a page send to the requestor with the data fusion of itself and described local page.
When described website obtains the data of the page of described other website, judge whether this locality stores these data earlier, if, then directly read these data, otherwise, obtain these data and be kept at this locality from described other websites.
Described website further is provided with useful life after the data of the page of described other website of preservation, this locality; And when determining that according to described useful life the described data that read are expired, obtain corresponding data and preservation again from described other website.
Described website comprises the fusion of data carries out format analysis and/or modification to the data of the page of described other website.
When described website determines that the data format of the page of described other website is non-HTML html format, resolve and extract the data of this form earlier.
Described local page is quoted the page of a plurality of described other websites, and perhaps described local page is quoted a plurality of pages of described other websites.
A kind of web station system comprises:
Receiving system is used to receive accessing page request;
Deriving means is used for determining that accessed local page obtains corresponding data in the time of need quoting the data of the page of other websites;
Processing unit, being used for the data of the page of described other website that will obtain and the data fusion of described local page is the data of a page;
Dispensing device is used to send the data of a described page.
Described system also comprises:
Storage device is used to store the data of the page of described other website and/or the data of a described page.
Wherein, described processing unit is the functional module that is arranged in the server, or is server independently.
Described receiving system, deriving means, processing unit, dispensing device are arranged in the different servers; Perhaps, described receiving system, deriving means, processing unit, dispensing device are arranged in the same server.
A kind of data exchange system comprises:
Client device is used to initiate accessing page request, and the data that receive the accessed page;
A plurality of websites, be used for receiving the also definite accessed local page of accessing page request and need quote the page of other website a website, and the data of obtaining the page of described other website, and be that the data of a page send to the requestor with the data fusion of itself and described local page, described request person is client device or website.
Wherein, described website comprises:
Receiving system is used to receive accessing page request;
Deriving means is used for determining that accessed local page obtains corresponding data in the time of need quoting the data of the page of other websites;
Processing unit, being used for the data of the page of described other website that will obtain and the data fusion of described local page is the data of a page;
Dispensing device is used to send the data of a described page.
Described website also comprises:
Storage device is used to store the data of the page of described other website and/or the data of a described page.
Beneficial effect of the present invention is as follows:
1, in the present invention, the website that receives accessing page request obtains accessed local page, and behind the page of determining other website that described local page need be quoted, obtain the data of the page of described other website, to the data that get access to analyze, revise, processing such as fusion; When the data of the page of the data of the page that can't obtain described other website or described other website of obtaining are made mistakes, described website can use pre-prepd data to substitute the data of the page of described other website, has guaranteed the correctness of the data of the page that sends to client device.
2, because the processing of the data of the page of described other website is finished by described website fully, therefore described local page need not to specify the size of the page of described other website, but stretch automatically according to the big or small of the page of described other website, also reduced cost and the difficulty of cooperating between the website simultaneously.
3, because the Iframe technology is not used in the fusion of the data of the data of the page of described other website and described local page, the form of the data of a page that is fused into all is HTML, and therefore different browsers is good to the data compatibility of a described page; In addition, because the data of the page of described other website and/or the data of a described page are preserved in described website, therefore can when makeing mistakes, the data of the page of described other website still can return normal data to client device, simultaneously, cross-domain problem of makeing mistakes has also been avoided in this processing, has alleviated the pressure of described other website.
Description of drawings
Fig. 1 is the structural representation of data exchange system between the website in the embodiment of the invention;
Fig. 2 is the structural representation of website in the embodiment of the invention;
Fig. 3 is the process chart of exchanges data between the website in the embodiment of the invention.
Embodiment
Among the present invention, the website that receives accessing page request is when definite accessed local page need be quoted the page of other website, obtain the data of the page of described other website, and be that the data of a new page send to the requestor with the data fusion of the data that get access to and described local page, improve the display effect of the page with this.
Consult shown in Figure 1, in the present embodiment between the website system of exchanges data comprise: client device 100, website 101; Described client device 100 is used for initiating accessing page request to website 101, and the data that receive the accessed page; Described website 101 is a plurality of, be used in the accessing page request that receives described client device 100, obtain accessed local page, and when definite described local page need be quoted the page of other website, obtain the data of the page of described other website, and be that the data of a page send to described client device 100 data fusion of the data that get access to and described local page.
Further, in Fig. 1, ask accession page a to website A, need to quote the page b of website B among the described page a, then obtain the data of described page b from website B by website A when client device 100.If can't visiting, visit the data of overtime or the page b that returns, page b makes mistakes, website A then abandons the data of page b, and replace the data of page b with some pre-prepd data, become the data of a new page c with the data fusion of page a, and described page c is returned to client device 100.Like this, when the data of page b are made mistakes, also can normally use the data of page a, guarantee the correctness of the data that website A returns to client device 100.
After described website A got access to the data of normal page b from website B, website A further handled the data of page b.Website A can analyze the data of page b, as analyze the data format of page b, if html format, then directly carry out subsequent treatment, if other form, then need resolve and extract the data of this other form earlier and carry out subsequent treatment again, as the data format when the page is extending mark language (XML, eXtensible Markup Language), then resolve and extract the data of this XML form and be to send to client device 100 after the data of page c with the data fusion of these data and local page a earlier.
Further, described website A can make amendment to the data of page b as required, as the data content of revising page b, link, pattern, picture etc., or the data of page b is split, and the selection portion divided data is for further processing.
Described website A merges data and the page a of the page b after handling after the data of page b being analyzed, modification etc. handled, and forms brand-new page c.Owing to merged the data of page a and page b among the described page c, and described fusion is finished by website A, the data of the page c that generates all are html format, do not re-use the Iframe technology, thereby avoided the intrinsic defective of Iframe technology, promptly parent form needs the problem of the big or small and different browser of assigned I frame to the poor compatibility of Iframe.
Further, because the processing to the data of the page b of website B is all finished by website A, the cooperation exploitation that need not website B can realize operations such as the analysis of page b, modification, fusion, and, have only and in the time need quoting the page b of website B, just carry out above-mentioned processing, therefore reduced cost and the difficulty of cooperating between the website.
Data for fear of the page b of described website A repetitive requests website B, described website A preserves the data of the page c after merging in this locality, after receiving at accessing page request, judge the local data that whether store page c earlier, if then directly read these data, otherwise, when the local page a that determines request need quote the page b of website B, reed was got the data of described page b, and was that the data of a page c are kept at this locality with the data fusion of itself and described local page a; Described website A also can preserve the data of the page b of website B in this locality, when described website A obtains the data of page b of described website B, judges whether this locality stores these data earlier, if, then directly read these data, otherwise, obtain the data of page b and be kept at this locality from described website B.This processing has alleviated the load pressure of website B, and can make website A when website B goes wrong, and still can return the normal page to client device.In addition, because the data of page b and/or page c are kept on the A of website, the web data that finally obtains of client device is provided by website A fully like this, and can not cause can't cross-domain shared problem.
During described website A stores described website B in this locality the data of the page b useful life can be set further, if these data are out of date when reading the data of page b, then described website A obtain again described website B page b data and be kept at this locality so that carry out processing such as subsequent analysis, modification and fusion.
When the data of the page b of described website B also need be quoted the data of the page of other website, to handle to the corresponding data of described other web site requests, its processing procedure and said process are similar.
Consult shown in Figure 2ly, described website 101 comprises: receiving system 200, deriving means 201, processing unit 202, dispensing device 203; Described receiving system 200 is used to receive accessing page request; Described deriving means 201 is used for obtaining corresponding data when accessed local page need be quoted the data of the page of other websites; Described processing unit 202, being used for the data of the page of described other website that will get access to and the data fusion of described local page is the data of a page; Described dispensing device 203 is used to send the data of a page after the fusion.Described website 101 can also comprise: storage device 204, be used to store described other website the page data and/or merge after the data of a page.
Described processing unit 201 can be a program module, also can be a server, can also be one group of server when complicated applications; Described receiving system 200, deriving means 201, processing unit 202, dispensing device 203 can be arranged in the different servers, also can be arranged in the same server.
Described storage device 204 can be arranged in the internal memory, is not very high small lot data for importance, and processing can improve the efficient of access like this, and makes system configuration simple relatively; Described storage device 204 also can be set to a database or an independent memory device, and for important mass data, processing can guarantee safety of data like this, also can carry out deep processing to data and handle.
Consulting shown in Figure 3ly, is example with system configuration shown in Figure 1, and the handling process of exchanges data is as follows between the website:
Step 300, client device are initiated accessing page request to website A, the data of the page a of request website A.
When step 301, website A need among the page a to determine to quote the data of page b of website B, initiate request of data to website B.
The data that step 302, website B search needed page b according to the request of website A, and the data of the page b that finds are sent to website A.
Step 303, website A to the data of the page b of website B analyze, processing such as modification, and the data of the data of the page b after will handling and page a merge, and generate the data of a new page c.
Step 304, website A preserve the data of described page c in this locality.
Step 305, website A read the data of the local page c that preserves, and the data of this page c are sent to client device.
In the flow process shown in Figure 3, website A also can preserve the data of page b in this locality; Can also comprise the data of the page of a plurality of other websites in the data of described page b or page c, or comprise the data of a plurality of pages of other website, its handling process and above-mentioned flow process are similar.When website A reads the data of local page b that preserves or page c,, then need the processing of repeating step 301 to step 304 if find that these data are out of date.
From the foregoing description as can be known, in the present invention, the website that receives accessing page request obtains accessed local page, and behind the page of determining other website that described local page need be quoted, obtain the data of the page of described other website, to the data that get access to analyze, revise, processing such as fusion; When the data of the page of the data of the page that can't obtain described other website or described other website of obtaining are made mistakes, described website can use pre-prepd data to substitute the data of the page of described other website, has guaranteed the correctness of the data of the page that sends to client device; Further, because the processing to the data of the page of described other website is finished by described website fully, therefore described local page need not to specify the size of the page of described other website, but stretch automatically according to the big or small of the page of described other website, also reduced cost and the difficulty of cooperating between the website simultaneously; Further, because the Iframe technology is not used in the fusion of the data of the page of described other website and the data of described local page, the form of the data of a page that is fused into all is HTML, and therefore different browsers is good to the data compatibility of a described page; In addition, because the data of the page of described other website and/or the data of a described page are preserved in described website, therefore can when makeing mistakes, the data of the page of described other website still can return normal data to client device, simultaneously, cross-domain problem of makeing mistakes has also been avoided in this processing, has alleviated the pressure of described other website.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.

Claims (15)

1. the method for exchanges data between the website is characterized in that the method comprising the steps of:
The website that receives accessing page request determines that accessed local page need quote the page of other website;
Described website obtains the data of the page of described other website, and is the data of a page with the data fusion of itself and described local page;
Described website sends to the requestor with the data of a described page.
2. the method for claim 1, it is characterized in that, after described website determines that accessed local page need be quoted the page of other website, judge earlier the data of the page that the local data that whether store by described local page become with the data fusion of the page of described other website, if, then directly read the data of this page, otherwise, obtain the data of corresponding page from described other websites and it is become the data of a page with the data fusion of described local page, and the data of further preserving this page in this locality.
3. the method for claim 1, it is characterized in that, if described website can't obtain described other website the page data or when the data of the page that obtains described other website, make mistakes, then described website uses pre-prepd data to replace the data of the page of described other website, and is that the data of a page send to the requestor with the data fusion of itself and described local page.
4. the method for claim 1 is characterized in that, when described website obtains the data of the page of described other website, earlier judge whether this locality stores these data, if then directly read these data, otherwise, obtain these data and be kept at this locality from described other websites.
5. method as claimed in claim 4 is characterized in that, described website further is provided with useful life after the data of the page of described other website of preservation, this locality; And when determining that according to described useful life the described data that read are expired, obtain corresponding data and preservation again from described other website.
6. as each described method of claim 1 to 5, it is characterized in that described website comprises the fusion of data carries out format analysis and/or modification to the data of the page of described other website.
7. method as claimed in claim 6 is characterized in that, when described website determines that the data format of the page of described other website is non-HTML html format, resolves and extract the data of this form earlier.
8. the method for claim 1 is characterized in that, described local page is quoted the page of a plurality of described other websites, and perhaps described local page is quoted a plurality of pages of described other websites.
9. a web station system is characterized in that, comprising:
Receiving system is used to receive accessing page request;
Deriving means is used for determining that accessed local page obtains corresponding data in the time of need quoting the data of the page of other websites;
Processing unit, being used for the data of the page of described other website that will obtain and the data fusion of described local page is the data of a page;
Dispensing device is used to send the data of a described page.
10. system as claimed in claim 9 is characterized in that, described system also comprises:
Storage device is used to store the data of the page of described other website and/or the data of a described page.
11. system as claimed in claim 9 is characterized in that, described processing unit is the functional module that is arranged in the server, or is server independently.
12. system as claimed in claim 9 is characterized in that, described receiving system, deriving means, processing unit, dispensing device are arranged in the different servers; Perhaps, described receiving system, deriving means, processing unit, dispensing device are arranged in the same server.
13. a data exchange system is characterized in that, comprising:
Client device is used to initiate accessing page request, and the data that receive the accessed page;
A plurality of websites, be used for receiving the also definite accessed local page of accessing page request and need quote the page of other website a website, and the data of obtaining the page of described other website, and be that the data of a page send to the requestor with the data fusion of itself and described local page, described request person is client device or website.
14. system as claimed in claim 13 is characterized in that, described website comprises:
Receiving system is used to receive accessing page request;
Deriving means is used for determining that accessed local page obtains corresponding data in the time of need quoting the data of the page of other websites;
Processing unit, being used for the data of the page of described other website that will obtain and the data fusion of described local page is the data of a page;
Dispensing device is used to send the data of a described page.
15. system as claimed in claim 14 is characterized in that, described website also comprises:
Storage device is used to store the data of the page of described other website and/or the data of a described page.
CNA2006101270450A 2006-09-21 2006-09-21 A data exchange method and system for websites Pending CN101150559A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2006101270450A CN101150559A (en) 2006-09-21 2006-09-21 A data exchange method and system for websites

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2006101270450A CN101150559A (en) 2006-09-21 2006-09-21 A data exchange method and system for websites

Publications (1)

Publication Number Publication Date
CN101150559A true CN101150559A (en) 2008-03-26

Family

ID=39250901

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2006101270450A Pending CN101150559A (en) 2006-09-21 2006-09-21 A data exchange method and system for websites

Country Status (1)

Country Link
CN (1) CN101150559A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101615179B (en) * 2008-06-25 2011-08-17 国际商业机器公司 Method and system of cross-domain alternation for Web application
CN102307220A (en) * 2011-03-18 2012-01-04 北京神州数码思特奇信息技术股份有限公司 Cross-domain webpage information interaction method
CN103023790A (en) * 2012-12-31 2013-04-03 北京京东世纪贸易有限公司 Method and system used for realizing cross-domain interactive access
CN101753598B (en) * 2008-12-16 2013-06-05 国际商业机器公司 Method for integrating a plurality of web applications and web application integrator
WO2016070748A1 (en) * 2014-11-04 2016-05-12 阿里巴巴集团控股有限公司 Method for realizing hybrid client interface and system thereof
CN106055709A (en) * 2016-06-30 2016-10-26 乐视控股(北京)有限公司 Multi-network-website content management system
CN107797837A (en) * 2017-08-30 2018-03-13 上海壹账通金融科技有限公司 Page display method, device, server and medium
CN111259381A (en) * 2020-02-04 2020-06-09 网易(杭州)网络有限公司 Page interaction method and device, computer readable medium and electronic equipment

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101615179B (en) * 2008-06-25 2011-08-17 国际商业机器公司 Method and system of cross-domain alternation for Web application
CN101753598B (en) * 2008-12-16 2013-06-05 国际商业机器公司 Method for integrating a plurality of web applications and web application integrator
CN102307220A (en) * 2011-03-18 2012-01-04 北京神州数码思特奇信息技术股份有限公司 Cross-domain webpage information interaction method
CN102307220B (en) * 2011-03-18 2014-04-02 北京思特奇信息技术股份有限公司 Cross-domain webpage information interaction method
CN103023790A (en) * 2012-12-31 2013-04-03 北京京东世纪贸易有限公司 Method and system used for realizing cross-domain interactive access
WO2016070748A1 (en) * 2014-11-04 2016-05-12 阿里巴巴集团控股有限公司 Method for realizing hybrid client interface and system thereof
CN106055709A (en) * 2016-06-30 2016-10-26 乐视控股(北京)有限公司 Multi-network-website content management system
CN107797837A (en) * 2017-08-30 2018-03-13 上海壹账通金融科技有限公司 Page display method, device, server and medium
CN107797837B (en) * 2017-08-30 2020-11-03 深圳壹账通智能科技有限公司 Page display method, device, server and medium
CN111259381A (en) * 2020-02-04 2020-06-09 网易(杭州)网络有限公司 Page interaction method and device, computer readable medium and electronic equipment

Similar Documents

Publication Publication Date Title
CN101150559A (en) A data exchange method and system for websites
US9529780B2 (en) Displaying content on a mobile device
US8433999B2 (en) Method and apparatus for retrieving and editing dynamically generated content for editable web pages
US8468145B2 (en) Indexing of URLs with fragments
US9454535B2 (en) Topical mapping
CN106294379A (en) The loading method of a kind of page, device and system
CN104063401B (en) The method and apparatus that a kind of webpage pattern address merges
CN101997927A (en) Method and system for caching data of WEB platform
EP2399200A1 (en) Method and system of processing cookies across domains
CN106611032A (en) Webpage pre-loading method and device
CN103095823A (en) Object description method and object information interaction system in Internet of Things system
CN103577526B (en) It is a kind of to verify method, system and browser that whether the page is changed
CN103218286A (en) Method and system for detecting accessibility of webpage
CN101355565A (en) Method and server for providing page service for various browsers
JP2005346166A (en) Language discrimination device, translation device, translation server, language discriminating method, and translation processing method
CN103207874A (en) Updated webpage content prompting method and system
CN103744845A (en) Method and system for WEB platform data caching
CN111708962A (en) Rendering method, device, device and storage medium for skeleton screen
CN108595697A (en) Webpage integrated approach, apparatus and system
CN101770511A (en) Browse system for accelerating backspace operation of mobile communication equipment terminal and application method thereof
CN103347069A (en) Method and device for realizing network access
CN106156128B (en) Method and device for realizing multi-language and multi-domain name service of website
CN105786844A (en) Page data acquiring method and device
CN100550022C (en) Data access method in the embedded type web page structure between webpage and device
CN103246680A (en) Method and device for aggregating and displaying webpage contents in browser

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 1114484

Country of ref document: HK

C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20080326

REG Reference to a national code

Ref country code: HK

Ref legal event code: WD

Ref document number: 1114484

Country of ref document: HK