Special Characters in a text box for a form

Ask a Question related to Macromedia Dynamic HTML, Design and Development.

  1. #1

    Default Special Characters in a text box for a form

    I am creating a page the deals with users entering information into a form which is then loaded to a database. no big deal.

    however, this often requires userse to enter special characters such as trademark (TM) symbols and greek symbols (for formulas).

    Any ideas as to how to handle this??



    wolfpacker webforumsuser@macromedia.com Guest

  2. Similar Questions and Discussions

    1. Dynamic text, system fonts, and special characters...
      This one is boggling my mind so if someone can help, please do :). I've got a dynamic text area pulling text from a MySQL database via AMFPHP....
    2. export Special characters from .swf to Lotus Notes Form
      In a Lotus Notes form, i have embedded a flash swf. Through this, users can submit applications, and I send the data to the Notes form with loadvar...
    3. HTML form fields and special characters
      How can I read the value of form fields with special characters such az comma, space, doller sign, star, slash,... in their name? When I dump...
    4. Help. special characters in a text box
      Hey I've a big problem: I need to load in a textbox a long text saved in a ascii file. Everithing works BUT when among the text contains a...
    5. special characters in tagged text
      hello, i'm new to indesign (long time ventura user but couldn't stand stability issues no more) and i need some info about special characters...
  3. #2

    Default Re: Special Characters in a text box for a form

    Hi,

    Either they will have to enter ASCII codes or HTML character codes (like
    ™) or you can create set of buttons with JavaScript actions to insert
    the appropriate HTML. Here's a handy link:

    [url]http://www.geocities.com/dang65/bitsofcode/format.htm[/url]

    View source and you'll see a JavaScript sample that lets you do some things
    very similar to what you're wanting to do.

    -Ed

    --

    President
    Topsail Consulting - Web Design and Software Development
    [url]http://www.topsailconsulting.com[/url]

    "To give anything less than your best is to sacrifice the gift."
    - Steve Prefontaine, American distance runner



    "wolfpacker" <webforumsuser@macromedia.com> wrote in message
    news:bsv52j$f5m$1@forums.macromedia.com...
    > I am creating a page the deals with users entering information into a form
    which is then loaded to a database. no big deal.
    >
    > however, this often requires userse to enter special characters such as
    trademark (TM) symbols and greek symbols (for formulas).
    >
    > Any ideas as to how to handle this??
    >
    >
    >

    Ed Cottrell Guest

  4. #3

    Default Re: Special Characters in a text box for a form

    That appears to work only on IE Windows, Ed. It could be amended to be
    cross browser, though.
    Mick

    Ed Cottrell wrote:
    > Hi,
    >
    > Either they will have to enter ASCII codes or HTML character codes (like
    > &trade;) or you can create set of buttons with JavaScript actions to insert
    > the appropriate HTML. Here's a handy link:
    >
    > [url]http://www.geocities.com/dang65/bitsofcode/format.htm[/url]
    >
    > View source and you'll see a JavaScript sample that lets you do some things
    > very similar to what you're wanting to do.
    >
    > -Ed
    >
    mick_white Guest

  5. #4

    Default Re: Special Characters in a text box for a form

    You're right, Mick. A little Googling turned up nothing useful... I did find
    a number of folks who had begun and abandoned such projects, though... :)

    The only cross-browser solution I know works for sure is to only append the
    inserted info to the end of the area in Netscape. Better yet, use Flash -
    this is one of those areas for which Flash really is the better solution, if
    you really need it to work cross-browser.

    -Ed

    --

    President
    Topsail Consulting - Web Design and Software Development
    [url]http://www.topsailconsulting.com[/url]

    "To give anything less than your best is to sacrifice the gift."
    - Steve Prefontaine, American distance runner



    "mick_white" <mick@BOGUSgerrytimlin.com> wrote in message
    news:3FF5990E.6060504@BOGUSgerrytimlin.com...
    > That appears to work only on IE Windows, Ed. It could be amended to be
    > cross browser, though.
    > Mick
    >
    > Ed Cottrell wrote:
    > > Hi,
    > >
    > > Either they will have to enter ASCII codes or HTML character codes (like
    > > &trade;) or you can create set of buttons with JavaScript actions to
    insert
    > > the appropriate HTML. Here's a handy link:
    > >
    > > [url]http://www.geocities.com/dang65/bitsofcode/format.htm[/url]
    > >
    > > View source and you'll see a JavaScript sample that lets you do some
    things
    > > very similar to what you're wanting to do.
    > >
    > > -Ed
    > >
    >

    Ed Cottrell Guest

  6. #5

    Default Re: Special Characters in a text box for a form

    You should be able to do it in NN7, but I'm not sure how.

    document.getSelection() perhaps?
    You may have a problem with losing focus, though.
    Mick

    Ed Cottrell wrote:
    > You're right, Mick. A little Googling turned up nothing useful... I did find
    > a number of folks who had begun and abandoned such projects, though... :)
    >
    > The only cross-browser solution I know works for sure is to only append the
    > inserted info to the end of the area in Netscape. Better yet, use Flash -
    > this is one of those areas for which Flash really is the better solution, if
    > you really need it to work cross-browser.
    >
    > -Ed
    >
    mick_white Guest

  7. #6

    Default Re: Special Characters in a text box for a form

    What about just placing some of the most used chars on the page for a copy &
    paste? I realize this is not the most friendly way to to it, but it *is*
    cross browser compatible, and most people are familiar with it. The
    JavaScript solution of a click & insert would be ideal, tho.
    > >
    >

    gajett Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139