0
votes
0answers
6 views

How do i fade out a table row with a Put Link_to in Rails 4?

I'm trying to do a row from the table fade out when i clicked on his link_to, but nothing happens at all. I also tried using coffescript. Could anybody help me plz? This is my controller ...
0
votes
1answer
22 views

Rails 3.2.1 - Getting Javascript variables/data to Rails Controller

I'm working on a Rails 3.2.1 app and would like to pass some Javascript variables to the Rails controller. Here are some more details: my js fiddle: http://jsfiddle.net/PauWy/475/ and what fiddle ...
1
vote
2answers
26 views

Is it possible to access js variables declared in your view from main.js?

I have some google analytics code in my application layout: <%=javascript do %> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ ...
0
votes
0answers
13 views

How to automatically update content in Jquery mobile and Rails, by pulling from server?

Hi I am working on a small Rails app and I am using JQuery Mobile to go along with it. The problem is that I can't seem to get the page to load dynamically without having to reload the whole page ...
0
votes
2answers
30 views

Rails 3.2.1 Javascript Asset Pipeline

I am working on a Rails 3.2.1 app, and encountering the following problem: The Javascript files I wrote in the app/assets/javascripts/ directory don't seem to be run. I have JS code in a file ...
1
vote
1answer
33 views

How do I get jQuery to re-render a partial from Ruby and then place it in a div?

I have a button which looks like this: <%= link_to "Join", "#", :id => "joinleave", :class => "buttonrefresh small join button expand", :'project-id' => @project.id %> I then have ...
0
votes
2answers
46 views

How to stop all active or pending ajax requests?

In my rails app, using jquery slider. In stop event of slider, there is ajax request. If user continuously sliding slider there are too many pending ajax requests and my system get hang. I have used: ...
0
votes
2answers
21 views

Best practice: multiple CoffeeScript files on a page

I'm developing a page on my rails app that displays analytics data. It has to make several calls to the Flurry Analytics API to retrieve different events. I'm displaying each piece of data in a div ...
0
votes
2answers
298 views

Rails - getting fields to appear in form dependent on select

I'm trying to have a field appear in a form for when the user selects an option from a dropdown - i.e. if they select "Other" from a dropdown, a field appears below the dropdown saying "Please ...
0
votes
0answers
16 views

Jquery Masonry loading over each other after Ajax div refresh

I am using ajax to refresh a div containing images. I use masonry to add layout initially. Then the ajax call returns a js that refreshes the div using the html() method. Now after it completes I am ...
1
vote
1answer
29 views

How to find row wise total and grand total for dynamic rows using nested form?

I have used nested form. This is my jquery code to find row wise total and grand total for invoice application. $("tr.sum_hours td").on("change", '.hr', function() { row = ...
0
votes
2answers
11 views

RailsCasts charts tutorial not displaying chart

I'm following a tutorial on charting from RailsCasts but I"m running into a bit of a problem adding my own data. The chart does not display when I try to add my data. I was able to get the chart to ...
1
vote
1answer
106 views

Ajax return not firing Callback

I'm trying to troubleshoot some code that I did not write and I'm having a lot difficulty trying to figure out why an Ajax return is not firing a Callback. Here is the code that attaches the behaviors ...
0
votes
0answers
29 views

Load jquery opendialog asynchronously with ruby on rails using haml

I'm working on a rails web app. In one of my views (at index.html.haml) I have a jquery opendialog where I list a few things. My problem is I don't want to load this when the index page is loaded but ...
1
vote
1answer
37 views

Continue Form Post with remote => true / Controller Action after Devise Login

I'm trying to do something very similar to this question... In summary, I have voting logic on a page, but to vote, I require you to sign in. The voting logic for a signed in user simply does a ...

1 2 3 4 5 249
15 30 50 per page