Luca G. Soave
Luca G. Soave

Reputation: 12699

Slider.js on Rails 3.1

Is it possible to use Slider.js with Rails 3.1 ? Is there any integration example ?

UPDATE:

I can get Slider.js in my Rails 3.1 asset pipeline but how can I call it from HTML(haml) ?

I'd like to incorporate chart generated by controller#action page via google_visualr gem (which inject an IFRAME of google chart) ..., follow a chart sample which I'd like to put inside Slider.js carousel: http://gitwatcher.com/

the object I'd like to slide is actually

<div id="chart" style="position: relative;">
    <iframe height="540" frameborder="0" width="860" scrolling="no" name="Drawing_Frame_82178"
     id="Drawing_Frame_82178" marginheight="0" marginwidth="0">
    </iframe>
</div>

any idea ?

Upvotes: 0

Views: 818

Answers (1)

Sean Hill
Sean Hill

Reputation: 15056

Yes, you can use any Javascript library with Rails 3.1. Rails 3 is javascript agnostic. Even better is the fact that Rails 3 comes with jQuery, so Slider.js will not have to worry about any framework conflicts.

If you want specifics on how to use it, you need to give an idea of what you want to do with it.

Upvotes: 1

Related Questions