0
votes
1answer
47 views

Save form when date is selected

I would like to save the form when the date is selected from datepicker without a submit button. However, I do not know what shall I type into update.js.erb to assist me to do that. Here are my ...
0
votes
0answers
58 views

Getting jquery-ui datetimepicker object without using id of text_field_tag in form

I want to access the datetimepicker objects corresponding to each text_field_tag in each form in my table. Can someone please guide me with code as to how to do that? I am suing jquery-ui gem for ...
0
votes
2answers
301 views

Jquery datepicker display for multiple forms

I have my code structured in such a way that clicking on an 'Edit' button displays a hidden form (written in embedded ruby) within a 'div' html tag and within that form is a text_field_tag whose id is ...
0
votes
2answers
169 views

Javascript doesn't work in first load

I'm use jquery UI datepicker and have a problem. My datepicker don't work in first load. I searched and try substitute document.ready for windows.load, but don't work too :/ My code is: ...
0
votes
2answers
501 views

How to Change the Date formatting with jQuery UI Datepicker and Rails?

I can't believe how complicated the date picker can be. I have looked at various questions on Stackoverflow, but can't get the formatting to work. I used the Railscasts #213 Calendars (revised) to set ...
0
votes
0answers
142 views

jQuery Datepicker isn't working for rails form (Uncaught TypeError)

I am using jquery_datepicker gem so that I can have a datepicker for an input on a form that I use over and over again. Certain partials include this form in them, and I have a list of these partials ...
1
vote
1answer
225 views

How to update a jquery datepicker in a partial in rails

I have a partial that has two datepickers to show the beginning and ending of data to be displayed in another partial. I also have a dropdown to determine the date ranges for some predetermined ...
1
vote
0answers
1k views

rails jquery datepicker don't popup TypeError: $(…).datepicker is not a function

I'm trying to get a simple jquery datepicker to work. I've followed the railscasts episode for it, and even was able to download and get his version working. I'm not sure why it's not working on my ...
1
vote
1answer
646 views

Using jquery-ui-rails datepicker in an Ruby on Rails website. datepicker method not defined

I got this problem writing the website with Ruby on Rails. bundle show * jquery-ui-rails (4.0.1) In app/assets/javascripts/application.js //= require jquery.ui.datepicker In ...
0
votes
0answers
81 views

How do I hook up a datepicker to a rails model using ajax?

Update: I figured this issue out! Code that worked for me is updated below. I'm new to Rails (and programming generally) and trying to use a jQuery datepicker combined with Ajax to return data from ...
0
votes
1answer
157 views

Rails - getting jQuery datepicker value without using a form?

In my project I have a link that when clicked runs a report. The report receives a date_min and date_max from 2 jQuery datepickers. Currently javascript is used to get the values of date_min and ...
4
votes
1answer
369 views

jQuery UI DatePicker Allow Past Dates, Show Today

I am using the jQuery UI DatePicker for an event app. Very often, I will have say an event that runs every Tuesday all year. Now, the datepicker allows people to register for attendance reasons, so ...
0
votes
0answers
515 views

jquery-timepicker-addon doesn't appear

I'm trying to use the jquery-timepicker-addon by Trent Richardson however after following all the instructions, I have application.js //= require jquery //= require jquery_ujs //= require ...
1
vote
2answers
2k views

jQuery datetimepicker formatting in rails 3.2

I'm using the following datetimepicker which from my understanding is the jquery-ui datepicker that has been extended. http://trentrichardson.com/examples/timepicker/ My issue is I want to display ...
0
votes
1answer
49 views

Getting strange error when searching by date

I'm trying to make report page, on which user will choose start and end date and push buttopn report. Then hidden div became visible. My search isn't on partial. I am using jquery_datepicker so here ...
0
votes
1answer
335 views

Rails 3 Nested Form and jQuery UI datepicker updates first element only

This isn't working as I'd like. I have an entry form for a new job, which is made up of a number of steps. By default there are 4 new and unsaved steps populated per job. Using the code from the ...
0
votes
1answer
388 views

Jquery UI_datepicker in Rails

I am relatively new to Rails but not to programming... I've spent way more time than is 'sane' to try to resolve this to no avail... I am using Ruby 1.92, Rails 3.1, formtastic 2.1 w/ the ...
1
vote
2answers
2k views

How to properly configure jquery-ui datepicker max/min range and initialize default from Rails column?

I'm using jquery-ui datepicker on a User DOB field in a Rails 3.2 app. I'm trying to achieve the following: restrict the range of dates that can be selected, max = today, min = 100 years ago. ...
1
vote
3answers
440 views

Rails 3 Nested Form - jQuery Datepicker won't load when “add a task”

I'm using ryan bates nested form gem. - https://github.com/ryanb/nested_form In nested form I have a textfield for jQuery datepicker. My Problem is when I "Add a task". The datepicker no respond. ...
0
votes
1answer
241 views

How do I get the jQuery datepicker to load properly on my Rails page?

In my Rails project I currently have the following: = f.label :created_at_gteq = f.text_field :created_at_gteq, { :class => "ui-date-picker hasDatepicker" } = f.label :created_at_lteq = ...
0
votes
1answer
217 views

Using jQuery datepicker with Chronic

I'm trying to get a nice combination working for the strengths of the jQuery datepicker, and Chronic date parser for Ruby on Rails. The jQuery UI date picker is useful for selecting a date visually. ...
0
votes
1answer
447 views

How to get datepicker to be highlighted upon refresh

I have a datepicker that highlights a selected week. It is using an ajax request. Which is where I am having a problem. When I select a week i.e. 29/08/11 and the page refreshes the highlighted week ...
0
votes
1answer
387 views

how to set the minimum date for JQuery datepicker retrieved from model

$('#bid_work_end_date').datepicker( { dateFormat: 'dd-mm-yy', minDate: -0 }); In this code, i have set the min date as today's date but i want to set it by retrieving from a ...
0
votes
2answers
981 views

jQuery DatePicker ui is failing on IE

IE is giving me an undefined NAN when i try to view the calender... here is my html $("#datepicker").datepicker({ altField: '#outing_suggested_date', minDate: new Date, dateFormat: "yy-mm-dd", ...
22
votes
5answers
19k views

How do I connect jQuery Datepicker to my Ruby on Rails form?

I'm trying to use the jQuery Datepicker to set a date field in my Ruby on Rails form, but I can't work out how to do it. Can someone point me in the right direction?
5
votes
3answers
4k views

jquery date picker split into multiple fields

I have the usual Jquery datepicker working fine. But I want to feed it into a set of selectboxes rather than one textfield. I have had success feeding it into one select field with a specific format ...