Displaying 20 results from an estimated 500 matches similar to: "Newbie: How to use text_field with Java Script"
2006 Jul 31
6
Popup Calendar and DateBoxEngine and Change Made ...
Community,
I have been putting off implementing a Date selector for too long.
Tonight, I finally put it in. I made the choice to go with the datebox
engine.
Once I got it installed and working, I realized I didn''t like the way it
required you to call it. Example:
<% @dateField = model.date %>
<%= date_box %>
or...
<% @dateField1 = model.date %>
<%=
2006 Jul 26
4
How to Install Engines?
I am trying to get this enginer to work....and I am not sure how to
install the engine? could someone please give me some instructions with
regards to this....
http://rails-engines.org/wiki/pages/DateboxEngine
for example in the website above
The Engines plugin or the EdgeEngines plugin
* Engines 1.0
script/plugin install
http://opensvn.csie.org/rails_engines/branches/engines/
*
2006 Jul 17
10
getting the user name
Hi I am new to ruby and trying to obtain the user name in the login
index.rhtml where I could display "You have logged in [user name]"
How could I do this? I have been trying different options after reading
the ruby manual but still throw an error.
please help
--
Posted via http://www.ruby-forum.com/.
2007 Dec 13
1
parsing dates in input file
I've hunted around to try to work this out and cannot find anything
aposite, although there are exhortations to read News files and the fine
manual in response to similar queries. Hope I haven't missed anything
obvious.
I want to read in csv files that contain dates, or date times. If I read
them in directly:
x <- read.csv ("file")
the relevant dataframe column is of type
2007 Aug 17
3
Clear text_area value onfocus
Hi!
I have a "text_area" that looks like this...
<%= text_area ''business'', ''otherDigitalDesc'', "cols" => 25, "rows" =>
4, "value" => "Enter Description if Yes..." %>
Right now, if I submit it, it adds "Enter Description if Yes" into the
database. It would be nice to not have it enter
2006 Jul 31
4
Login Password text field values
I have a text field that I use for logging in users. Due to the design
of my site, I don''t have room to put the word "username" in front of the
text field so I''d like to actually display it inside the field and then
have the word clear when the user clicks on it.
How could I modify something like this
<%= text_field "user", "login", :size
2006 Jan 02
2
First time class problems
Hi,
I''ve just had my very first attempt of making a JavaScript class,
"prototype" style, so please bare with me, for any disastrous errors :-)
Anyway, I''ve made this class, which is called on an input field on focus:
http://pastebin.com/487417
It works fine in FireFox, but causes some problems in IE. My question is
regarding line 69 in the paste. What is
2006 Jun 14
2
Date as INPUT not Selects
Greetings!
Can anyone tell me how to use just a normal input field as a date
entry? I can use a text_field tag, but that brings the date out in
CCYY-MM-DD format. I would like to be able to simply key in my dates
like mm/dd/ccyy format.
Thanks,
Jeremy
2006 Jul 25
8
Calender Script?
I have been trying to get one of the calender javascripts to work with
the <%= form.text_field. So when the user pick the date it updates the
time fields? (like in normal reservation system where you pick up the
date and time from the calender and when user pick the selection it
updates the field) but I could not get this to work.
Does anyone have got something similar to work? or could
2006 Mar 07
12
rjs and partials
I''m trying to update a list, and having a hard time applying visual effects
to the latest element created. Here is what I''m doing.
===========================================
1) Creating an "item" via an action, then rendering the RJS template
2) RJS template looks like this:
page.insert_html :top, ''items'', :partial =>
2009 Nov 26
15
bad move? - complex form with *many* observe_field's
I have a pretty complex form with many text fields and a number of
selects. We let the user add multiple types of associated objects to
the parent object and to edit the values for those associated objs, so
the form can have something like the following number of fields on the
page:
9 text fields + 3 selects + a*(1 text + 1 select) + b*(1 text + 1
select) + c*(1 text + 1 select) + d*(1 text +
2008 May 24
3
Searching the wiki
Hi,
If you type a keyword and press Enter in the search field on the wiki, it
does a title-search by default which is very limited.
I tried looking for information about atheros or madwifi and couldn't find
anything. Then I tried ipw2200 (I knew it existed because I created it)
and no results still. I had to ask Ralph to see if the index was old, only
to find out that there is a
2006 Jun 07
9
Rearchitecting IO Emulation for HVM Guests
Hi Ian,
Natasha and I are interested in helping with the io emulation work for
fully virtualized HVM guests you mentioned in your March 12th email:
http://lists.xensource.com/archives/html/xen-devel/2006-03/msg00394.html
In the post, you mentioned the following tasks:
- get minios running on x86_64
- port xenbus/netfront/blkfront to minios
- compile qemu-dm into minios
- redirect IO to qemu-dm
2007 May 24
3
Help with Create and Update with options_for_select in a select_tag
I have a select_tag in my view that uses options_for_select with
multiple = true. I am having trouble figuring out the Rails way to
create and update that field. Please help.
Models:
-------------
Service has_many AccessControl
AccessControl belongs_to Service
application.rb
-------------------------
$types = Array["Athens", "htpasswd", "IP", "None",
2006 Sep 22
1
[RFC][PATCH][UPDATED] Intel(R) LaGrande Technology support
This patch adds SMP support to the previous version. Since that has not
been merged I have included it in this patch. This should apply cleanly
to the tip. Below is the text of the original submittal, slightly
updated.
Attached is a preliminary patch that adds Intel(R) LaGrande Technology
(LT) (Safer Mode Extensions - SMX) support to Xen. While there are
still several enhancements needed for
2009 Feb 24
1
How do I clear values from text_field_tag after browser refresh????
Hi all,
I''m having an issue with text_field_tag. I want to reset the value of
the text_field when I refresh my browser, seems like a very simple
thing, however I''m having hard time finding the answer.
After I input some values, how do i reset the value to nil or empty??
my code is below
<%= text_field_tag ''login'', @login, :class =>
2007 May 24
1
How do I show the selected values in options_for_select? Not as simple as it sounds.
How do I show the selected values in options_for_select? I have a
Service model and a AccessControl model. When a user edits a Service I
want the services access_controls to be pre-selected.
Models:
Service has_many AccessControls
AccessControl belongs_to Service
application.rb:
$types = Array["Athens", "htpasswd", "IP", "None", "Other",
2006 Apr 25
5
millisecond precision over internet
Hi,
I''m new to programming and ruby and ROR, but I''m hoping to learn ruby to
create custom scientific software.
Mainly it involves measuring people''s reaction time to a series of
words.
I''m positive that this is possible using plain ruby on a computer (cause
this is BASIC territory right?). But I want to create a ROR app that can
do the same thing. My
2011 Feb 02
2
Counter in a For Loop - Efficiency Issue
I have a 32000 x 14 matrix (M) where entry (x, y) corresponds to
person x at a discrete time y. I then have a matrix (M2) of 60000 x 2
where each entry is a an event by a person that is in the above 32000
and at a time that is in the range of the discrete time points above.
I want to populate the another matrix (M3) such that (x, y) is the
number of events of person x between times y-1 and y. This
2005 Aug 03
1
Scriptaculous: Effects.js SlideDown Firefox Possible Bug
Skipped content of type multipart/alternative-------------- next part --------------
A non-text attachment was scrubbed...
Name: bug-firefox.gif
Type: image/gif
Size: 2038 bytes
Desc: not available
Url : http://wrath.rubyonrails.org/pipermail/rails-spinoffs/attachments/20050803/0e69c265/bug-firefox.gif
-------------- next part --------------
A non-text attachment was scrubbed...
Name: