Friday, March 30, 2012

Re: How to get text from textarea as html

I have a ui:binder,

there i use <g:Textarea ui:field ="ta"/>

Now, when i do - ta.getText() -> returns all textarea data without spaces and line breaks.

If i do - ta.getElement().getinnerHTML() -> returns blank. No data at all.

Thanks
Deepak


On Fri, Mar 30, 2012 at 9:55 PM, Joseph Lust <lifeoflust@gmail.com> wrote:
Deepak,

Is there a reason you're not using a TextAreaElement? That has the getInnerHTML() method that will return the raw values from the TextArea.

Sincerely,
Joseph

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/8w0_YcK8_JQJ.

To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.



--
Deepak Singh

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment