2
votes
0answers
55 views

Convert Canvas DataURL to image for posting to Facebook

I have a canvas that I am saving to a DataURL, and I could right click it and save it as an image to my files, but how do I convert it to an image either on the client-side or server-side(Rails) for ...
2
votes
0answers
220 views

How to customize server response with jquery file upload from json

I working on file upload feature on Ruby on Rails using this jQuery file upload, I used this example to accomplish the task. the problem here is that as appeared in the example the response in create ...
2
votes
0answers
89 views

UJS Code Organization and Initialization

My two-part question is something that seems very basic, but which I have not seen any discussion of in introductions, guides, or overviews to either UJS or jQuery. I have read through countless other ...
2
votes
0answers
99 views

How to tell jQtouch to use a different div for the current div?

I am using jQtouch in a rails application and I have a page that is used for multiple actions(using multiple divs to speed things up). I would like to be able to redirect to this page and based some ...
2
votes
0answers
280 views

Geocode + Autocomplete + Rails

I am reading RailsCast #102 on AutoCompelte, however this describes how to do stuff with a .json file, however if I'm using something like Geocode it doesn't have such a thing since it's calling ...
2
votes
0answers
349 views

Rails dynamic drop-down not pre-populated in edit form

I have a dynamic drop-down in a user form that contains cities based on the selected state. The form works perfectly when creating the record, but when editing the user, only the state is populated ...
2
votes
0answers
492 views

Overriding the JavaScript template used in a Rails remote form submission

I've got a Rails app that doesn't seem to be triggering the expectedly named .js.erb file, so I'd like to override the default behavior, but I'm not sure how. The details: It's a Rails 3 app that ...
2
votes
0answers
484 views

Multiple forms using Rails & jQuery & AJAX

I have multiple coupons on a page and I'm trying to get comments to work on each coupon. So for each coupon i have a comments form. Im using jQuery + Ajax to accomplish this. Here's what my code looks ...
1
vote
0answers
36 views

Wrong redirection after AJAX file upload

I'm having a problem with AJAX file uploads. I'm using the remotipart gem, inherited_resources for my controller and dragonfly for server-side file storage. I have an index view from a controller ...
1
vote
0answers
68 views

Why is AJAX being called twice?

Solved: The issue was because the button event was also the submit button, changing it to a type="button" solved the issue. Thanks for everyone's help. I'm making an AJAX call to the server... ...
1
vote
0answers
29 views

***undefined method `draggable' for #<#<Class:0x007f98c327fa70>:0x007f98c4c73cd8>***

I've followed the instructions on how to use query in my application: 1. I am using rails 3.2.8 2. I have installed the 'query-ui-rails' gem and included in my bundle. 3. I added the following to my ...
1
vote
0answers
41 views

Why might I not be getting jQuery global ajax events when using jquery-ujs and Rails?

Example: $('form').on('ajax:success', function() { /* fired */ }); $('form').on('ajaxSuccess', function() { /* not fired */ }); 'ajax:success' documented here : ...
1
vote
0answers
94 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
0answers
33 views

jquery-rails producing old jquery version

I am using rails 3.2.2, jquery-rails 2.0.3, with asset pipeline enabled. For some reason, require jquery is producing jQuery 1.7.2 in my application.js file. I would like to use the latest 1.9.1. I ...
1
vote
0answers
67 views

kaminari ajax pagination works locally, not on heroku production

i am trying to get ajax pagination to work with Kaminari in my production environment on Heroku. At present running the code locally in dev mode it all seems to work. i cant seem to find what would be ...

1 2 3 4 5 59
15 30 50 per page