473,386 Members | 1,674 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Formatting parragraphs in text_are

Hi All,

I am a newby and a silver surfer and wander if anyone can give ma a hand.
I am installing a double drop box on a friens website and have hit a problem. I can not find a way to format parragraphs in the text box. This is one of the Text_area that I need to alter.

"
text_array[1] = new Array("DIAMOND SBS / TD UNDERLAY / INSULATION, 15 Year Guarantee - System-11, 20 Year Guarantee - System-2",
"
You can see the drop box at http://www.europolymers-gb.com/eb-we...of-design.html.
I would like the display to look like this:

DIAMOND SBS / TD UNDERLAY / INSULATION
15 Year Guarantee - System-1
20 Year Guarantee - System-2.
instead of like this:

DIAMOND SBS / TD UNDERLAY / INSULATION 15 Year Guarantee - System-1 20 Year Guarantee - System-2.

Can you Help
Silver Surfer
Mar 26 '07 #1
3 1013
mrhoo
428 256MB
return the array as a string of text joined by newlines, and set your textarea style to preserve the whitespaces

in your stylesheet:
#textareaname{white-space:pre}

writing to the textarea:
textareaname.value= text_array[1].join('\n')
Mar 26 '07 #2
Sorry for my ignorance but I didn't understand a word of that. The script did not come with a stylesheet. Is there a tutorial on this anywhere?
Silver Surfer
Mar 26 '07 #3
acoder
16,027 Expert Mod 8TB
Are you not using stylesheets on the page? (The page link that you gave doesn't exist).

You can set the style using javascript:
Expand|Select|Wrap|Line Numbers
  1. textareaObj.style.whiteSpace='pre';
where textareaObj is the ID to your textarea.
Mar 27 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Jouke Langhout | last post by:
Hello all! For quite some time now, I've got the following problem: Access won't close properly when a user closes the application. An ACCESS process stays active and that process can only be...
2
by: Colleyville Alan | last post by:
I am using Access and have embedded the ActiveX control Formula One that came with Office 2000. (ver 3.04). I have created and formatted a spreadsheet and now I want to copy the info with...
4
by: DBQueen | last post by:
I have a subform which is in Continuous Forms view. I have added a button to the bottom of the page to move to the next record using the button wizard (result: DoCmd.GoToRecord , , acNext). I...
4
by: Bradley | last post by:
I have an A2000 database in which I have a continuous form with a tick box. There is also a text box with a conditional format that is based on the expression , if it's true then change the...
1
by: GGerard | last post by:
Hello Is there a way to use a variable in the Conditional Formatting of a Textbox? Example : I want the background of a textbox in a continuous form to change color when the value of...
4
by: hope | last post by:
Hi, How can I format a string field using Data Formatting Expression property in datagrid? For example: format last name from BROWN to Brown. Thanks
7
by: L. Scott M. | last post by:
Have a quick simple question: dim x as string x = "1234567890" ------------------------------------------------------- VB 6 dim y as string
8
by: gopal | last post by:
Hi I am trying to write to log file but the formatting of string is not properly aligned in log file result The results looks some thing like this OK move.xml Successful OK ...
8
by: Typehigh | last post by:
I have many text fields with conditional formatting applied, specifically when the condition is "Field Has Focus". Without any events associated with the fields the conditional formatting works...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.