1 Replies - 4723 Views - Last Post: 14 November 2009 - 07:53 PM

#1 av11453   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 14
  • Joined: 17-December 08

Preserve White/Blank spaces in Text area/ Rich Edit Text Box

Post icon  Posted 11 November 2009 - 05:27 AM

Hi All,

Don't know whether i need to post this in JSP or Javascript. But i need your guidance not the code.

In a Text Area or Rich Edit Text Box i need to control whitespaces in between strings.

For example if i have a : 1234 this is text test123.

when i restore this information on the text area the spaces between those strings are not respected and only 1 space is in between those strings.

When i browsed forums i see that we can use <pre> to hold the formats. I am new to programming don't know whether i need to work on HTML DOM for this text area or i can handle it in Javascript.

Is This A Good Question/Topic? 0
  • +

Replies To: Preserve White/Blank spaces in Text area/ Rich Edit Text Box

#2 forest51690   User is offline

  • D.I.C Regular
  • member icon

Reputation: 58
  • View blog
  • Posts: 340
  • Joined: 20-March 09

Re: Preserve White/Blank spaces in Text area/ Rich Edit Text Box

Posted 14 November 2009 - 07:53 PM

what is the exact text in your textarea? In your post you have one space between each word. Also, when are you restoring the text? Do you grab it at some point, like at the beginning of the page load?
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1