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=""></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.

1 comment:

  1. Did you know you can create short links with Shortest and make $$$$ from every visitor to your shortened links.