SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    ALT.NET - because we need it silver trophybronze trophy dhtmlgod's Avatar
    Join Date
    Jul 2001
    Location
    Scotland
    Posts
    4,836
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Accessing textarea wrap property...

    hmm... been a looooooong time since I did any dhtml or javascript, but I need to change the wrap property of a text area dynamically. Is it possible?


  2. #2
    SitePoint Guru siphilp's Avatar
    Join Date
    Nov 2001
    Location
    Fife, Scotland
    Posts
    663
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Is it not something like
    <textarea
    [WRAP = off|virtual|physical]></textarea>????

    Si
    Last edited by siphilp; Jan 29, 2002 at 08:45.

  3. #3
    SitePoint Guru Vincent Puglia's Avatar
    Join Date
    Feb 2000
    Location
    where the World once stood
    Posts
    700
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi,

    According to this:

    <form name="b">
    <textarea name='a' wrap='off'> </textarea>
    </form>
    <script>
    for (i in document.b.a)
    alert(i + ' ' + document.b.a[i])
    document.b.a.wrap = 'virtual'
    alert(document.b.a.wrap)
    </script>

    it appears
    1) NN4 will change the value
    2) IE will complain on
    document.b.a.wrap = 'virtual'
    changing it to:
    document.b.a.wrap.value = 'virtual'
    causes no complaint, but doesn't change anything

    Vinny
    Where the World Once Stood
    the blades of grass
    cut me still


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
  •