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.
精彩评论