最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Drag'n drop between two unrelated web applications - Stack Overflow

programmeradmin0浏览0评论

Assume you have two web applications running in two different tabs/windows in your browser. Is there a predefined interface in IE, Firefox or Google Chrome to pass data between the two windows? If so it should be possible to implement drag'n drop, right? Because I don't think this is possible I wonder if the same could be achieved with Flash.

This sums up to the following question: Is it possible to implement cross-application drag'n drop behaviour with Javascript/DOM or Flash?

Assume you have two web applications running in two different tabs/windows in your browser. Is there a predefined interface in IE, Firefox or Google Chrome to pass data between the two windows? If so it should be possible to implement drag'n drop, right? Because I don't think this is possible I wonder if the same could be achieved with Flash.

This sums up to the following question: Is it possible to implement cross-application drag'n drop behaviour with Javascript/DOM or Flash?

Share Improve this question edited Apr 28, 2009 at 19:47 prinzdezibel asked Apr 28, 2009 at 19:30 prinzdezibelprinzdezibel 11.2k18 gold badges58 silver badges64 bronze badges
Add a ment  | 

4 Answers 4

Reset to default 9

I think you'll find an answer in the Chrome Experiment's Browser Ball.

In short, there is no good way to do this - but you'll see it's definitely possible.

Edit: I suppose I should make clear: you're very limited in what you can actually pass stuff between, and the browsers which are supported. What it seems like you're actually trying to acplish may be impossible, but the general concept of passing between multiple windows is "possible".

No Javascript can not interact with another window. This is a restriction of the browser and Javascript's restriction to interact outside of its domain.

And as far as I know, this is not possible with Flash either.

No, not if they are unrelated (different domain), which is what your title suggests.

It could be done if you can relay drag/drop information to a server (Not a simple task).

发布评论

评论列表(0)

  1. 暂无评论