search for: textarea

Displaying 20 results from an estimated 198 matches for "textarea".

2011 Feb 17
16
Unindent ERB output
Hi all, I''d like to unindent a block of ERB specifically to combat the extra spacing being added to content inside <textarea> by the browser. Is there such a feature in ERB? I shall denote indentation with underscores in the pseudo code example below. Thanks in advance, Khoan. myview.erb: <html ...> __<%= render ''form'' %> </html> _form.erb: <% form_for ... do %> __<...
2007 Jun 22
5
assert_select trying to verify the presence of a textarea
Hello, One of my functional tests looks like this: def test_presence_of_free_text profile = Profile.find :first post :edit, {:id => profile.id} assert_select "textarea", :name => "record[free_text_ec]" end The test results in a failure, because the element cannot be found. I''m pretty sure the element should be there, and I''ve tried the following combinations as well: assert_select "textarea", :name => "rec...
2007 Apr 13
2
inplace editor and textarea
Hi, I have an inplace editor and I can access the innerHTML value of the created form. However the innerHTML gives "<textarea>....</textarea> ..." How can I access the textarea value? I tried to do innerHTML.textarea.value but it didn''t work. Any ideas will be appreciated. Thanks, Joe -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received th...
2007 Aug 25
2
insert HTML <select> value into a textarea - Works in IE6, not in FireFox or Opera
I have a simple form at http://mstramba.com/fb5.html It''s just a <select> and a textarea. The idea is to be able to either type into a text area directly or choose from a list of saved words in the select box. When a new choice is made from the select, it automatically gets inserted into the text area. This code DOES work in I.E6 (on my machine (XP pro), but doesn''t work in...
2007 Mar 15
8
in-place-editor
hi @ all how can i save my edited text in the database with php? thanks for your support --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send
2005 Aug 09
0
Update: In-place textarea patch/diff for controls.js
Ok, as per Thomas'' request - TEXTAREA in-place editor support now includes a unit test. (Nice framework btw) Updated svn diff attached. -San --- "sanzbox@yahoo.com" <sanzbox@yahoo.com> wrote: > From sanzbox@yahoo.com Tue Aug 9 00:39:19 2005 > Date: Tue, 9 Aug 2005 00:39:19 -0700 (PDT) > From: "sanzb...
2006 Mar 10
4
Problem with ajax and textareas on firefox but works on IE
Hi folks, I''ve been trying to figure this one out for a few hours now and can''t seem to understand what I might be doing wrong here. Basically, I have a textarea which has a little icon next to it which will fire off a reset of the original comment if pressed. It works under IE so that when the user types some garbase in to the textarea, and clicks the icon, the contents of the textarea resets; however, under firefox, i can see the ajax call hitting th...
2006 Apr 14
11
Whats the best Ajax way to update a textarea''s text?
I am looking for a way to update the text-value within a textarea from an Ajax render call inside of a controller. Is there a way to do this without rendering an the partial containing the textarea? Thanks, Andy -- Posted via http://www.ruby-forum.com/.
2006 Jun 05
1
formatting inside a <textarea>
I tried to put formatted text out to the browser when it was inside a textarea and got to look at markup. This might just be an HTML question. Is there a construct that will let me bound the size of text display with rows and cols like <textarea> but also let me html-format the internal text? I suppose I could hack up a table to use percentages. Maybe there is a C...
2006 Jan 05
6
InPlaceEditor and textarea
Hi to all. First of all exchuse for my bad english I try to use Ajax.InPlaceEditor with a textarea: ################## new Ajax.InPlaceEditor($(''ipblock''), ''tools/admin_save.php'', { ajaxOptions: {method: ''get''}, rows:10, cols:20, callback: function(form, value) { return ''op=ipblock&value='' + value},...
2007 Oct 05
0
Rpad textarea handling
Hi. I'm trying to write an Rpad that edits scripts. Textarea seems like an obvious tool, but unlike other input elements, it seems that the contents are not sent to R on 'calculate'. To illustrate using the page below: load, F9, edit text, F9. The original contents of 'script' are restored. Furthermore, I can't eliminate the leadin...
2007 Nov 19
3
wxRuby textArea??
I want to know wxruby can make textArea like java?? I can only use textbox with it but it has problem when I must use text that has many line, it can''t new line please help me -- Posted via http://www.ruby-forum.com/.
2008 Mar 09
0
textarea content text with tag html
I building a form for user profile editing. There is a textarea for description field. If the user insert in text area the code of a youtube video file, <object ... when he reeditingthe the descrption the text area have problems with rendering. the code of view is: <textarea name="description" id="description" ><%=@description...
2008 Aug 26
0
character limit for tinyMCE textarea
Hi, I am using TinyMCE editor for textarea.how to limit the characters in that textarea. 500 is limit for that textarea,how to limit characters for this textarea in client side. alert message after 500 characters or displaying dynamic count of characters above the text area. thanks, Ravi. -- Posted via http://www.ruby-forum.com/....
2005 Mar 31
5
Outputting XHTML strict
I''m trying to get a page to validate as XHTML Strict, and I''ve gotten everything fixed except for one <textarea> that Rails is generating. <textarea cols="40" id="estcomment_comment" name="estcomment[comment]" rows="10" wrap="virtual"></textarea> This tag is being called in my view with <%= text_area("estcomment", "...
2007 Sep 28
1
evalJSON problem
...od:''get'', parameters: {action:''bringeditor'', id:<?php echo $uid; ?>}, onSuccess: function(transport){ var response = transport.responseText; var data = response.evalJSON(); $(''maincontent'').innerHTML=data.mytextarea; eval(data.jsaction);*/ }, onFailure: function(){ alert(''Something went wrong...'') } }); and in ''myactions.php'' : $textarea= "<textarea id=''MyTextarea'' name=''MyTextarea''> $txtareacontent</text...
2005 Aug 01
2
disable ''tab'' key wish for incremental autocomplete of textareas
I''m absolutely in love with the incremental autocomplete feature in the new scriptaculous. My one wish would be for some way of disabling the TAB key to prevent users from being able to tab out of an autocompleting textarea. (If they''re using TAB to select the autocomplete choice they end up tabbing straight out of the input field if autocomplete doesn''t find any options). use case: User needs to enter N email addresses (N >= 10 or so) into a textarea. User starts typing, autocomplete sugges...
2005 Aug 09
0
In-place textarea patch/diff for controls.js
Hi Thomas et al, Here''s a diff to add TEXTAREA in-place editing support to controls.js. This is my first patch so let me know the official process to add a patch into the stream and please let me know if there are some coding idioms I should be following. Features: Allows user to specify the rows/cols (width/height) of the in-place input fi...
2006 Jan 17
4
textarea problem with accentued chars
Hello, I have a problem with accentued characters return from a textarea I have 3 simple files to show example ( below ). index.rhml : If I put "?nial" inside the textarea, then submit to :action => post post.rhml : wrote ?nial 195 "\303\251nial" // params[:comment][:message] return => ?nial params[:comment][:message][1] retur...
2007 May 01
3
How to get TinyMCE editor value( text content)
Hi everybody ! I included one tinymce editor in my rails application. But I cant get the textarea content from the tiny editor. I dont know how to include the submit button . And also I wrote a javascript for getting the textarea content when the user press the enter button. Its also not working. Why it is. tinyMCE.init({ mode : "textareas", }); <textarea name="msg"...