Results 1 to 3 of 3

Thread: dynamic ajax text area problem...

  1. #1
    Join Date
    May 2008
    Posts
    144
    Thanks
    6
    Thanked 11 Times in 11 Posts

    Default dynamic ajax text area problem...

    ok, right now i have a content management page with a dropdown to select the page in which youd like to edit content. there are three input fields below that, a textbox input for the title tags, a textarea input for the meta description and a textarea input for the actual page content.
    the text area containing the page content is also supposed to accept HTML formatting... i did some preliminary testing with like this and checked to see how it would show up in various browsers:
    Code:
    <textarea><p>my <b>test</b> text</p></textarea>
    this all showed up just how i wanted it, with "<p>my <b>test</b> text</p>" in the textarea input. when i put this theory into practice with some ajax magic, it works in FF & IE8, but in chrome and IE6, it malfunctions and displays nothing in the page content textarea input... any ideas?

  2. #2
    Join Date
    Sep 2009
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Send more code please

    The insertion works for me
    Code:
    <head>
        <script>
            function ChangeAreaContent () {
                var textarea = document.getElementById ("textarea");
                textarea.value = "<p>my <b>test</b> text</p>";
            }
        </script>
    </head>
    <body>
        <button onclick="ChangeAreaContent ()">Put text into textarea</button>
        <textarea id="textarea">qweqweqweqwe</textarea>
    </body>

  3. #3
    Join Date
    May 2008
    Posts
    144
    Thanks
    6
    Thanked 11 Times in 11 Posts

    Default

    i gave up... iit was only causing a problem if i tried to do it with AJAX, i jst rewrote the pages

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
  •