Friday, January 2, 2009

Using longurlplease with flXHR

I've been improving the longurlplease javascript library to work seemlessly with different remoting techniques. The one js library supports jQuery, Adobe Air AJAX and flXHR so far.

flXHR provides an alternative approach to making cross domain requests from your browser. 
Using flXHR with longurlplease is easy:

  1. Include the javascript file for longurlplease.

    <script type="text/javascript" src="http://www.longurlplease.com/js/longurlplease.js"></script>

  2. Include flXhr javascript file (and have the various other flxhr files available as per documentation)

  3. Include this json parser

  4. Call longurlplease.lengthen({transport:'flxhr'}) to lengthen all short urls in your document.


See docs for more information and this demo of it in action .


Thanks to @getify for helping me get the crossdomain.xml policy file sorted.


Get in touch if you've any other remoting approaches that you'd like integrated into longurlplease.
blog comments powered by Disqus