Questions tagged [jrails]

jRails is a small library which replaces the Prototype/script.aculo.us helper functions with the lighter jQuery library.

jRails is a drop-in jQuery replacement for Prototype/script.aculo.us on Rails. Using jRails, you can get all of the same default Rails helpers for javascript functionality using the lighter jQuery library.

29 questions
0
votes
1 answer

Jquery Not Sending Rails The Correct Format From Ajax

Alright, so: Rails 2.1, using jRails and jQuery 1.7. I have a form I want to submit with ajax; this is inside a fancybox (although I don't think that would make any difference): <% form_tag({ :action => :mail_by_user }, :id => "order_problem_form")…
d3vkit
  • 1,942
  • 1
  • 24
  • 36
0
votes
2 answers

In my comment app when i refresh the page comments disappears

My comment app works ,but the only problem is whenever i refresh the page the comments disappear.In the log it shows the body is inserted in the comments table(it is saved).What am i doing wrong here?Any help will be appreciated.Thank you in…
katie
  • 2,921
  • 8
  • 34
  • 51
0
votes
1 answer

page.replace_html for entire div not partial?

My sites navigation is within my <%= render 'layouts/header' %>. I want to use ajax so that when a user clicks on a navigation link, only the div id="content" refreshes. div id="content" is not a partial, is there a way to refresh the content of…
thedeepfield
  • 6,138
  • 25
  • 72
  • 107
0
votes
1 answer

Rails 4 - Generating multiple models (of the same type) from a text area

I have a text field that accepts any number of rows of input, with four columns. Valid input might be: 1 2 3 A 3 4 2 B 1 3 2 C etc.. Normally with ActiveBase, fields would be generated by whatever model that you have using the form_for method,…
Matt M
  • 149
  • 2
  • 4
  • 17
0
votes
1 answer

is there a fork of jRails that works with Rails 2.3 and jQuery 1.4?

We're rewriting a site using Rails, and the old site makes extensive use of jQuery v1.4 in its templates. We'd like the old scripts to keep working, but we'd also like to use rails' javascript helpers for our own new scripts. jRails sounds like…
Simon
  • 25,468
  • 44
  • 152
  • 266
0
votes
1 answer

jrails_auto_complete setup help

I have been struggling to get a simple autocomplete working with my Rails app using the jQuery UI 'autocomplete' I'm already using jRails, so I tried using the jrails_auto_complete I set it up like it says in the README, but I get the following…
JackCA
  • 4,885
  • 4
  • 27
  • 26
0
votes
1 answer

Ruby on Rails jQuery Visual Effect

I am working on a search function on RoR that basically just has a cool visual effect when a user clicks the search button. Here is the code in my view for search.rhtml Tutor <%= javascript_include_tag…
Alex
  • 530
  • 3
  • 12
  • 28
0
votes
2 answers

multiple visual effects on one event

I have a code that looks like this. <%= link_to_remote "View results", { :update=>"uxUpdateDiv" , :url=>{:controller=>"exam", :action=>"results"} , :loading=>visual_effect(:appear, "uxcLoader", :duration=> 0.1), :before…
ZX12R
  • 4,760
  • 8
  • 38
  • 53
0
votes
2 answers

Using JSON with jRails

I am currently trying to use AJAX in my application via jRails. I am trying to return a JSON object from my controller, and then parse it in my Javascript. I am using json2.js to do the parsing. Here is the code I currently have: function…
Zachary Wright
  • 23,480
  • 10
  • 42
  • 56
0
votes
2 answers

Rails ajax background requests

I have a remote_form which works 100% When a user clicks submit, it goes out grabs so data from the db or data scraped from another website, and updates the page seamlessly... The problem I'm having now, is that I'd like to do the same thing, but…
holden
  • 13,471
  • 22
  • 98
  • 160
0
votes
3 answers

Warning: already initialized constant JAVASCRIPT_DEFAULT_SOURCES

I switched from prototype library to jquery with jrails plugin. After that I've got the warning: jrails.rb:17: warning: already initialized constant JAVASCRIPT_DEFAULT_SOURCES jrails.rb looks like: ActionView::Helpers::PrototypeHelper::JQUERY_VAR =…
Voldy
  • 12,829
  • 8
  • 51
  • 67
0
votes
1 answer

jrails autocomplete selection problems with DIVs or anything else

I just starting using jRails and the jRails auto_complete helper http://github.com/evilmarty/jrails_auto_complete I was using the default auto_complete helper before using prototype and the drop in worked fine with jRails except for hovering over…
holden
  • 13,471
  • 22
  • 98
  • 160
0
votes
2 answers

jRails with autocomplete helpers

I've just started new branch of my project, where I try to use jRails. As far everything works awesome, except the autocomplete (especially text_field_with_auto_complete). What would be the best solution to make autocomplete working…
Jakub Arnold
  • 85,596
  • 89
  • 230
  • 327
-2
votes
1 answer

Ruby on Rails 3 - What is the better way to create styles, .ccs, layouts for a PC simple app.

I´m new in the developer ambient, but i need to give format, colors, styles, etc, to a web browser simple app for windows. have doubts in certain aspects like who is the better way? json, jquery, jrails, jquery-ujs. Any help in this point is…
1
2