I would like to know if there is a javascript function I could add to a textarea in an asp input form (which adds info to an Access Database and displays on a webpage and which can be updated by another form on an online admin area)???
Your title declares one thing and your post declares
a little different, are you wanting to replace a
" "(space) with a "<p>" in any text string found in the
text box.
I have a text input form, which inputs text to a database. This text is then displayed on a web page. Before the text is cut and pasted into the textfield, it may have come from a word document (Microsoft). The text would be formatted with spaces, i.e. write a line, hit return and you get a new line, hit return twice and you get a paragraph. This is how it works in word, in notepad and on the text input form (text field whose input, when submitted, is sent to a database field).
From the text above to what I am writing here, I have hit return twice, thus forming a paragraph space.
The text in my textfield (which when submitted is sent to a field in database) looks like this. However, when displayed on a webpage (which sources from the database using asp), it does not retain spaces and will look like this:
'HiI have a text input form, which inputs text to a database. This text is then displayed on a web page. Before the text is cut and pasted into the textfield, it may have come from a word document (Microsoft). The text would be formatted with spaces, i.e. write a line, hit return and you get a new line, hit return twice and you get a paragraph. This is how it works in word, in notepad and on the text input form (text field whose input, when submitted, is sent to a database field).From the text above to what I am writing here, I have hit return twice, thus forming a paragraph space. The text in my textfield (which when submitted is sent to a field in database) looks like this. However, when displayed on a webpage (which sources from the database using asp), it does not retain spaces and will look like this:'
No spaces, no paragraphs. I would like the text to retain the spaces it has when you first cut and paste and the spaces which are actually visible in the database. So this space
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.