I'm experimenting with Batman.js and I'd like to use jQuery with it for some standard Ajax and animation features.
I'm following the installation instructions located at http://batmanjs.org/download.html and at the bottom of the page there's a short description about how to use the jQuery adapter that I do not really understand how to setup.
I see some of the files listed at https://github.com/Shopify/batman/tree/master/lib but I'm not sure where they go and how to set that up. Any advice on using jQuery with Batman.js the right way is appreciated.
Thanks.
It's saying that it came with 2 (or more) files, of which are named:
and
If you want to use jQuery on your website along with batman, you need to add the adapter, which is included in batman.jquery.js, so then your <head> will look like:
Good stuff?
Here's the order of my scripts (stand alone app, not rails) est.js contains my app (which is conveniently named EST):
All pulled from batman lib and jquery from the jquery site.
Make sure your app run method is being executed AFTER these have loaded:
Also make sure your app is on the window class other wise the run method will explode:
est.js:
Batman depends on adapters to implement
Batman.Request
and to help with querying the DOM. To use Batman with jQuery, include both libraries and the Batman.jQuery adapter: