-
Website
http://blog.astrails.com/ -
Original page
http://blog.astrails.com/2009/7/28/javascript-widgets-part-1-popup-popin -
Subscribe
All Comments -
Community
-
Top Commenters
-
Craigslist Proxy
1 comment · -1 points
-
westonm
1 comment · 1 points
-
hoornet
1 comment · 1 points
-
borisnadion
2 comments · 1 points
-
astrails
5 comments · 1 points
-
-
Popular Threads
Now, a minor correction:
"See, S3 doesn’t support HTTPS protocol."
That's not true. Amazon S3 *does* support HTTPS, in these formats:
https://s3.amazonaws.com/bucketname/path/to/object
https://bucketname.s3.amazonaws.com/path/to/object
(it doesn't work with your own domain and CNAME settings, of course.)
For example, both HTTP and HTTPS versions of your twitter avatar are accessible:
http://s3.amazonaws.com/twitter_production/prof...
https://s3.amazonaws.com/twitter_production/pro...
If you're on a same domain - no problem, just call window.top.foo(...) function from widget content, and define foo(...) in your target window content namespace
Most probably widget content and target content come from different domains, and before HTML5 becomes true (http://www.whatwg.org/specs/web-apps/current-wo...), you just cannot pass cross domain messages in a legal way.
But! You can pass cross-domain messages using flash local connections, or url fragment ids, check out this for more details: http://www.julienlecomte.net/blog/2007/11/31/