<textarea> bug????

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

    <textarea> bug????

    Simple vbscript,html page loading into access.
    Input pg posting to Confirm pg, then sending to access.

    when using;

    <textarea name="name" tabindex="15">
    </textarea>

    as an input renders tab spaces automatically.

    I took out <Div> tags, and tried nowrap, and tried
    reformatting data before sending to dbase (CStr, Trim),
    with no answer to alleviate this problem.

    Any suggestions????


  • Curt_C [MVP]

    #2
    Re: &lt;textarea&gt ; bug????

    I'm confused.... are you trying to KEEP or REMOVE the tab spaces?


    --
    ----------------------------------------------------------
    Curt Christianson (Software_AT_Da rkfalz.Com)
    Owner/Lead Designer, DF-Software

    ---------------------------------------------------------
    ...Offering free scripts & code snippits for everyone...
    ---------------------------------------------------------

    "Matt" <mbell11@yahoo. com> wrote in message
    news:068401c350 cf$0be22c10$a50 1280a@phx.gbl.. .[color=blue]
    > Simple vbscript,html page loading into access.
    > Input pg posting to Confirm pg, then sending to access.
    >
    > when using;
    >
    > <textarea name="name" tabindex="15">
    > </textarea>
    >
    > as an input renders tab spaces automatically.
    >
    > I took out <Div> tags, and tried nowrap, and tried
    > reformatting data before sending to dbase (CStr, Trim),
    > with no answer to alleviate this problem.
    >
    > Any suggestions????
    >
    >[/color]


    Comment

    • Aaron Bertrand [MVP]

      #3
      Re: &lt;textarea&gt ; bug????

      I don't understand. Your tabs are disappearing? When? When you later
      present the data in HTML? That's because a tab in a textarea is not HTML...
      and HTML doesn't recognize a tab. You will need to replace for presentation
      in a web page, something along the lines of:

      txt = rs("txt")
      response.write replace(txt, chr(9), "&nbsp;&nbsp;&n bsp;&nbsp;")




      "Matt" <mbell11@yahoo. com> wrote in message
      news:068401c350 cf$0be22c10$a50 1280a@phx.gbl.. .[color=blue]
      > Simple vbscript,html page loading into access.
      > Input pg posting to Confirm pg, then sending to access.
      >
      > when using;
      >
      > <textarea name="name" tabindex="15">
      > </textarea>
      >
      > as an input renders tab spaces automatically.
      >
      > I took out <Div> tags, and tried nowrap, and tried
      > reformatting data before sending to dbase (CStr, Trim),
      > with no answer to alleviate this problem.
      >
      > Any suggestions????
      >
      >[/color]


      Comment

      • matt

        #4
        Re: &lt;textarea&gt ; bug????

        The tabs are automatically in textarea when I try to enter
        data into it. Also each time I display the textarea more
        tabs are automatically entered into it. The dbase shows
        square blocks - 2 before and 2 after the data, whether I
        have the field as text or memo.

        I am trying to rid the textarea of the tabs, or whatever
        the squareblocks are.
        [color=blue]
        >-----Original Message-----
        >I don't understand. Your tabs are disappearing? When?[/color]
        When you later[color=blue]
        >present the data in HTML? That's because a tab in a[/color]
        textarea is not HTML...[color=blue]
        >and HTML doesn't recognize a tab. You will need to[/color]
        replace for presentation[color=blue]
        >in a web page, something along the lines of:
        >
        >txt = rs("txt")
        >response.wri te replace(txt, chr(9), " ")
        >
        >
        >
        >
        >"Matt" <mbell11@yahoo. com> wrote in message
        >news:068401c35 0cf$0be22c10$a5 01280a@phx.gbl. ..[color=green]
        >> Simple vbscript,html page loading into access.
        >> Input pg posting to Confirm pg, then sending to access.
        >>
        >> when using;
        >>
        >> <textarea name="name" tabindex="15">
        >>[/color][/color]

        Comment

        • matt

          #5
          Re: &lt;textarea&gt ; bug????

          Remove.

          The tabs are automatically in textarea when I try to enter
          data into it. Also each time I display the textarea more
          tabs are automatically entered into it. The dbase shows
          square blocks - 2 before and 2 after the data, whether I
          have the field as text or memo.

          I am trying to rid the textarea of the tabs, or whatever
          the squareblocks are.


          [color=blue]
          >-----Original Message-----
          >I'm confused.... are you trying to KEEP or REMOVE the tab[/color]
          spaces?[color=blue]
          >
          >
          >--
          >----------------------------------------------------------
          >Curt Christianson (Software_AT_Da rkfalz.Com)
          >Owner/Lead Designer, DF-Software
          >http://www.Darkfalz.com
          >---------------------------------------------------------
          >...Offering free scripts & code snippits for everyone...
          >---------------------------------------------------------
          >
          >"Matt" <mbell11@yahoo. com> wrote in message
          >news:068401c35 0cf$0be22c10$a5 01280a@phx.gbl. ..[color=green]
          >> Simple vbscript,html page loading into access.
          >> Input pg posting to Confirm pg, then sending to access.
          >>
          >> when using;
          >>
          >> <textarea name="name" tabindex="15">
          >>[/color][/color]

          Comment

          • matt

            #6
            Re: &lt;textarea&gt ; bug????

            All fixed - thanks for help.

            <textarea>
            </textarea>

            does not work - picking up Cr

            <textarea></textarea> does

            [color=blue]
            >-----Original Message-----
            >I don't understand. Your tabs are disappearing? When?[/color]
            When you later[color=blue]
            >present the data in HTML? That's because a tab in a[/color]
            textarea is not HTML...[color=blue]
            >and HTML doesn't recognize a tab. You will need to[/color]
            replace for presentation[color=blue]
            >in a web page, something along the lines of:
            >
            >txt = rs("txt")
            >response.wri te replace(txt, chr(9), " ")
            >
            >
            >
            >
            >"Matt" <mbell11@yahoo. com> wrote in message
            >news:068401c35 0cf$0be22c10$a5 01280a@phx.gbl. ..[color=green]
            >> Simple vbscript,html page loading into access.
            >> Input pg posting to Confirm pg, then sending to access.
            >>
            >> when using;
            >>
            >> <textarea name="name" tabindex="15">
            >>[/color][/color]

            Comment

            Working...