Displaying 20 results from an estimated 200 matches similar to: "JQuery autocomplete example"
2006 Apr 13
0
text_field_with_auto_complete and foreign characters
I need a form where the user must enter a city name. I would like to use
an autocomplete_field for the city name, so I have the following code in
my view:
<%= text_field_with_auto_complete ''entry'', ''city_name'', :size => 40 %>
and in my controller I have the method:
def auto_complete_for_entry_city_name
@cities = City.find(:all,
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() {
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 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
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,
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
2012 Sep 11
0
JQuery.js problem
Hello,
In my view, I am showing password strength. I had added jquery.js in
assets/javascripts. It worked. Then in the UI :- :confirm stopped working
in button_to. I was wondering why. But today I came to know that in rails
3.0 & above jquery.js is not required. So I deleted it. But something wrong
happened. now my password strength seems not to be working. & not
redirecting.
Any
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
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
2009 Jan 13
1
jQuery & unobstrusive javascript
Anyone know how to unobtrusively turn a normal link <a> into an ajax
link using jQuery ?
--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send
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 Mar 25
0
jquery/prototype. element.tagName undefined
Has anyone had this issue with using prototype and jquery doing a
page.replace_html ''element'' :partial ''blah''
RJS error:
element.tagName undefined
--
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
2008 Sep 10
1
jquery slider
a have a jquery slider a save the final values of the selection in
javascript variables rank_1, rank_2, rank_3
I need to give this values to a controller how can i do that??
some help please!!
thank you!
--
Felipe Vergara Contesse
IngenierĂa Civil Industrial UC
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
2011 Nov 18
0
Jquery dialog
Hi,
i had a index page with url as www.exa,com/users/jude.In that page i
want to submit a from which appears from popup dialog.The action of the
popup is going to send_message,Whenever i submits, via ajax the data
gets stored but not the page gets reflected.
My controller
def send_message
@message = current_user.messages.build(params[:message])
@message.receiver_id = @user.id
Jquery-Datatable-Rails Gem: Error on Update. PUT request automatically converting to a POST request.
2013 May 11
0
Jquery-Datatable-Rails Gem: Error on Update. PUT request automatically converting to a POST request.
Please checkout this link and help me out here. I guess the Gem has a Bug.
It is working perfectly for Creating a User but while Editing User
information it is giving a routing error:
No route matches [POST] "/users/2"
Here is the link:
http://stackoverflow.com/questions/16501440/jquery-datatables-rails-gem-not-working-for-update-call-converting-put-request
--
You received this
2010 Jul 18
0
button_to_remote using jQuery and Rails 3
Is this possible given the button_to_remote function seems to be
defined as a Prototype helper? I''ve replaced my /public/javascripts/
rails.js with the jQuery driver.
When I try to use button_to_remote I get the error undefined method
''button_to_remote'' for #<#<Class:0x000001078d7090>:0x0000010789ad20>
If this is not possible using button_to_remote, how can
2010 Sep 12
0
observe_field for jquery + rails3
I am porting one application to Rails3 and want to know what is the
right way to do "observe_field" with Rails3?
--
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
To unsubscribe from this group, send email to
2008 Jul 30
0
Re: jQuery.post gets some code but the code isn't evaluated
> jQuery.post("/plans/<%= @plan.id %>/add_learning_objective?name=" +
> objective_name)
You need to specify the type option as "script" to have it executed.
(See the docs for jQuery.ajax(), where it is the dataType option. The
"type" option in $.post is passed to $.ajax as the dataType option)
Rein
--~--~---------~--~----~------------~-------~--~----~
2011 Mar 22
0
Error on ajax forms/links in jQuery UI tabs
I''ve implemented jQuery UI tabs, and I get an error:
When i submit a ajax form or link, it gets submitted multiple times.
As seen in this Doom console output:
DELETE http://localhost:3000/innmeldings/101 404 (Not Found)
DELETE http://localhost:3000/innmeldings/101 404 (Not Found)
DELETE http://localhost:3000/innmeldings/101 404 (Not Found)
DELETE http://localhost:3000/innmeldings/101