0.2.8 • Published 12 years ago

crossmania v0.2.8

Weekly downloads
27
License
-
Repository
-
Last release
12 years ago

crossmania

talk crossdomain with your browser. it's available through npm:

npm install crossmania

usage is simple:

var mania = require('crossmania'); // call .string() afterwards to talk raw strings

mania.get('/', function(request, respond) {
	respond({hello:'world'}); // yes we talk json
});
mania.post('/', function(request, data, respond) {
	respond(data); // we echo
});
mania.listen(80);

mania works by relying on cors based ajax if available (chrome, safari, firefox).
for IE8+ and Opera it uses an iframe proxy frame and the postMessage api. for IE7- and all others it falls back to an jsonp wrapper.

In the browser use the crossmania available for client-side javascript

0.2.8

12 years ago

0.2.7

12 years ago

0.2.6

12 years ago

0.2.5

12 years ago

0.2.4

12 years ago

0.2.3

12 years ago

0.2.2

12 years ago

0.2.1

12 years ago

0.2.0

12 years ago