Readonly textbox with scroll

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • pv_kannan@yahoo.com

    Readonly textbox with scroll

    Hello,
    I am stuck with a problem trying to mimic the behavior of a Windows
    Forms Readonly textbox in HMTL/ASP.NET.

    Basically, I would like the text to be readonly and overflow the
    textbox (overflow attribute) with the user being able to scroll thru
    the text using the arrow keys within the textbox.

    I managed to get the readonly and the overflow part to work but cannot
    figure out a way to let the user place the cursor within the box and
    allow scrolling within a readonly textbox.

    Any help would be very appreciated....

    Thanks
    Kannan

  • Martin!

    #2
    Re: Readonly textbox with scroll

    pv_kannan@yahoo .com wrote:[color=blue]
    > Hello,
    > I am stuck with a problem trying to mimic the behavior of a Windows
    > Forms Readonly textbox in HMTL/ASP.NET.
    >
    > Basically, I would like the text to be readonly and overflow the
    > textbox (overflow attribute) with the user being able to scroll thru
    > the text using the arrow keys within the textbox.
    >
    > I managed to get the readonly and the overflow part to work but cannot
    > figure out a way to let the user place the cursor within the box and
    > allow scrolling within a readonly textbox.
    >
    > Any help would be very appreciated....
    >
    > Thanks
    > Kannan
    >[/color]


    css wont help you

    Comment

    • Eli Heifetz

      #3
      Re: Readonly textbox with scroll

      Hi,

      I think old good html will fit your needs:

      <div
      style="height:4 0px; width:40px; overflow-y:scroll; display:block;
      border: 1px solid black">
      aaaaa
      bbbbb
      ccccc
      ddddd
      eeeee
      fffff
      ggggg
      </div>

      Click inside and scroll with arrows...

      Comment

      • Arne

        #4
        Re: Readonly textbox with scroll

        Once upon a time *Eli Heifetz* wrote:[color=blue]
        > Hi,
        >
        > I think old good html will fit your needs:
        >[/color]

        Who's and what needs? Quote the part you are replying to, no more and
        no less!

        --
        /Arne

        Top posters will be ignored. Quote the part you
        are replying to, no more and no less! And don't
        quote signatures, thank you.

        Comment

        • mscir

          #5
          Re: Readonly textbox with scroll

          pv_kannan@yahoo .com wrote:
          [color=blue]
          > Hello,
          > I am stuck with a problem trying to mimic the behavior of a Windows
          > Forms Readonly textbox in HMTL/ASP.NET.
          > Basically, I would like the text to be readonly and overflow the
          > textbox (overflow attribute) with the user being able to scroll thru
          > the text using the arrow keys within the textbox.
          > I managed to get the readonly and the overflow part to work but cannot
          > figure out a way to let the user place the cursor within the box and
          > allow scrolling within a readonly textbox.
          > Any help would be very appreciated....
          > Thanks
          > Kannan[/color]

          This works in my IE 6, Netscape 7.2, Firefox 1.0.3:

          textarea{
          border: 2px solid brown;
          width: 300px;
          height: 200px;
          }

          <body>
          <textarea readonly="true" enabled="true">
          This is my textbox. This is my textbox. This is my textbox. This is my
          textbox.....
          </textarea>

          Comment

          • Zoe Brown

            #6
            Re: Readonly textbox with scroll


            <pv_kannan@yaho o.com> wrote in message
            news:1114458055 .469959.77130@z 14g2000cwz.goog legroups.com...[color=blue]
            > Hello,
            > I am stuck with a problem trying to mimic the behavior of a Windows
            > Forms Readonly textbox in HMTL/ASP.NET.[/color]

            why do you need to mimic it ?


            Comment

            Working...