Results 1 to 3 of 3

Thread: Add HTML tags to memo fields

  1. #1

    Thread Starter
    Fanatic Member venerable bede's Avatar
    Join Date
    Sep 2002
    Location
    The mystic land of Geordies
    Posts
    1,018

    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

    Parksie

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    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.

  3. #3
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    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
  •  



Click Here to Expand Forum to Full Width