I am trying to create a Facebook iFrame app. The app should first show an image and if the user likes the page, he will get access to some content.  I use RoR, therefore I can't use the Facebook PhP SDK.  Here is my iFrame HTML when the user ha...
Is there any way to use a Rails helper method, more specifically, a path helper method within a javascript asset file. This file foo.js.coffee.erb  $('#bar').val("<%= create_post_path %>")   I would love it if I could get from...
I am trying to get jquery-ui datepicker to work with highcharts so that a user can select a date an example being   A user selects 10th October  to 25th October   Once the user has selected the dates the highchart should redraw and show the hours for...
I'm making chaining selects with backbone.js by this article http://blog.shinetech.com/2011/07/25/cascading-select-boxes-with-backbone-js/, but got errors, when extending classes.  So, i have LocationsView class:  class Blog.Views.LocationsView e...
I have a form which submit a form via AJAX with :remote => true. Looking at the server log and FireBug, I get the response 200 OK and it returns JSON in the form of:  { "email": "[email protected]"}   then I have these two handlers:  $...
I am practicing this RoR tutorial project of Michael Hartl: http://ruby.railstutorial.org/ruby-on-rails-tutorial-book  I am using Ruby 1.9.2 and Rails 3.1 on Ubuntu 11.04 with Apache and MySQL.  I am here now: http://ruby.railstutorial.org/chapters/u...
I've just started trying to learn JS so apologies if this seems like a silly question, but I'm a bit lost. I've got a set of images I scrape off my Flickr page, I decided to add a lightbox on to try get some experience with JS, so I'v...
I have a bunch of Javascripts in a folder under /public/javascripts/test and I want to include them in my layout using javascript_include_tag in as few lines as possible.   Currently I have 25 lines of code using javascript_include_tag, is there any...
I have the following implementation of bigvideo.js functioning perfectly outside of my Rails project.  <script src="modernizr.js"></script> <script src="jquery-1.7.2.min.js"></script> <script src="jquery...
Why does this correctly launch the "confirm" dialog...  <%= link_to "Visit Other Site", "http://www.rubyonrails.org/", :confirm => "Are you sure?" %>   ...but not this one:  <%= submit_tag "Save", :...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.