HOW DO I LOAD AND DISPLAY FORMATTED HTML IN TEXTAREA

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Richard

    HOW DO I LOAD AND DISPLAY FORMATTED HTML IN TEXTAREA

    I am filling a TEXTAREA with text and links from a database. I need to
    display the <a href....> code in the TEXTAREA as a clickable link with
    _blank targetting.

    I realise I could simply use a TD but a closed table design and
    limited space require me to scroll the data loaded from the database.

    I need to avoid LAYERS for the sake of cross browser compatability
    (some 3rd world users) so would really like to stick to the TEXTAREA.

    Is there a way to manipulate a TEXTAREA using JAVASCRIPT to reach the
    results I want??

    Thanks to anyone with constructive ideas.....:-)
  • kaeli

    #2
    Re: HOW DO I LOAD AND DISPLAY FORMATTED HTML IN TEXTAREA

    In article <be39f0a3.03101 50444.df683e6@p osting.google.c om>,
    richardtinkler@ yahoo.com enlightened us with...[color=blue]
    > I am filling a TEXTAREA with text and links from a database. I need to
    > display the <a href....> code in the TEXTAREA as a clickable link with
    > _blank targetting.
    >[/color]

    As far as I know, that isn't possible.

    Any reason an IFRAME won't do as you require?


    -------------------------------------------------
    ~kaeli~
    Jesus saves, Allah protects, and Cthulhu
    thinks you'd make a nice sandwich.


    -------------------------------------------------

    Comment

    • Lasse Reichstein Nielsen

      #3
      Re: HOW DO I LOAD AND DISPLAY FORMATTED HTML IN TEXTAREA

      richardtinkler@ yahoo.com (Richard) writes:
      [color=blue]
      > I am filling a TEXTAREA with text and links from a database. I need to
      > display the <a href....> code in the TEXTAREA as a clickable link with
      > _blank targetting.[/color]

      Don't use a textarea then. Textareas contain only unformatted text.
      [color=blue]
      > I realise I could simply use a TD but a closed table design and
      > limited space require me to scroll the data loaded from the database.[/color]

      The put a scrollbar on your td.
      <td style="height:4 00px;overflow:a uto;">Big Bad Content</td>
      [color=blue]
      > I need to avoid LAYERS for the sake of cross browser compatability
      > (some 3rd world users)[/color]

      The word "layer" has so many meanings in HTML that it should be avoided.
      I would have assumed that you meant the Netscape 4 tag <layer>, but then
      3rd world users would be *more* likely to support it, so you must mean
      something else.

      That blows away the overflow:auto idea though, since that requres a
      moder browser.
      [color=blue]
      > so would really like to stick to the TEXTAREA.[/color]

      All you want from the textarea is the scrolling. If you want formatted
      content, you must use something else and make it scroll.
      [color=blue]
      > Is there a way to manipulate a TEXTAREA using JAVASCRIPT to reach the
      > results I want??[/color]

      No.

      If you want to support as different browsers as Netscape 4 and
      Netscape 7 (two completely unrelated browsers) and IE, you will
      probably have to go for a combination of solutions. Use a <layer> (or
      a positioned div) for Netscape 4, and use modern techniques for modern
      browsers, and then use Javascript to make sure only one solution is
      in effect at a time.

      /L
      --
      Lasse Reichstein Nielsen - lrn@hotpop.com
      Art D'HTML: <URL:http://www.infimum.dk/HTML/randomArtSplit. html>
      'Faith without judgement merely degrades the spirit divine.'

      Comment

      • Drew McLellan

        #4
        Re: HOW DO I LOAD AND DISPLAY FORMATTED HTML IN TEXTAREA

        Richard wrote:
        [color=blue]
        > I realise I could simply use a TD but a closed table design and
        > limited space require me to scroll the data loaded from the database.
        >
        > I need to avoid LAYERS for the sake of cross browser compatability
        > (some 3rd world users)[/color]

        It would appear that your page design does not fit your functional
        requirements. The only satisfactory solution is going to be to address
        the page design, imho.


        drew mclellan

        Comment

        • Markus Ernst

          #5
          Re: HOW DO I LOAD AND DISPLAY FORMATTED HTML IN TEXTAREA

          "Richard" <richardtinkler @yahoo.com> schrieb im Newsbeitrag
          news:be39f0a3.0 310150444.df683 e6@posting.goog le.com...[color=blue]
          > I am filling a TEXTAREA with text and links from a database. I need to
          > display the <a href....> code in the TEXTAREA as a clickable link with
          > _blank targetting.
          >
          > I realise I could simply use a TD but a closed table design and
          > limited space require me to scroll the data loaded from the database.
          >
          > I need to avoid LAYERS for the sake of cross browser compatability
          > (some 3rd world users) so would really like to stick to the TEXTAREA.
          >
          > Is there a way to manipulate a TEXTAREA using JAVASCRIPT to reach the
          > results I want??
          >
          > Thanks to anyone with constructive ideas.....:-)[/color]

          I think you will have to use a frameset for what you want to do.

          --
          Markus


          Comment

          • Richard

            #6
            Re: HOW DO I LOAD AND DISPLAY FORMATTED HTML IN TEXTAREA

            Thanks everybody for your help.....It looks as though I'll have to use
            a combination of solutions to satisfy the ancient browser problem.

            All the best, R

            Comment

            Working...