similar to: jquery not working in production

Displaying 20 results from an estimated 60000 matches similar to: "jquery not working in production"

2012 Nov 02
2
jquery error in production precompiled
In my rails project, for production precompile I do : rake assets:precompile RAILS_ENV=production But it not work for jquery. In my firegub console, I got the error “ReferenceError: JQuery is not defined “ at production.rb # Disable Rails''s static asset server (Apache or nginx will already do this) config.serve_static_assets = true # Compress JavaScripts and CSS
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
2010 Apr 09
2
dynamically linking to ajax.googleapis jquery
Hi I am using jquery and jqueryui in my application And in layout I use <%= javascript_include_tag "http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js"%> <%= javascript_include_tag "http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js" %> <%= stylesheet_link_tag
2011 Sep 14
5
rjs error TypeError: element.getElementsByTagName is not a function in rails 3+jquery
hi, i am using rails 3.0.10 i am trying with sample application for searching data from table and updating my search.html.erb file is <%= form_for (@employee) do |s|% <div id ="search_details"> <%= s.text_field :name%> <%= s.text_field :emp_id, :onfocus => ''sal(document.getElementById(''employee_name'').value);''%>
2012 May 10
1
getting started with jQuery rails 3.2
Hi all, I''m trying to work out how to get started using some jQuery in my rails app. rails -v = 3.2.2 ruby -v = 1.9.3-p194 I''m only sporadically a web-developer, and still quite inexperienced with jQuery especially, so I may be making an obvious mistake. Essentially, I''ve done very little after creating a new app, I''ve learnt that jQuery is included by
2012 Jan 11
4
Observe field with jquery in Rails 3.1
I tries to observe a change in a field with jquery in Rails 3.1 in order to be able to implement two cascading select boxes. A a first step I just try to observe a click in a div using jquery I have the following function in a .js file that is loadedin the head section (fieldset is the id of a div) and is displaying a view with the div fieldset $(document).ready(function() {
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 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
2011 Aug 29
1
jquery datepicker not working with nested forms rails 3
Hi people I have a problem with the Jquery "Datepicker". If I use datepicker in a simple-form, I have no problem... but I need to use it in a nested form that add fields dynamically, and everytime I add new fields I have a field that needs to use datepicker. I''ve reading the web, and many people have the same problem, but nobody get a solution for this issue Could you help
2010 Sep 04
0
CSRF protection not working with jquery ajax post request
Hallo, I want to test the csrf protection of my application but forgery protection is not working with jquery ajax request. I have used Unobtrusive Javascript with jquery I have removed the <%= csrf_meta_tag %> so that my application do not include authenticity token. In my view I have the following code $(function () { $(''#alert'').click(function () { $.ajax({
2010 Sep 09
0
Rails3: jquery-rails gem sets 'config.action_view.javascript_expansions' but cannot be overriden in 'config/application.rb'
Hello, I''ve created a new Rails3 app and I''m using jQuery instead of prototype. Gemfile: gem ''jquery-rails'' in my config/application.rb I want do the following: config/application.rb if Rails.env.production? config.action_view.javascript_expansions[:defaults] = %w(jquery.min rails application) else
2013 Jan 23
1
Need to change jquery version in my rails project
Hello everyone, Currently my rails 3.2.8 project loading jquery 1.9.0 In this jquery 1.9.0 live() method not working. How can i change loading jquery version? Please help. -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
2011 May 04
0
using jquery datepicker within a jquery dialog
so I have datepicker working just fine in a normal window but I cannot for the life of me get it to work within a dialog. I have some javascript that opens a dialog in my application.js file as well as the datepicker js is as follows: $(function() { $("#version_release_date").datepicker({dateFormat: ''yy-mm-dd''}); }); $(document).ready(function() {
2010 Jun 16
4
firebug jQuery undefined message in rails app
In rails app, I add the following line of code in application.js and I get jQuery is not defined in firebug console. In application.html.erb, I have the following: <script type="text/javascript" src="../javascripts/application.js"></script> <script type="text/javascript" src="../javascripts/jquery-1.4.2.js"></script> and I installed
2010 Sep 26
1
Rails 3 basic Get JSON with jQuery and output on the page flow question
Rails newbie, thanks for help with this hopefully basic JSON type question.... I have a model Books in my app, which belong_to users. What''d I''d like to learn how to do, is use jQuery to get a JSON object of the books that the user owns (current_user). And then use jQuery to list the results out on a div (id=targetdiv). Where I''m not certain, is this something Rails 3
2013 Feb 12
2
Rails parameters get lost because of jQuery link
(Original post: http://stackoverflow.com/questions/14569721/rails-parameters-get-lost-because-of-jquery-link, unfortunately no response) I saw this Railscast ( http://railscasts.com/episodes/240-search-sort-paginate-with-ajax) the other day and wanted to use the techniques for an application of mine. I have a page with elements on it and I want to sort them by values and select them by tags.
2011 Sep 25
0
ajax problem when switching from prototype to jquery
I have an old Rails application that I''d previously upgraded to Rails 3.1 with a lot of legacy features left on; now I want to switch to using jQuery instead of Prototype, and switch to using the asset pipeline. I''m trying to tackle the first of those; no idea if that''s wise, maybe I should start with the asset pipeline instead? To switch to jQuery, I added gem
2011 Sep 07
4
jquery and ajax query in rails 3
hi people I don''t know much about ajax - jquery. And right now I need to use some functionality with them. In a form (sales model) I have the following code: <div> <%= f.label :product_id, "Product" %> <%= f.collection_select( :product_id, Product.all, :id, :name, options={} ) %> </div> <div> <%= f.label :price,
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
2010 Nov 06
0
Rails and JQuery and Ajax/Json question
Hi, I am using JQuery in my rails app. I''ve taken the approach outlined in Ryan Bates''s Railscast on jquery to do the following: jQuery.ajaxSetup({ ''beforeSend'' : function(xhr) {xhr.setRequestHeader("Accept", "text/javascript")} }); to set my ajax call request Headers to text/javascript so that my respond to block for javascript is