similar to: firebug jQuery undefined message in rails app

Displaying 20 results from an estimated 2000 matches similar to: "firebug jQuery undefined message in rails app"

2010 Jun 21
4
javascript tabs not working in rails app
This is in application.html.erb: <script type="text/javascript" src="../javascripts/application.js"></script> <script type="text/javascript" src="../javascripts/jquery-1.4.2.js"></script> <div id="content"> <%= yield :tabContent %> </div>
2011 Oct 21
20
How to transform my html form into a rails 3 form
Hi, I have the following code working in a rails 3 view, but it is unfortunately not pure rails code! <% @filter1 = "tr.show1,tr.show2" %> <% @filter2 = "tr.show1" %> <% @filter3 = "tr.show2" %> <form> <p> <input type="checkbox" value=<%=@filter1%> onclick="$ (this).is('':checked'')
2007 Nov 15
1
jRails plugin: jQuery on Rails
Hey All, I just built a new plugin that replaces most of the default functionality for Prototype/scriptaculous with jQuery. I still have some work to do completing the rest of the visual effects and writing some plugins for autocomplete and in-place editing but this release is pretty solid. It includes support for basic AJAX calls (form_to_remote, link_to_remote), RJS, observers (observe_form,
2009 Jun 23
7
can't get remote_function working on rails 2.3.2
I''ve tried moving the code around in different ways, but so far I haven''t gotten remote_function to work for me (I''m using Rails 2.3.2 on my Mac). I want to make an AJAX call when I double-click a word on my page, and the Javascript function is being called when the ondblclick event is fired, but nothing happens when it gets to my the "new Ajax.Request" part
2008 Jul 17
2
Problem with link_to_remote, RJS and jRails
Hi, everyone, I''m trying to update the content of a div using link_to_remote and RJS template. Everything works fine if I use the default Prototype/Scriptaculous libraries, but I want to use jRails ''coz other parts of my application use a lot of jQuery. Here are the steps I done: 1. inside StatesController.rb I defined the following action: def update_view # do nothing just
2011 May 25
1
trouble using jQuery in Rails 3.0.7
I''ve tried to install JQuery a couple of times now, and I''ve followed the steps for Rails UJS mentioned here: https://github.com/rails/jquery-ujs The last time I went ahead and added jQuery UI as well: $ rails generate jquery:install --ui remove public/javascripts/prototype.js remove public/javascripts/effects.js remove public/javascripts/dragdrop.js
2011 Dec 19
2
Jquery Modal Dialog with Jquery DatePicker field strange behavior
Hi people. I need your help here, please. I have a rails 3.0.9 app, and I''m using Ajax to save some records to the database. To achieve this, I use a jquery modal form, but one of the fields is a datepicker, and if I click on it to display the calendar it doesn''t work. The thing is, I press submit without fill all the fields, so, my custom validations were shown, telling me
2011 Jul 27
20
Rails, jquery and Ajax
How do I make an ajax call and then update a div with a partial? I''ve tried this but it''s not working. Comment is created but the partial is not loaded. //view <a href="#" id="testlink">Testlink</a> <div id="commentlist"> </div> //controller def new @comment = Comment.new @comment.save
2011 May 25
0
Issues implementing jquery-form plugin for displaying image via an ajax call in my rails poc
Hello all, I am trying to implement a POC wherein I can post a message + image and get the same working via AJAX to display them both for each new entry without the page reloading. I am using a config of Ruby 1.8.7 and Rails 2.0.2 for project specific purposes.. I am also using a pretty old paperclip commit from github for this....I had to suit my proj config requirements mentioned previously..
2010 Jun 02
1
Ajax with JQuery
I have used Ajax link and live validation in index.rhtml Ajax link requires JavaScript "prototype" and live validation requires "jquery". i got "element.dispatchEvent is not a function" on the firebug console when i used "prototype" and "jquery" in same page index.rhtml after i removed javascript "prototype" library, i got "Ajax is
2011 Jul 07
2
Rails 3.1 + jQuery + jQuery UI = data is null
Trying to get jQuery UI to work with my rails 3.1 setup, but i keep getting errors that i cant see posted anywhere, this is driving my insane so please have a look => [application.js] // This is a manifest file that''ll be compiled into including all the files listed below. // Add new JavaScript/Coffee code in separate files in this directory and they''ll automatically // be
2012 Jan 01
2
Calling a function inside of (function($) {})(jQuery);
I have a .js file with the following function function set_priceKind_global(priceKind) { switch(priceKind) { case "paid": case "free": break; default: var throw_msg = "Internal confusion in set_priceKind_global" alert(throw_msg) throw throw_msg } It is triggered by %input{''type'' => ''button'',
2011 Nov 03
0
multiple render text in jquery rails
Hi, For one action of user based on condition i want to render different texts. So how do i achieve it through jquery? For example: A simple posting message application: On post button i have a post method which has security checks and other server side checks like : =========================== if message_text.nil? or message_text.empty? or message_text.length > 140
2009 Apr 12
5
Problems with jRails and ajax helpers
I working on a Rails 2.2.2 app that uses jRails and any time I attempt to use a Rails ajax helper, I get the following error: index 116545 out of string with this stack trace: vendor/plugins/jrails/lib/jrails.rb:197:in `[]='' vendor/plugins/jrails/lib/jrails.rb:197:in `build_callbacks'' vendor/plugins/jrails/lib/jrails.rb:119:in `options_for_ajax''
2011 Jul 28
1
Help install jquery ui
I tryed rails generate jquery:install --ui but my draggable method still does nothing. Can anyone help me ? What is the proper way to install jquery ui (specially for dragging elements)? Thank you, Rodrigo -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to
2011 Sep 10
4
Finding HTML attributes with jQuery in Rails 3.1
I''m having trouble wrapping my head around the proper syntax to have jQuery (in an .js file) grab an HTML attribute and use the value of that attribute to load a partial. HTML fragment: <a href="/toggle" data-remote="true" section="training"> jQuery string (now setting a static partial, I need this to be dynamic)
2009 Dec 01
12
Rails 2.3.5 - Cannot install plugin
I''m always get the message "Plugin not found: ["git://github.com/ aaronchi/jrails.git"]" when trying to install a rails plugin, even for SVN or GIT. After google search, some people suggest that replace "git://" with "http://" and add "/" at the end of the url. I tried and it still does not work. I used the ruby 1.9.1-p243 and rails
2011 Dec 05
9
jquery - word is not defined
Just starting out with a beginner book on jquery and the very first thing I am trying fails (has to be me) Rails 3.1 - other jquery things working including a poor example of drag & drop that is my ultimate target here but just simply trying to get every alternating row in a table to have a different css class So I''m using... app/assets/javascripts/people.js.coffee and put in...
2011 Jan 05
16
Nicedit (rich text editor)
Hello, I''m trying to use Nicedit to improve my text_areas in some views of my project. I have installed jquery: ruby script/plugin install git://github.com/aaronchi/jrails.git nicEdit plugin: ruby script/plugin install git://github.com/sergio-fry/Simple-nicEdit.git Add js in layout: <%= javascript_include_tag ''nicEdit'', ''nicEditInit'' %> Use it
2011 Sep 06
8
Ajax and rails 3 UJS (jquery)
Hi, guys, I''m in the midst of moving an app from rails 2.3.8 to rails 3.0.9. Sadly, rails 3 no longer has javascript generators and I''m now forced to do more javascript. For my project, I have selected jQuery as the javascript framework for my rails 3.0.9 app. What I have done to have my app''s deletion link (for each item) trigger an alert box when the deletion