public
Description: CSSHttpRequest is cross-domain AJAX using CSS as a transport
Homepage: http://nb.io/hacks/csshttprequest/
Clone URL: git://github.com/nbio/csshttprequest.git
Click here to lend your support to: csshttprequest and make a donation at www.pledgie.com !
name age message
file .gitignore Mon Dec 22 19:51:39 -0800 2008 - wrote decoder - stop using literal test outpu... [Randy Reddig]
file CHANGES Fri Jan 23 01:30:06 -0800 2009 Rearrange repo to make it Rubygem friendly [cee-dub]
file COPYING Tue Jul 29 17:12:18 -0700 2008 initial build [ydnar]
file README.markdown Thu Jan 15 15:35:53 -0800 2009 Fixed a link in the README [cee-dub]
file Rakefile Fri Jan 23 01:30:06 -0800 2009 Rearrange repo to make it Rubygem friendly [cee-dub]
file VERSION.yml Fri Jan 23 08:47:44 -0800 2009 Version bump to 1.0.3 [cee-dub]
file __init__.py Mon Dec 22 17:53:30 -0800 2008 - renamed python impl - crappy (to be fixed) PH... [Randy Reddig]
file csshttprequest.gemspec Fri Jan 23 08:47:56 -0800 2009 Regenerated gemspec for version 1.0.3 [cee-dub]
file csshttprequest.js Mon Dec 22 14:40:51 -0800 2008 - ported SVN changes to git - new background-im... [Randy Reddig]
file csshttprequest.min.js Tue Dec 23 00:14:25 -0800 2008 - added minified JS [Randy Reddig]
file csshttprequest.php Tue Dec 23 09:54:18 -0800 2008 Add comment header to Ruby implementation, fix ... [cee-dub]
file csshttprequest.py Mon Dec 22 19:51:39 -0800 2008 - wrote decoder - stop using literal test outpu... [Randy Reddig]
directory examples/ Mon Dec 22 17:27:48 -0800 2008 - added test harness [Randy Reddig]
directory lib/ Fri Jan 23 08:47:08 -0800 2009 Remove debugging :D [cee-dub]
file test-all Fri Jan 23 01:30:06 -0800 2009 Rearrange repo to make it Rubygem friendly [cee-dub]
directory test/ Fri Jan 23 01:30:06 -0800 2009 Rearrange repo to make it Rubygem friendly [cee-dub]
README.markdown

CSSHttpRequest is cross-domain AJAX using CSS.

Please see the latest info at http://nb.io/hacks/csshttprequest/

Like JavaScript includes, this works because CSS is not subject to the same-origin policy that affects XMLHttpRequest. CSSHttpRequest functions similarly to JSONP, and is limited to making GET requests. Unlike JSONP, untrusted third-party JavaScript cannot execute in the context of the calling page.

The transport encodes the payload in the background-image property:

#c0 { background: url(data:,Hello%20World!); }

This version has been tested in cross-domain contexts in Safari 3.x, Firefox 3.x and Internet Explorer 6.