Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 11 of 11

Thread: Textarea in NS7

  1. #1
    Regular Coder
    Join Date
    Jul 2002
    Location
    USA
    Posts
    151
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Textarea in NS7

    How do you make sure your textarea tags are closed in NS7? I'm closing it with </textarea>, but it doesn't work.

  • #2
    Senior Coder joh6nn's Avatar
    Join Date
    Jun 2002
    Location
    72 W. 48' 57" , 41 N. 32' 04"
    Posts
    1,887
    Thanks
    0
    Thanked 1 Time in 1 Post
    ...

    if it's not working, then there's another problem. can we see the code?
    bluemood | devedge | devmo | MS Dev Library | WebMonkey | the Guide

    i am a loser geek, crazy with an evil streak,
    yes i do believe there is a violent thing inside of me.

  • #3
    Regular Coder
    Join Date
    Jul 2002
    Location
    USA
    Posts
    151
    Thanks
    0
    Thanked 0 Times in 0 Posts

  • #4
    Regular Coder
    Join Date
    Jun 2002
    Posts
    166
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Looks like some sort of a bug with Netscape 7 ??

    <form><textarea rows="5" cols="70"><i</textarea></form>
    will do the same, but a space between the < and the i will close the textarea.

    In Algorithm's case, a space at the same location, i < a or right before the end textarea tag will close the textarea.

  • #5
    jkd
    jkd is offline
    Senior Coder jkd's Avatar
    Join Date
    May 2002
    Location
    metro DC
    Posts
    3,163
    Thanks
    1
    Thanked 18 Times in 18 Posts
    Looks fine in the 1.2 branch of Mozilla, and I highly doubt the 1.0 branch has this problem. Could you post a screenshot?

  • #6
    Regular Coder
    Join Date
    Jun 2002
    Posts
    166
    Thanks
    0
    Thanked 0 Times in 0 Posts



  • #7
    Regular Coder
    Join Date
    Jun 2002
    Location
    Ames, IA, USA
    Posts
    373
    Thanks
    0
    Thanked 0 Times in 0 Posts
    How about trying this:
    Code:
    <form><textarea rows="5" cols="70" value="&lt;i"></textarea></form>
    Need more emoticons?
    Visit Catman's Private Stock

  • #8
    Regular Coder
    Join Date
    Jun 2002
    Posts
    166
    Thanks
    0
    Thanked 0 Times in 0 Posts
    A solution yes, but entities shouldn't be necessary in a textarea.
    Wouldn't you say?

  • #9
    Regular Coder
    Join Date
    Jun 2002
    Posts
    185
    Thanks
    0
    Thanked 0 Times in 0 Posts
    The &lt; entity is required simply so that the browser doesn't have to consider context when parsing the document. So when it sees a < character, it can assume it's the start of new tag.

  • #10
    Regular Coder
    Join Date
    Jul 2002
    Location
    USA
    Posts
    151
    Thanks
    0
    Thanked 0 Times in 0 Posts
    This may not be feasible, but I'd prefer to have a solution that wouldn't require character substitutions. Right now, I'm using SSI to import the JS file directly into the textarea.

  • #11
    Senior Coder joh6nn's Avatar
    Join Date
    Jun 2002
    Location
    72 W. 48' 57" , 41 N. 32' 04"
    Posts
    1,887
    Thanks
    0
    Thanked 1 Time in 1 Post
    <script>
    document.formname.textarea.value = "i\<etc.";
    <script>

    ?
    bluemood | devedge | devmo | MS Dev Library | WebMonkey | the Guide

    i am a loser geek, crazy with an evil streak,
    yes i do believe there is a violent thing inside of me.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •