开发者

Communicating between two web pages [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 11 years ago.

i am thinking of how to communicate between two webpages from different domains on same or different browser. I开发者_Go百科 just want to pass data between both pages.

Scenario is there are two static pages and they need to talk between each other without involvement of server or post requests.


Sending to another page:

<form method='post'>

Reading: Ajax, CURL.


One way to do it is use JSONP to send your messages. JSONP utilizes the JSON data format in a way that allows cross-domain communication.

Another way to do it is using a proxy on each domain, if you control both, and passing requests off to the other domain using standard Ajax.

Or you can look into this project which uses HTTP Access Control features if they exist and if not falls back to Flash.

Or you can use iframes as described here.


If you really mean 2 static pages from different domains on different browsers and even on different computers, and if you/your users only use IE, then ActiveX may be a choice. Try implement client/server code using JavaScript/VBScript upon winsock.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜