similar to: Clear text_area value onfocus

Displaying 20 results from an estimated 900 matches similar to: "Clear text_area value onfocus"

2005 Dec 21
8
text_area
Hi I''d like to know how to add default text text area using the function text_area. I ''ve tried using value = "....." to do this but with no luck. Could some one please answer my simple question? Thanks. Dan. -- Posted via http://www.ruby-forum.com/.
2006 Apr 06
2
text_area and :value
I''m trying to use the text_area() method and would like to populate the text block with initial text. According to this: http://dev.rubyonrails.org/ticket/3752 there was a fix put in place, but I''m ont sure how to integrate this. How do I get the :value parameter to show up within the textbloc instead of the html attributes? -- Posted via http://www.ruby-forum.com/.
2013 Mar 13
2
Form_for text_area
Hi all, Since I am new to ruby on rails. I''m stuck in some minor issue. I am using form_for in my view. In that I am using a text text. So, My question is, how to add a default value to the text_area along with the row and col values. Please help me out ASAP. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To
2008 Jan 22
4
newlines in text_area
Hi @ all I would like to enter a text with a text_area into the database. It runs excellent. But when I want to show the entered text in the show view, all newlines (paragraphs) are deleted and the text is only one block. How can I save the returns (newlines) too? Thanks for helping!! -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received
2006 Jan 21
1
text_area content with text_area and not text_area_tag ?
Hello, Is it possible to fill the textarea content when using the text_area function ? Why there is 2 , + or - similar class : FormHelper and FormTagHelper ?
2006 Aug 01
6
Newbie: How to use text_field with Java Script
<input type="text" name="date1" id="dateField1" onchange="magicDate(''dateField1'');" onfocus="if (this.className != ''error'') this.select()" /> How could I generate above text filed using ruby? I am not sure how to give the options such as onchange, onfocus, id and so on? could some one please help. --
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
2012 Nov 28
1
Build error of NSD4 on Debian Squeeze
Hello World, I am trying to build NSD4 on Debian Squeeze and I get the following errors when running `make`. ``` $ pwd /home/wiz/src/nsd/tags/NSD_4_0_0_imp_5 $ make [... output omitted ...] gcc -g -O2 -o nsd-checkconf answer.o axfr.o buffer.o configlexer.o configparse acket.o query.o rbtree.o radtree.o rdata.o region-allocator.o tsig.o tsig-opens 4_pton.o b64_ntop.o -lcrypto configparser.o: In
2008 May 06
2
Sending routing errors to the bitbucket
Hi, Rails 1.2.6 on Linux, WEBrick. Most of my users run IE 6, and some of them have MS Office plugins that send bogus requests, causing routing errors like this: ActionController::RoutingError (no route found to match "/MSOffice/ cltreq.asp" with {:method=>:get}): They''re harmless, but I''d like to just send these to the bitbucket rather than have them fill up my
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 =>
2007 Sep 27
2
text_area empty_clob()
Anyone know why my text_area field is being prefilled with "empty_clob()" instead of simply being empty like I would expect? I''m using Oracle 10g so I suspect it''s coming from the oci8 driver somehow? Here''s the code: <% form_for :user do |f| -%> <%= f.text_area :notes, :rows => 2, :cols => 32 %> <% end -%> It should be just an empty
2006 Jun 25
0
Colouring ''text_area'' plus scrollbar on view
Hi, I am trying to colour a text_area input field, including the scrollbar (2-dimensional field). I was able to change the colour of a button associated with a ''submit_tag'' by adding a :class and defining properties in my CSS file. Is something similar required? Thanks, Lee. ___________________________________________________________ All new Yahoo! Mail "The
2008 Jul 28
0
text_area value
Hey, I have existing threads with two fields: title and text. When a user clicks "edit", I say, in the new thread form: <% form.text_area :text, :value => params[:text] %> params[:text] = the text in the thread which the user wants to edit. It works fine most of the time, but if I made a new thread and had linebreaks, clicking edit fails. New form: text: sdfjksdfj sdfjsdf
2008 Mar 03
1
How change text_area form helper into rich text entry area/control?
Do you know how to render a rich text input area (with HTML formatting buttons (bold, italics, etc., available?) In RoR I''m hoping this is very easy to pull off?!? <%= text_area ''blogentry'', ''entry'' %></p> TO <%= rich_text_area ''blogentry'', ''entry'' %></p> ??? Haven''t found
2006 Sep 15
7
OT: TinyMCE in Rails
I''m having a problem getting the text area the size I want it to be. In my view at the top I have this init calls <script type="text/javascript" > tinyMCE.init({ mode: "textareas", theme: ''advanced'', theme_advanced_toolbar_location: ''top'' }); </script> Then in my form: <%= text_area
2014 Dec 10
3
dovecot.index.log files: what are they?
Hi! I have lots of these files: /home/wiz/Mail/my-folder-name/cur/.imap/1238738125.13533_23713.danbala:2,S/dovecot.index.log What are they for? Why are they here? Can I remove them? Thomas
2006 Aug 02
7
form_for not working with Markaby
I''m playing around with Markaby and I decided to write a little blog app. I''m running into issues with forms however. If I use form_for the output of the form gets swallowed. For example: form_for :article, @article do |f| f.text_field :title f.check_box :published f.text_area :description f.text_field :pub_date f.text_area :content end gets rendered as an empty form
2006 Jan 22
3
Formatting input/output of a text box
Hello, What''s the best way to handle formating of a text_area? I have a text_area in my rails app where people can leave comments and I''d like to automatically convert the line breaks into <br /> tags, or just simply wrap a whole paragraph in <p></p> tags. I''m currently doing the following in my comments controller to insert line breaks when the user
2006 Mar 30
7
text_area
How to make that the typed code on ruby in text_area it was carried out in @params ["name"]?? -- Posted via http://www.ruby-forum.com/.