Results 1 to 5 of 5

Thread: How to dynamically enter text in HTML?

  1. #1
    Join Date
    Apr 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default How to dynamically enter text in HTML?

    How can I type text dynamically inside the body of my html document without using elements such as textarea? I basically like to show where the cursor is and let users just type and format text. Something like what you can do in Google Docs.

    Thanks,

    -J

  2. #2
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    Google Docs is a very sophisticated application. Its a bit naive to attempt to replicate and probably not necessary for the functionality you need.

    Just use a textarea and use CSS to make it invisible - remove border, background, etc... No one will be the wiser.

  3. #3
    Join Date
    Apr 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    My problem with using TextArea is I need to put text with html tags in it and want the text to be processed as it happens if I put it in the body of the html document. If I do this using TextArea, it does not process it.

    What do you recommend I do?

    Thanks for your help,

    -J

  4. #4
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    That's a paradox:
    You want people to type in code.
    You want people to see the results.

    If you're trying to create a WYSIWYG editor, you can look at a couple scripts available on the site (search for OpenWYSIWYG for example).

    But this is very complex and there are a few ways to work around it, but nothing too easy.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  5. #5
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    Do you mean something like this? or this?

Bookmarks

Posting Permissions

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