Displaying 20 results from an estimated 2000 matches similar to: "Error on ajax forms/links in jQuery UI tabs"
2011 May 21
0
Jquery UI with rails nested forms
I am very beginner to ruby on rails and web-development.
I created my app that similar to Ryan Bates, episode 197 and 198, but
with use JQuery UI datepicker. But I dont really know how to do that.
I know that the problem is with element ID always same whatever I
generated new dynamic partial. For example, when I choose a day, it
works fine. but when I add new nested model (or record), only the
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
2013 Jun 28
0
ruby on rails couldn't find file 'jquery.ui.all'
couldn''t find file ''jquery.ui.all'' which is a known issue, I added
*=require jquery.ui.all to application.css and //= require jquery.ui.all to
application.js but still get the error.
http://bpaste.net/show/1RqTDUte2XLBoj8fdTbf/
Sprockets::FileNotFound in Preorder#index
Showing
/var/www/localhost/htdocs/selfstarter/app/views/layouts/application.html.erb
where line
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 Oct 29
1
Refresh tab content on click in JQuery UI Tabs
HI Guy''s
TAB1 and TAB2 have some radio button, checkbox and dropdown menu. When
TAB1 is selected, I have to switch to TAB2 and then back to TAB1 to refresh
the loaded content.
How to make TAB1 refresh loaded content when click on its tab?
*code is something like that*
<ul class="tabs">
<li><a *href="#tab1"*>Gallery</a></li>
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
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
2011 Jan 15
3
respond_with javascript
My ajax stopped working when I switched to using respond_with. For my
Votes, I have the create action and the corresponding create.js.erb,
and respond_to :html, :js, :xml in the controller. Heres the log when
I try and create a vote:
Started POST "/stories/3-asdfasdf1111/votes" for 127.0.0.1 at Fri Jan
14 20:46:36 -0800 2011
Processing by VotesController#create as */*
Parameters:
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
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 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 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
2012 Nov 08
0
After order a HTML with JQuery UI Drag and Drop, save ordered table to DB using Rails
Hi guys
I''m doing a form with fields like name, email, phone, address, city,
state, etc.
Each field has a table in db.
I will use state field as an example:
In db I had table states with columns: position, name and acronym
In my View I had a HTML table with name and acronym, ordered by position
(when page loads). I can order my table using select box (order by name
or acronym) or
2012 Nov 18
0
How mix jquery based ui packages and ruby on rails
I am trying to use jqx ui that is based on jquqery I have following
questions
1. How do I generate the right id and name for the element without setting
the element name and id in the format model name [attribute] ? Example
<%= f.text_field :country_id %> generates
sets the element id and name to bank[country_id]
2.how do i set the form element attributes like action ? Do i just use
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
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
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
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.
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
2009 Aug 23
0
Best way of moving some jQuery from a view helper
I have a helper that uses some jQuery code that I would like to move out
of the helper method.
I am trying to move it to application.js but it will probably end up in
a different file.
I have two reasons for wanting to do this.
1) I want to keep all my jQuery code seperate to my HTML code
2) I want to change the append to an appendTo so I can add a highlight
effect, appendTo which is proving