CN101610195A - The method of AJAX cross-domain synchronous transmission of high volume data - Google Patents
The method of AJAX cross-domain synchronous transmission of high volume data Download PDFInfo
- Publication number
- CN101610195A CN101610195A CNA2008100435169A CN200810043516A CN101610195A CN 101610195 A CN101610195 A CN 101610195A CN A2008100435169 A CNA2008100435169 A CN A2008100435169A CN 200810043516 A CN200810043516 A CN 200810043516A CN 101610195 A CN101610195 A CN 101610195A
- Authority
- CN
- China
- Prior art keywords
- iframe
- intermediate storage
- data
- shared memory
- father
- 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.)
- Granted
Links
Images
Abstract
The invention discloses the method for AJAX cross-domain synchronous transmission of high volume data, it mainly may further comprise the steps: (1) at first creates first example I of intermediate storage in the father Frame of website I; (2) construction data request in father Frame; (3) father Frame puts into shared memory with request of data by intermediate storage example I; (4) father Frame creates Iframe; (5) Iframe creates second example 2 of intermediate storage; (6) Iframe takes out request of data by example 2 from shared memory; (7) Iframe carries out communication by the server with website II, finishes the processing of data; (8) Iframe puts into shared memory with the response results of handling by intermediate storage example 2; (9) father Frame takes out response results by intermediate storage example 1 from shared memory; (10) father Frame resolution response result finishes Business Processing.The present invention can realize the cross-domain synchronous transmission of the AJAX of Large Volume Data.
Description
Technical field:
The present invention relates to the method that exchanges data is transmitted in a kind of webpage, particularly a kind of method based on AJAX technology cross-domain synchronous transmission of high volume data.
Background technology:
The core of AJAX is JavaScript object XmlHttpRequest.This object is introduced in Internet Explorer5 first, and it is a kind of technology of supporting asynchronous request.In brief, XmlHttpRequest makes you can use JavaScript to file a request and processing response to server, and does not block the user.
The operation principle of AJAX is equivalent to add an intermediate layer between user and server, and the user is operated and server response asynchronization.Like this client is married again in the work of some former server burdens, be beneficial to the idle disposal ability of client and handle, alleviate the burden of server and bandwidth, thereby reach the space of saving ISP and the purpose of bandwidth lease cost.
The cross-domain transmission data of AJAX are subjected to the security limitations of browser and can't carry out.Can't on the webpage level, do the data interaction transmission between two websites.Way commonly used at present is to transmit limited amount data (the general length that can not surpass HTTP Header also is 4K) by modes such as iframe+URL parameters.
Summary of the invention:
The present invention is directed to the existing problem of the cross-domain transmission data of AJAX in the above-mentioned prior art, and a kind of mode of utilizing intermediate storage is provided, realized the cross-domain synchronization transfer method of AJAX of Large Volume Data.
In order to achieve the above object, the method for AJAX cross-domain synchronous transmission of high volume data involved in the present invention, it mainly may further comprise the steps:
(1) at first in the webpage of website I, i.e. father Frame creates first example I of intermediate storage;
(2) construction data request among the father Frame in step (1);
(3) father Frame puts into shared memory with the request of data of structure in the step (2) by intermediate storage example I;
(4) father Frame creates Iframe, i.e. the webpage Frame of website II;
(5) Iframe creates second example 2 of intermediate storage;
(6) Iframe takes out the request of data that step (3) is put into by the intermediate storage example of creating in the step (5) 2 from shared memory;
(7) Iframe carries out communication by the server with website II, finishes the processing of data;
(8) Iframe puts into shared memory with the response results of handling by intermediate storage example 2;
(9) father Frame takes out response results by intermediate storage example 1 from shared memory;
(10) father Frame resolution response result finishes Business Processing.
Described intermediate storage adopts control, flash, browser plug-in, windows clipbook.
Iframe sends request by the XMLHTTP object to the Web server of website II in the described step (7), carries out communication, finishes the processing of data, and response results is sent among the Iframe.
According to the present invention that technique scheme obtains, the very easy cross-domain synchronous transmission of the AJAX that can realize Large Volume Data.
Description of drawings:
Further specify the present invention below in conjunction with the drawings and specific embodiments.
Fig. 1 is a workflow diagram of the present invention.
Embodiment:
For technological means, creation characteristic that the present invention is realized, reach purpose and effect is easy to understand, below in conjunction with concrete diagram, further set forth the present invention.
The cross-domain transmission data of AJAX are subjected to the security limitations of browser and can't carry out at present.Can't on the webpage level, do the data interaction transmission between two websites.Way commonly used at present is to transmit limited amount data (the general length that can not surpass HTTP Header also is 4K) by modes such as iframe+URL parameters.In order to address the above problem, the present invention proposes a kind of mode of utilizing intermediate storage, has realized the cross-domain synchronization transfer method of AJAX of Large Volume Data; As shown in Figure 1, it has provided and has adopted the control mode to realize the flow process of the cross-domain synchronous transmission of AJAX of Large Volume Data.
This transmission method mainly contains following 10 step compositions:
At first step (1) website A is in its webpage, i.e. father Frame creates first example of control;
Step (2) makes up request of data in father Frame;
Step (3) father Frame puts into shared memory with the request of data in the step (2) by control example 1;
Step (4) father Frame creates iframe again, i.e. the webpage Frame of website B;
Step (5) Iframe creates second example of control;
Step (6) Iframe takes out request of data by control example 2 from shared memory;
Step (7) Iframe sends the Web server of request of data to website B by the XMLHTTP object, finishes the processing of data, and the response results of handling well is sent to Iframe;
Step (8) Iframe puts into shared memory with the response results that processing obtains by control example 2;
Step (9) father Frame takes out response results by control example 1 from shared memory;
Step (10) father Frame resolution response result finishes Business Processing.
Can be good at realizing the cross-domain synchronous transmission of AJAX of Large Volume Data by above-mentioned steps.
More than show and described basic principle of the present invention and principal character and advantage of the present invention.The technical staff of the industry should understand; the present invention is not restricted to the described embodiments; that describes in the foregoing description and the specification just illustrates principle of the present invention; without departing from the spirit and scope of the present invention; the present invention also has various changes and modifications, and these changes and improvements all fall in the claimed scope of the invention.The claimed scope of the present invention is defined by appending claims and equivalent thereof.
Claims (3)
1, the method for AJAX cross-domain synchronous transmission of high volume data is characterized in that, this method mainly may further comprise the steps:
(1) at first in the webpage of website I, i.e. father Frame creates first example I of intermediate storage;
(2) construction data request among the father Frame in step (1);
(3) father Frame puts into shared memory with the request of data of structure in the step (2) by intermediate storage example I;
(4) father Frame creates Iframe, i.e. the webpage Frame of website II;
(5) Iframe creates second example 2 of intermediate storage;
(6) Iframe takes out the request of data that step (3) is put into by the intermediate storage example of creating in the step (5) 2 from shared memory;
(7) Iframe carries out communication by the server with website II, finishes the processing of data;
(8) Iframe puts into shared memory with the response results of handling by intermediate storage example 2;
(9) father Frame takes out response results by intermediate storage example 1 from shared memory;
(10) father Frame resolution response result finishes Business Processing.
2, the method for AJAX cross-domain synchronous transmission of high volume data according to claim 1 is characterized in that, described intermediate storage adopts control, flash, browser plug-in, windows clipbook.
3, the method for AJAX cross-domain synchronous transmission of high volume data according to claim 1, it is characterized in that, Iframe sends request by the XMLHTTP object to the Web server of website II in the described step (7), carry out communication, finish the processing of data, and response results is sent among the Iframe.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2008100435169A CN101610195B (en) | 2008-06-17 | 2008-06-17 | Method for AJAX cross-domain synchronous transmission of high volume data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2008100435169A CN101610195B (en) | 2008-06-17 | 2008-06-17 | Method for AJAX cross-domain synchronous transmission of high volume data |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101610195A true CN101610195A (en) | 2009-12-23 |
CN101610195B CN101610195B (en) | 2011-10-26 |
Family
ID=41483792
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2008100435169A Active CN101610195B (en) | 2008-06-17 | 2008-06-17 | Method for AJAX cross-domain synchronous transmission of high volume data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101610195B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
FR2967856A1 (en) * | 2010-11-23 | 2012-05-25 | France Telecom | COMMUNICATION BETWEEN TWO WEB APPLICATIONS |
CN103246667A (en) * | 2012-02-08 | 2013-08-14 | 腾讯科技(深圳)有限公司 | Method and device for cross-domain transfer of data |
CN104504096A (en) * | 2014-12-26 | 2015-04-08 | 北京奇虎科技有限公司 | Cross-web information transmitting method and web browsing device |
CN110083403A (en) * | 2019-04-19 | 2019-08-02 | 西安航天恒星科技实业(集团)有限公司 | In the method that interface plug-in unit is realized using iframe technology in web terminal interface |
CN112380027A (en) * | 2020-10-20 | 2021-02-19 | 福建天泉教育科技有限公司 | Method and terminal for realizing communication among different webpages under mobile terminal environment |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100437579C (en) * | 2005-12-20 | 2008-11-26 | 腾讯科技(深圳)有限公司 | Method for realizing AJAX webpage |
-
2008
- 2008-06-17 CN CN2008100435169A patent/CN101610195B/en active Active
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
FR2967856A1 (en) * | 2010-11-23 | 2012-05-25 | France Telecom | COMMUNICATION BETWEEN TWO WEB APPLICATIONS |
WO2012069748A1 (en) * | 2010-11-23 | 2012-05-31 | France Telecom | Communication between two web applications |
US9497260B2 (en) | 2010-11-23 | 2016-11-15 | Orange | Communication between two web applications |
CN103246667A (en) * | 2012-02-08 | 2013-08-14 | 腾讯科技(深圳)有限公司 | Method and device for cross-domain transfer of data |
CN104504096A (en) * | 2014-12-26 | 2015-04-08 | 北京奇虎科技有限公司 | Cross-web information transmitting method and web browsing device |
CN104504096B (en) * | 2014-12-26 | 2019-02-01 | 北京奇虎科技有限公司 | A kind of information transferring method and web page browsing device of inter-network page |
CN110083403A (en) * | 2019-04-19 | 2019-08-02 | 西安航天恒星科技实业(集团)有限公司 | In the method that interface plug-in unit is realized using iframe technology in web terminal interface |
CN112380027A (en) * | 2020-10-20 | 2021-02-19 | 福建天泉教育科技有限公司 | Method and terminal for realizing communication among different webpages under mobile terminal environment |
CN112380027B (en) * | 2020-10-20 | 2023-06-20 | 福建天泉教育科技有限公司 | Method and terminal for realizing communication among different webpages in mobile terminal environment |
Also Published As
Publication number | Publication date |
---|---|
CN101610195B (en) | 2011-10-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101610195B (en) | Method for AJAX cross-domain synchronous transmission of high volume data | |
CN101132420B (en) | Link overwriting method and device based on SSL VPN | |
CN101610194B (en) | Method for AJAX cross-domain asynchronous transmission of high volume data | |
CN101902485A (en) | Rewriting method of reversal Web agent link | |
CN103392179A (en) | Method and device for acquiring page resources, browser and mobile terminal | |
CN103177015B (en) | Web page image methods of exhibiting and system | |
CN101763425A (en) | Universal method for capturing webpage contents of any webpage | |
CN108629032A (en) | A kind of page fast response method and device based on delay load | |
CN103856543B (en) | A kind of method for processing video frequency, mobile terminal and server | |
CN102546165A (en) | Dynamic uniform resource locator (URL) generator, generation method, dynamic-URL-based authentication system and method | |
CN103401850A (en) | Message filtering method and device | |
CN102075455A (en) | Instant communication method | |
US20140006918A1 (en) | Method and system for web page rearrangement | |
CN105335485A (en) | Webpage loading method and device | |
CN105338013B (en) | A kind of network loading method and device | |
CN103365859B (en) | The method processing webpage mouse click event | |
CN104253835B (en) | User behavior data acquisition method and its system | |
CN102984179A (en) | Cloud-computing operating system oriented method for cross-domain access to Web services | |
CN102647463B (en) | The generation method of Web side navigation, wireless router terminal and system | |
CN105468636A (en) | Dynamic web page picture loading method, apparatus and system | |
CN101257501B (en) | Data leading-in method, system as well as Web server | |
CN103024055A (en) | Webpage compression method and system used for mobile terminal and cloud server | |
CN1571356A (en) | A method for implementing forced door | |
CN102624938A (en) | Method for proxy internet access using double broadband output ports of Telecom and Unicom | |
CN106777055A (en) | It is a kind of to realize the method and apparatus that website interface is rendered |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address | ||
CP03 | Change of name, title or address |
Address after: 200436 Room 601, Lane 299, Lane 299, JIANGCHANG West Road, Jingan District, Shanghai Patentee after: Geer software Limited by Share Ltd Address before: 200042 the 4 floor of block A, 288 Yuyao Road, Jingan District, Shanghai. Patentee before: Geer Software Co., Ltd., Shanghai |