|
-
Sep 3rd, 2003, 10:05 AM
#1
Thread Starter
Fanatic Member
Add HTML tags to memo fields
(Sorry for the Xpost)
I have an asp page which allows users to insert details into a memo field in an access database developed in Dreamweaver MX.
The problem is that I want users to be able to insert HTML tags for bold e.t.c (just like we do when we create a new thread in this forum).
This needs to be done in Javascript but how?
Thanks in Advance
-
Sep 4th, 2003, 01:42 AM
#2
Where exactly is the problem with that?
If the tags aren't html but instead some tags of yours (like the vbcode tags), you need to parse and replace them, but you do that in the server-side language, that is, PHP, Java, VBScript or whatever.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Sep 4th, 2003, 01:21 PM
#3
When storing the user input string, simply store the text entirely with tags. When displaying it on a page again, simply Response.write it (Assuming you're using ASP) and it'll come out as it was intended to.
Now, if you're looking for an interface by which users can do the HTML formatting (for dumber users), check out the javascript on this page:
http://www.zug.com/gab/index.cgi?fun...hread_id=33497
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|