Reputation: 2454
I have an offine web page using jQuery. I would like it to read a file chosen by the user (or several files). I would like the file picker to be diplayed in another browser window, that would send the data back to the original window.
So:
What I manage to find is this: http://www.sfpeter.com/2008/03/communication-between-browser-windows-with-jquery-my-new-plugin/
However is seems rather oldish - do you know any newer and better solutions?
Upvotes: 1
Views: 1116
Reputation: 15934
Check the bottom comment in the link you posted (posted by the author of the article):
I’m not using it myself anymore but may do a new revision if there’s demand for it. Since I wrote this plugin, a new HTML5 feature has been developed that would actually make this even easier: the postMessage API (link here). However I don’t know how well this feature is supported in older browsers like IE7 or IE8. I would rewrite my plugin to use the postMessage API by default but fall back on my old approach if necessary.
The syntax of this API is very similar to mine. Depending on what kind of browser support you need, the postMessage API may be all you need.
Maybe that will help.
Upvotes: 1