Results 1 to 9 of 9

Thread: Label Tags

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 2001
    Posts
    150

    Label Tags

    Hi all,

    I am using label tags to put the focus in a textbox while pressing on the text between the label tag

    Like this:

    <code>
    <LABEL for="name">Name:</LABEL>
    <INPUT TYPE="text" id="name">
    </code>

    So in IE when i press on Name:, it put the focus in the textBox.

    It just doesn't take effect in Netscape

    Does anybody knows if we have to do something different in order to do that with Netscape

    Thanks

  2. #2
    Frenzied Member Mark Sreeves's Avatar
    Join Date
    Nov 1999
    Location
    UK
    Posts
    1,845
    What version of Netscape are you using?
    I've never used labels but they should work with Netscape 6+
    Mark
    -------------------

  3. #3
    Fanatic Member punkpie_uk's Avatar
    Join Date
    Sep 2001
    Location
    UK
    Posts
    645
    Try what I suggested for you in the ASP forum
    SPREAD THE WORD!!! Are You Lee McCormick? Because I Am



    Lee M McCormick
    [email protected]

    Lee McCormick.com - Live
    Dynamically Webbed.com - In development but live

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Oct 2001
    Posts
    150
    No it is not kicking in

    4.6

    So it must not support the label tags

    If you come up with an idea, please let me know

    Thanks

  5. #5
    Frenzied Member Mark Sreeves's Avatar
    Join Date
    Nov 1999
    Location
    UK
    Posts
    1,845
    Why do you need labels anyway?

    They look a bit pointless to me
    Mark
    -------------------

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    Oct 2001
    Posts
    150
    We need to use the label.

    If we click on the text between the label tag it will put the focus in the textBox associated with that particular text

    I need to do that. IE supports it well

    Do you know another way i can do that

    Thanks

  7. #7
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    Originally posted by Mark Sreeves
    Why do you need labels anyway?

    They look a bit pointless to me
    They make sense for the logical meaning of their content - a label for a form element, rather than a paragraph or a heading, etc. Should be better for CSS and seperating content from presentation, and making the content mean something besides being an arbitrary bunch of spans and divs.
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

  8. #8
    Frenzied Member Mark Sreeves's Avatar
    Join Date
    Nov 1999
    Location
    UK
    Posts
    1,845
    Originally posted by buster


    4.6


    Why are you developing for such an old browser?
    Mark
    -------------------

  9. #9
    Fanatic Member punkpie_uk's Avatar
    Join Date
    Sep 2001
    Location
    UK
    Posts
    645
    The label tag is only supported in NN 6+ (6.2, I beleive) according to some documentation I read a while back.

    I think this is your problem.
    SPREAD THE WORD!!! Are You Lee McCormick? Because I Am



    Lee M McCormick
    [email protected]

    Lee McCormick.com - Live
    Dynamically Webbed.com - In development but live

Posting Permissions

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



Click Here to Expand Forum to Full Width