Displaying 20 results from an estimated 20000 matches similar to: "Format textarea output from controller"
2007 Nov 06
5
textarea fails on rows attribute
Hi,
Camping 1.5.180
Ruby 1.8.6
It looks like Camping is choking on the ''rows'' attribute for input tags:
input(:name => ''cuid'', :type => ''text'', :size => 10, :rows => 3)
That will fail with:
Markaby::InvalidXhtmlError no attribute `rows'' on input elements:
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: "sanzbox@yahoo.com" <sanzbox@yahoo.com>
> To:
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 CSS solution where I
2006 Mar 09
2
How to keep formatting of text in textarea?
Hi!
I''ve got a form for creating news and i''d like to keep formatting of the
text in the textarea - if user presses enter twice, or presses space ten
times it should be visible when editing or showing the news.
Probably i should add before_save filter and some regexps for adding
html tags, but i know almost nothing about regexp. Maybe there''s a
simpler way also.
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 field. If the row size is greater
than
2008 Apr 04
1
Bug Report: Segmentation Fault when indexing with a specific set of FieldInfos.
I''m submitting this through the mailing list because Trac won''t let me
use its bug report form... Is there some more appropriate way of
submitting bugs if Trac doesn''t work?
This is the Trac error message:
500 Internal Server Error (Submission rejected as potential spam (IP
127.0.0.1 blacklisted by bsb.empty.us, sc.surbl.org, Maximum number of
posts per hour for this
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/.
2008 Jul 26
4
Mongrel on Ruby 1.8.6 w/ patchlevel 279 (Win)
Hi,
I can''t install Mongrel on Ruby 1.8.6 (patchlevel 279), using Windows
XP.
My environment:
C:\ruby18>gem environment
RubyGems Environment:
- RUBYGEMS VERSION: 1.2.0
- RUBY VERSION: 1.8.6 (2008-07-17 patchlevel 279) [i386-mingw32]
- INSTALLATION DIRECTORY: c:/ruby18/lib/ruby/gems/1.8
- RUBY EXECUTABLE: c:/ruby18/bin/ruby.exe
- EXECUTABLE DIRECTORY: c:/ruby18/bin
-
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 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/.
--~--~---------~--~----~------------~-------~--~----~
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></textarea>
Is there a
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 leading and trailing
whitespace in the
2009 Nov 05
1
tabIndex not working for select or textarea in form_for
Hello all,
Maybe this is something easy to solve but I can set all my text_field
tabIndex by { :tabIndex => ''2''}. When I try to do the same for the
select or the textarea it doesn''t work. Is there something I''m missing?
Thank you.
John
--
Posted via http://www.ruby-forum.com/.
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] return => 195 ! ( 195 is not
2010 Mar 03
1
Html/JavaScript/CSS code ouput in TextArea-- Best Ways
Hello:
What would be the best way to Output Code in TextArea for a UI
component?
The Rails App View is pure HTML and JavaScript.
1.render in text for controller action and the text is the code string.
The < and > etc can be passed as is in this mode.
2.Read a HTML Template File (containing JS and CSS references) in Public
directory(?) that needs to be substitute some variables that were
2009 Feb 23
0
Clear a textarea when I click on "Submit"
Hello everyone!
My page reloads itself as soon as I click on "Submit". My question is :
how can I clear the content which is in my textarea?
I''m using the method submit_to_remote for my submit button.
Thank you!
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
2011 Nov 29
1
Error in ROR App
hi all,
i am new to ROR,I have one ROR app developed in old version i upgrade
it with following version:
RubyGems Environment:
- RUBYGEMS VERSION: 1.3.2
- RUBY VERSION: 1.8.6 (2008-08-11 patchlevel 287) [i386-mswin32]
- INSTALLATION DIRECTORY: D:/Ruby/lib/ruby/gems/1.8
- RUBY EXECUTABLE: D:/Ruby/bin/ruby.exe
- EXECUTABLE DIRECTORY: D:/Ruby/bin
- RUBYGEMS PLATFORMS:
- ruby
-
2009 Jan 20
0
Zlib error
Hi,
After installing the rubygems 1.3.1, I face the following issues while
installing new gems.
Error:
arun@mysystem:~/Desktop$ sudo gem install ip2country-0.0.2.gem
ERROR: While executing gem ... (Zlib::GzipFile::Error)
not in gzip format
My Environment:
OS - ubuntu 8.04 - the Hardy Heron version.
Ruby - ruby 1.8.6 (2007-09-24 patchlevel 111) [i486-linux]
RubyGems Environment:
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
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