Displaying 20 results from an estimated 50000 matches similar to: "datetime_select and onchange?"
2006 Mar 22
2
observe_form without ajax?
This betrays my lack of javascript knowledge, but is it possible to
watch a whole form for changes and activate some javascript when those
changes occur without any remote request?
That is, I want to do exactly what observe_form does, but without the
ajax call actually happening. I realize I could use the form_tag
:onchange parameter, but that seems to be incapable of doing things like
2006 Feb 05
0
How can i specify default time to datetime_select tag
I want to specify a different default time to datetime_select tag how
can i do that.
also i was looking at rails helper code
-----------------------------------------------------------------------
module ActionView
module Helpers
module DateHelper
def to_datetime_select_tag(options = {})
defaults = { :discard_type => true }
options = defaults.merge(options)
2005 Jul 25
0
Code for onChange is missing
Hello,
onChange as advertised for Sortable cannot work, as there is code missing.
// onChange event handler
element.sortable = {};
element.sortable.onChange = options.onChange;
needs to be added to Sortable.create() to make it work.
Bye,
Martin
2006 Feb 22
1
specifying m/d/y order in datetime_select
the date_select form helper has a neat little feature which lets you specify
the order of the month/day/year that is displayed on the form via the :order
parameter. i.e.
<%= date_select ''blah'', ''somedate'', :order=>[ :month, :day, :year ] %>
however, i don''t see a similar option for datetime_select. passing
an :order parameter is happily
2006 Apr 20
4
Small Date Formatting Question regarding datetime_select()
Is there a way to make datetime_select() dropdowns work on a 12hr
clock? I need to make a input field that works exactly like the
reminders datetime selecton dropdowns in Backpack to populate a
datetime field in my DB. i.e in the format: month, day, year ? hour
(1-12) minute am/pm. Should I change my database to have a separate
column for date and one for time and use date_select()?
Can
2006 Sep 15
1
In datetime_select, :order does not work, but it works for date_select Why
Hi All
In my project I am to take date of birth from user so I used
datetime_select. It renders three selection boxes, year, month and day. But
I want order as day, month and year. I added :order option for
datetime_select, it renders normal selection boxes with order year, month
and day. Why :order does not work with datetime_select? see my following
code
<%= datetime_select(:user2,
2006 Feb 21
10
segfault after page view
I realize this is slightly off-topic, but I''m stumped and I hope someone
else has had the same problem.
When running a rails app using webrick (script/server), I can load any
given page which involves a controller once, and any subsequent page
loads trigger a "Segmentation fault" without any other info.
This problem is very new, and has only started occurring since I last
2004 Mar 07
1
imap internaldate
I think I found a bug in dovecot which I'm not sure where to fix. (I may
even have found a reference to it in an archived list message from Jul
2003.) Here is the situation:
dovecot (dovecot-0.99.10.4) running with an imap server on an mbox
system is queried by a local client program, like Mail.app, and is
told the "Received" date of the message (presumably sent through
2006 Nov 04
0
observe_field and datetime_select
Hello all,
I have a form with a datetime_select.
I need to use the actual time selected in an action triggered by
observe_field.
Could make it work with other select fields, but not with datetime_select.
Seems that observe_field can locate the element just by the id (not by the
name).
If so, how can I set the ID of datetime_select ???
I''m in this for some hours, but could not find a
2006 Mar 01
0
datetime_select & styles
Hello,
apologies if this has a trivial solution but after rumaging around
google for a while I haven''t found one. I am trying to set the style of
the datetime_select compound widget but it appears to ignore all my
efforts ... the API specifies
datetime_select(object, method, options = {})
so you would expect
<%= datetime_select ''log'',
2006 Aug 07
1
datetime_select problems
Hi,
I have a datetime select in my form like this:
DATE/TIME REPORTED: <%= datetime_select ''report'', ''rep_date'' %>
This works beautifully for creating a new record. The data is saved as:
2006-08-07 11:33:00
Now, the problem is when I try to load the form with saved values
to do an update.
The above code works and loads the saved data in another one
2006 Feb 12
6
habtm doesn''t save old IDs
I''m sure I''m not getting something. I have Users, and I have Groups.
Each User has_and_belongs_to_many :groups and each Group
has_and_belongs_to_many :users.
When I add a user, I want to apply a bunch of groups (like tags) to the
user (manually, without acts_as_taggable).
Here''s User#create:
@user = User.new(params[:user])
@user.groups =
2011 Jun 06
0
datetime_select and in_time_zone?
I''m working with an app for a concert tour website (www.yogabbagabbalive.com),
where all times (announcement times, on-sale start times, and event start
times) are local to each particular venue''s time zone. I take the user
entered date/time where applicable and run a before_filter to set the
appropriate time zone so that everything is stored in the database in UTC.
For the
2008 Jul 04
4
select_datetime // datetime_select
Hi I have 2 question for you guys,
1. Which is the difference between this two methods? (select_datetime,
datetime_select)
2. How I assign the selected date-time values, to an specific variable
or array using select_datetime
I know do it using datetime_select(''object'',''method'')
I aprecciate your attention.
Thanks
PD: Sorry about my english.
2007 Jul 08
2
datetime_select, is creating an instance of the Time class
Hello
It seems that datetime_select, is creating an instance of the Time
class. Why would that be?
I found this while building a site where people can create vigils
(prayer vigils, peace vigils, etc). When I added a validation method
that compared start_date to created_at, it generated the error:
ArgumentError (comparison of Time with DateTime failed):
I was able to put a breakpoint in the
2004 Mar 04
0
imap MUA received
Does anyone know where MUAs like Outlook, Entourage, and Mail.app get
their 'Received' or 'Date Received' information from? It certainly doesn't
appear to correspond with the mail headers, at least in my case, so I'm
guessing it's possibly getting that data from the IMAP server?
My mail clients (MUAs) show the 'Receieved' time as 5 hours off.
I have qmail
2006 Oct 28
2
onchange="document.forms[0].submit()" - how to CANCEL
Goal: I want to auto-send a form whenever any field changes. The page
will be updated "via Ajax", so standard submission is cancelled.
Idea: Add onchange="document.forms[0].submit();" to every field
Problem: Can not cancel form submission. Browser redirects to "results"
page, which is of course JavaScript meant to dynamically update the
page.
RHTML snippet:
2006 Mar 24
2
Slider: passing the slider object to onChange and onSlide?
I''m working with a couple of slider objects on one page.
I''m using onChange to do a couple of things. onChange passes the new value
of the slider, but not the slider object itself. Has anybody found a way to
get the object?
More details: A simple example would be to do the following: Put multiple
sliders on a page. Now, when a slider is moved, change it''s track
2006 Feb 10
0
AJAX update for select list onchange?
Hi Rails Users,
I have a select list that I''d like to use to update a div onchange.
Right now I just have the div appear, but not update:
<%= select_tag( "profiles_select", option_tags = @profiles,
{ :onchange => "new Effect.Appear(''the_profile'',
{ duration: 0.5 } );"
2006 Jun 14
4
Select box onchange problem
Hi,
i''ve got the following problem. I have a check_box witch shows
a list of varieties. Now i want to call a action when the user
changes his selection. (the method to be called, will store the
selection from the user).
This is my code:
<%= select(''variety'', ''variety_id'',
Variety.find_all.collect {|c| [c.description, c.id]},