Posted By

bcmoney on 12/10/10


Tagged

http css ajax proxy cssHttpRequest


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

AllKnightAccess
kubaitis
wirenaught


proxy.css


 / Published in: CSS
 

URL: http://bcmoney-mobiletv.com/blog/2009/05/01/the-server-side-proxy/

Using CSSHttpRequest, a CSS approach to cross-domain AJAX using CSS: http://nb.io/hacks/csshttprequest

(requires use of "csshttprequest.js" + one of the "csshttprequest" server-side scripts)

  1. #c0 { background: url(data:,Hello%20World!); }
  2.  
  3. #c1 { background: url(data:,Hello%20World!); }
  4.  
  5. #c2{background:url(data:,22%3A%20%22http%3A//www.flickr.com/photos/morganya/5230248505/%22%2C%0A%09%09%09%22media%22%3A%20%7B%22m%22%3A%22http%3A//farm6.static.flickr.com/5087/5230248505_79e1a4b028_m.jpg%22%7D%2C%0A%09%09%09%22date_taken%22%3A%20%222010-11-30T18%3A40%3A53-08%3A00%22%2C%0A%09%09%09%22description%22%3A%20%22%20%3Cp%3E%3Ca%20href%3D%5C%22http%3A//www.flickr.com/people/morganya/%5C%22%3Emorganya%3C%5C/a%3E%20posted%20a%20photo%3A%3C%5C/p%3E%20%3Cp%3E%3Ca%20href%3D%5C%22http%3A//www.flickr.com/photos/morganya/5230248505/%5C%22%20title%3D%5C%22president%20of%20Uruguay%21%5C%22%3E%3Cimg%20src%3D%5C%22http%3A//farm6.static.flickr.com/5087/5230248505_79e1a4b028_m.jpg%5C%22%20width%3D%5C%22240%5C%22%20height%3D%5C%22180%5C%22%20alt%3D%5C%22president%20of%20Uruguay%21%5C%22%20/%3E%3C%5C/a%3E%3C%5C/p%3E%20%22%2C%0A%09%09%09%22published%22%3A%20%222010-12-04T04%3A51%3A44Z%22%2C%0A%09%09%09%22author%22%3A%20%22nobody%40flickr.com%20%28morganya%29%22%2C%0A%09%09%09%22author_id%22%3A%20%2244171561%40N00%22%2C%0A%09%09%09%22tags%22%3A%20%22uruguay%20xo%20montevideo%20olpc%20planceibal%20ciudadan%C3%ADadigital%22%0A%09%20%20%20%7D%2C%0A%09%20%20%20%7B%0A%09%09%09%22title%22%3A%20%22president%20of%20Uruguay%21%22%2C%0A%09%09%09%22link%22%3A%20%22http%3A//www.flickr.com/photos/morganya/5230836760/%22%2C%0A%09%09%09%22media%22%3A%20%7B%22m%22%3A%22http%3A//farm6.static.flickr.com/5129/5230836760_96b77f84bb_m.jpg%22%7D%2C%0A%09%09%09%22date_taken%22%3A%20%222010-11-30T18%3A39%3A16-08%3A00%22%2C%0A%09%09%09%22description%22%3A%20%22%20%3Cp%3E%3Ca%20href%3D%5C%22http%3A//www.flickr.com/people/morganya/%5C%22%3Emorganya%3C%5C/a%3E%20posted%20a%20photo%3A%3C%5C/p%3E%20%3Cp%3E%3Ca%20href%3D%5C%22http%3A//www.flickr.com/photos/morganya/5230836760/%5C%22%20title%3D%5C%22president%20of%20Uruguay%21%5C%22%3E%3Cimg%20src%3D%5C%22http%3A//farm6.static.flickr.com/5129/5230836760_96b77f84bb_m.jpg%5C%22%20width%3D%5C%22240%5C%22%20height%3D%5C%22180%5C%22%20alt%3D%5C%22president%20of%20Uruguay%21%5C%22%);}
  6.  
  7. #c3{background:url(data:,20/%3E%3C%5C/a%3E%3C%5C/p%3E%20%22%2C%0A%09%09%09%22published%22%3A%20%222010-12-04T04%3A48%3A04Z%22%2C%0A%09%09%09%22author%22%3A%20%22nobody%40flickr.com%20%28morganya%29%22%2C%0A%09%09%09%22author_id%22%3A%20%2244171561%40N00%22%2C%0A%09%09%09%22tags%22%3A%20%22uruguay%20xo%20montevideo%20olpc%20planceibal%20ciudadan%C3%ADadigital%22%0A%09%20%20%20%7D%2C%0A%09%20%20%20%7B%0A%09%09%09%22title%22%3A%20%22XO%20bags%20for%20sale%20in%20Montevideo%22%2C%0A%09%09%09%22link%22%3A%20%22http%3A//www.flickr.com/photos/morganya/5230830784/%22%2C%0A%09%09%09%22media%22%3A%20%7B%22m%22%3A%22http%3A//farm6.static.flickr.com/5006/5230830784_04f4820dac_m.jpg%22%7D%2C%0A%09%09%09%22date_taken%22%3A%20%222010-11-29T19%3A56%3A09-08%3A00%22%2C%0A%09%09%09%22description%22%3A%20%22%20%3Cp%3E%3Ca%20href%3D%5C%22http%3A//www.flickr.com/people/morganya/%5C%22%3Emorganya%3C%5C/a%3E%20posted%20a%20photo%3A%3C%5C/p%3E%20%3Cp%3E%3Ca%20href%3D%5C%22http%3A//www.flickr.com/photos/morganya/5230830784/%5C%22%20title%3D%5C%22XO%20bags%20for%20sale%20in%20Montevideo%5C%22%3E%3Cimg%20src%3D%5C%22http%3A//farm6.static.flickr.com/5006/5230830784_04f4820dac_m.jpg%5C%22%20width%3D%5C%22240%5C%22%20height%3D%5C%22180%5C%22%20alt%3D%5C%22XO%20bags%20for%20sale%20in%20Montevideo%5C%22%20/%3E%3C%5C/a%3E%3C%5C/p%3E%20%22%2C%0A%09%09%09%22published%22%3A%20%222010-12-04T04%3A44%3A21Z%22%2C%0A%09%09%09%22author%22%3A%20%22nobody%40flickr.com%20%28morganya%29%22%2C%0A%09%09%09%22author_id%22%3A%20%2244171561%40N00%22%2C%0A%09%09%09%22tags%22%3A%20%22uruguay%20xo%20montevideo%20olpc%20planceibal%20ciudadan%C3%ADadigital%22%0A%09%20%20%20%7D%2C%0A%09%20%20%20%7B%0A%09%09%09%22title%22%3A%20%22office%20backyard%22%2C%0A%09%09%09%22link%22%3A%20%22http%3A//www.flickr.com/photos/morganya/5230218109/%22%2C%0A%09%09%09%22media%22%3A%20%7B%22m%22%3A%22http%3A//farm6.static.flickr.com/5163/5230218109_ca16a24bc3_m.jpg%22%7D%2C%0A%09%09%09%22date_taken%22%3A%20%222010-11-18T15%3A50%3A49-08%3A00%22%2C%0A%09%09%09%2);}

Report this snippet  

You need to login to post a comment.