0
votes
0answers
15 views

Which datastructure to send to d3.js script?

So I'm going to need to iterate through some info I'm pulling from my database and render it dynamically in a D3 chart. The two pieces of info I need are a answer's title and its number of votes. ...
0
votes
2answers
25 views

Render the Flash message through js.erb file

In my Rails app, I want to render the flash message from my controller method delete_option (questions_controller) to a partial _edit.html.erb inside questions folder itself. I have a js file ...
0
votes
0answers
24 views

Turbolinks not working with javascript

In my _form.html.erb <script> function typeCatch(){ $.post("<%= update_attribute(@user) %>") $(this).off("keypress",typeCatch)//remove handler } $(function() { ...
0
votes
2answers
36 views

Rails, AJAX form validation

I am new to jQuery, AJAX, and javascript in general, and I am trying to do some front end validation for a rails form that uses an ajax call to have the server run a query. It seems to work well, if I ...
0
votes
0answers
12 views

rails + javascript using google maps more marker and info window

i would show more info windows for all my markers in the map so i wrote this code but when click on one marker nothing happens!! how can I accomplish this? I do not know how to do. this is the code ...
0
votes
0answers
20 views

having trouble with youtube player api

A feature I am trying to implement in my rails app is the ability for users to control embedded youtube videos. I am using the youtube player api (guidelines here: ...
0
votes
1answer
27 views

How to use AJAX to toggle a boolean column in the database?

Currently trying to switch a poll's is_live attribute in the database through a button click in the view. Here's the form and click, which doesn't send the polls data in params. - ...
0
votes
0answers
16 views

How to make a “contact by email” / “inmail” for each user in Rails?

Its hard to explain, but in Gumtree, the listings site (www.gumtree.co.za) when you find something you like to buy from an user/advertiser you can send the user a email (inmail) via the site without ...
-1
votes
1answer
37 views

A bit lost with Rails 3 and javascript

I'm working on my first rails application using Rails 3.2.8 ruby 1.9.3p392 It's very entertaining and I've been learning a lot. I remain though very much confused on how to use javascript in my ...
0
votes
1answer
20 views

How to apply bootstrap modal call to an image tag?

I've got an image display page. I want to add a modal with a larger version of the image. I have created a button according to the bootstrap instructions that does the job: <button type="button" ...
1
vote
1answer
18 views

Rails + Javascript: How do I create a button that slides/changes a form from left to right?

For example, there's a form with 3 parts, A B and C. Initially the user can only see A. After filling out A and clicking a Next Button, the screen slides out A to the left and slides in B from the ...
1
vote
1answer
32 views

Filters being ignored in jquery-datatables-rails

I have used jquery-datatables-rails to present some information for my index and have added in filters following this. However the datatable appears to be ignoring the filters and they are not shown ...
0
votes
1answer
29 views

Filtering a table created from a database

I have a table of announcements being created from a database. I am trying to filter this table into categories based on the 'type' column of the database. The database table has a column which ...
0
votes
0answers
25 views

Javascript + Rails not working on Heroku

I have a page that works perfect on my dev environment but not on production server (Heroku) Here is the code jQuery(function($){ $('.bar2').mosaic({ animation : 'slide' //fade or slide ...
1
vote
0answers
24 views

How can I serialize Ruby's TZInfo data?

I have a Rails application that, like all Rails applications, uses Ruby's TZInfo library for time-zone information. This library uses Olson-style information, but it the implementation doesn't ...

1 2 3 4 5 236
15 30 50 per page