Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: Why is validation making me work harder?

  1. #1
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default Why is validation making me work harder?

    So I want a text link on my page. I also want it to open a new window instead of covering up my lovely site. Used to, you could use target="_blank" and all was dandy.

    You still can, as it works everywhere.

    But if you try to validate.. NO-NO! Says "they"!

    Why not? Now to open an external link in a new window I have to write a new excerpt for the "rel" attribute, and then 7 lines of JS for it to work? Just to validate?

    C'mon! There IS an easier, valid way, isn't there?
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    I don't *think* that's invalid. It might be something else in the code near it which doesn't allow that.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  3. #3
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    Nope, the target attribute is not XHTML or HTML4.01 strict valid any longer...
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  4. #4
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    C'mon! There IS an easier, valid way, isn't there?
    Of course there is:
    Code:
    <a href="somepage.html" onclick="return !open(this.href);">
    However, the target attribute was removed because they believe you should leave it up to the user which links open where, a sentiment with which I happen to agree.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  5. #5
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    I hate validation like this.

    You get around it using Javascript which may not work, but using the target attribute will.

    People may abuse the target attribute, and I hate them for it, because that means that now I can't, if I have good reason.

    It's ridiculous to not have a target="_blank" option. Forcing the same window or dealing with frames may be not needed, but opening in a new window is a very important function of many pages.

    A page with a form that you filled out.... click a link... oops, now it all went away so you can read the FAQ first, etc.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  6. #6
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    Thanks Twey for the insight, I knew there had to be something.

    I know of the reason, but really, how many people out there really know what is best for their browsing experience.

    Not only is it a marketing technique, it is also the web designers point. You come to my site to look at cars to buy, I have 4 you are interested in, and I have contact info for the sellers, (or whatever) open the contact in a new window/page or the user forgets which one he is currently calling about.

    I have external links to DD and Twey's site, but I don't want you to get lost over there and never find my site again. You go to Twey's site for a minute and you are 40 pages in. OKay, had my eyeful, now where was that riddle site? Back button, back button, back button... OR... close the window Twey's site was in.
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  7. #7
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    When you change sites, it's nice if it opens in a new window. For example, browsing a forum and clicking a link. This is especially true on a connection that may take some time to reload.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  8. #8
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    I have external links to DD and Twey's site, but I don't want you to get lost over there and never find my site again.
    So middle-click/control-click/alt-click/whatever-click it so it opens in a new window/tab.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  9. #9
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    or... just click.
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  10. #10
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Many users don't know to do that, and I sometimes don't because I expect the site has it setup like that, only to find I've just lost the form I was willing in, etc.
    I've started doing it habitually myself now, because you can't really trust sites to do it...
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

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
  •