Tagged Questions
0
votes
0answers
18 views
How to refresh gmap4rails map, once a record is saved?
I will try to explain this as good as I can, so anyone can uderstand me, I would like to know How to refresh my map when a new location or record is saved, I've Implemented ajax and jquery to save a ...
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 ...
1
vote
1answer
2k views
save the drag and drop the position in rails
I want to drag and drop the list in that time the position will save in database.......if i refresh that page the position will not be change......
in below i add the for that concept but the code in ...
0
votes
1answer
13 views
Sending extra data through ajax using Rails 3 :remote and jquery
I want to send extra data using link_to with remote: true
It seems to me there are a fair number of tutorials providing guidance for using jQuery in Rails 3. Unfortunately, the majority seem to be ...
5
votes
1answer
171 views
javascript function not working in jquery-ajax rails validation error displays
I have a Jquery UI Datepicker function globally to use the calendar in all the pages.
I created a seperate javascript page like the following:
var showDatePickers = function() {
...
0
votes
0answers
36 views
Rails AJAX form submits as JSON instead of JS
The following form:
<%= form_for @bid, remote:true do |f| %>
<%= f.label :amount, 'What's your bid??' %>
<%= f.text_field :amount %>
<br>
<%= f.submit ...
1
vote
2answers
77 views
Rails 3.2.1 simple JQuery ajax example doesn't work
I'm just trying to learn a bit of jQuery with Rails at the moment. I'm following the example here:
Ideas on simple 'Hello World' Rails-Ajax Example?
My view looks like this:
...
1
vote
1answer
15 views
Sending AJAX Post Jquery in rails application
With simple controller:
def new
@product = Product.new
respond_to do |format|
format.html #new.html.erb
format.json { render json: @product}
end
end
def create
...
0
votes
1answer
28 views
rails js.erb does not get rendered
I have the following code in edit.html.erb
<%= f.select(:newpages, @pages, { :include_blank => 'No newpage' }, :id => 'function', :multiple => true, :size => '7', :selected => ...
0
votes
0answers
15 views
Jsonp treats json data as javascript how to solve this issue?
I have a problem of cross domain. Here I am using Jsonp in Ajax call and I got the data successfully but I got the following error,
Uncaught SyntaxError: Unexpected token :
Here is my response,
...
5
votes
2answers
284 views
How to trigger download with Rails send_data from AJAX post
I'm trying to use send_data to return a PNG image as the response for a ajax post request. How do I get the browser to trigger a download on the success callback?
Details
I'm generating a large ...
0
votes
0answers
32 views
My page needs to be refreshed before database changes (adds/deletions) are shown?
I have a function called generatePlaylist() which looks like the following:
function generatePlaylist(){
var list = <%= raw (Track.pluck(:video_id)).to_json %>
player.loadPlaylist(list)
...
0
votes
1answer
3k views
How to make Ajax call to page.replace_html in rails3
I have my application recently transferred to rails3.
I have an issue in Ajax call.
In my 'view' page,i used link_to tag like this :--
'<%= link_to "#{@album_name.album_name}", { :controller ...
0
votes
2answers
20 views
Correct way to use Ajax with rails
I am trying to add ajax to a voting system but having difficulty targeting individual elements with jQuery. This is what i have so far:
Vote Link in index action
<%= link_to ...
0
votes
1answer
30 views
Why does adding a jquery animate method break all the AJAX on the page?
I've got an online store app with the cart in a column on the side, in rails. I just successfully added some AJAX which makes just the cart column reload whenever a user clicks "add item to cart". I'm ...