Solved

HTML TEXTAREA

Posted on 2000-03-20
4
781 Views
Last Modified: 2008-02-01
Hi,

Does anybody know if it's possible to insert 'bullets' (that can be displayed and saved to database), within a HTML Textarea?

(Do I have to use unicode char - and if so what is it?)

Thanks, Andy
0
Comment
Question by:amtate
4 Comments
 

Expert Comment

by:Fuzzhead
ID: 2636972
I have never heard, or seen it done
anywhere.
0
 
LVL 4

Expert Comment

by:mberumen
ID: 2637027
Andy:  while you can not create true bullets, you could simulate them by storing the contents of your textarea as a memo field in your table.

for example if you want to create a new bullet everytime the user presses enter inside the text box then you can validate the text and replace the chr(10) + chr(13) it with a  bullet sign .

for example

strtextsubmitted=request("textarea")
strtextwithbullets=replace(strtextsubmitted, chr(10)+chr(13),"<br>•")

'store in table

when you read it from the database and display it it should display as a bulleted list...

i may be completely off and I haven't tested this code.. any ideas anyone?
0
 

Accepted Solution

by:
mborgetti earned 35 total points
ID: 2637313
The above would work provided you truly want to display your data in something other than a textarea at some point in time.

However, before bringing the data back into the text area you would have to convert the "<BR>" back into chr(10)+chr(13). Your best bet would be to not store true bullets at all since what you can enter into a text area is so limited.
0
 

Author Comment

by:amtate
ID: 2639388
Thanks ...
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question