Plugins

The plugins site is currently in development.

We've been looking to provide a higher-quality, spam-free experience at the plugins site for some time, and a major error on our part forced us to shut down the current site before we could put the new one in place. We are developing a new site, and you can follow along with its development on GitHub. For more information about this transition, including steps you can take as a plugin author to prepare, please read our post about what's going on.

cross-domain


jquery postmessage plugin

Modern browsers now support cross-window/cross-domain/cross-origin messaging
through window.postMessage.

postmessage is a simple wrapper for window.postMessage and the window message
event, for those who wish to use this feature in a more jQuery-like way.

postmessage falls back to window location hash polling for browsers that do
not support window.postMessage (i.e., IE7).

postmessage allows messaging back and forth using JSON where
window.postMessage only allows simple string-based messages.

postmessage also allows for complete request/response roundtrips using
success/error callbacks modeled after jQuery.ajax.

postmessage is tested on Safari 4, WebKit (Nightlies), Chrome 4, Firefox 3,
IE8, IE7 and Opera 10.10.

API

$.pm(options)

$.pm.bind(type, fn, [origin], [hash])

$.pm.unbind([type], [fn])


jQuery postMessage: cross-domain scripting goodness

jQuery postMessage enables simple and easy window.postMessage communication in browsers that support it (FF3, Safari 4, IE8), while falling back to a document.location.hash communication method for all other browsers (IE6, IE7, Opera).

flXHR Proxy

flXHR is a flash+javascript solution for cross-domain Ajax communication. It implements an identical API to the native XHR object, which allows you to drop in flXHR into an existing page without any further code changes. This makes it particularly useful with Javascript frameworks like jQuery.

Since flXHR is emulating full compliant XHR, you will be able to make cross-domain calls for any kind of content, including HTML, text, binary, XML, JSON/P. You are not restricted to JSONP as you are with just core jQuery.

Cross-Domain Communication with IFrames

This is a jquery plugin to allow cross-domain communication with iframe. no location hash kludge, so no url pollution and no latency

windowName transport

A common problem for every widget developer is getting data from the page to the server. The main obstacle is the cross-domain support or the lack there of. This is not as much as a problem when you're sending small amounts of the data - you can load scripts from other domains sending the data through the GET request. A completely different story is the sending of lots of data, where you would normally need a POST request. Until now there were just a few possible solutions - use a Flash cross-domain bridge and build your own browser extension being the most prominent.

Now on you can easily use a new technique, first presented by Kris Zyp who wrote a dojo implementation for it. I was hoping that somebody would port this to other libraries but since nobody did I decided to do it myself. And a week later you can download the jQuery plugin.