Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 20th, 2005, 06:48 PM
St. Rechsteiner
Guest
 
Posts: n/a
Default target="_blank" with xHTML

Hi

How i made the same effect in xHTML like the - target="_blank" - Tag
in HTML 4.01?

I will use it with xHTML and CSS ... but the validator say's to me,
that this tag wasn't valid for xHTML! ... Why? Is there no "same
effect"-Tag in xHTML?

Thx for answers!
  #2  
Old July 20th, 2005, 06:48 PM
Matthias Gutfeldt
Guest
 
Posts: n/a
Default Re: target="_blank" with xHTML

St. Rechsteiner wrote:[color=blue]
> Hi
>
> How i made the same effect in xHTML like the - target="_blank" - Tag
> in HTML 4.01?[/color]

You don't. Use HTML4.01 if you need _blank.


Matthias

  #3  
Old July 20th, 2005, 06:48 PM
Spartanicus
Guest
 
Posts: n/a
Default Re: target="_blank" with xHTML

schule@macprime.ch (St. Rechsteiner) wrote:
[color=blue]
>target="_blank"[/color]

Stop trying to mess with a user's UI.
[color=blue]
>Tag[/color]

Attribute

--
Spartanicus
  #4  
Old July 20th, 2005, 06:48 PM
Owen Jacobson
Guest
 
Posts: n/a
Default Re: target="_blank" with xHTML

On Tue, 24 Feb 2004 08:37:55 +0100, Matthias Gutfeldt wrote:
[color=blue]
> St. Rechsteiner wrote:[color=green]
>> How i made the same effect in xHTML like the - target="_blank" - Tag
>> in HTML 4.01?[/color]
>
> You don't. Use HTML4.01 if you need _blank.[/color]

You misspelled "a transitional DOCTYPE". HTH, etc. Or, possibly, you
misspelled "don't".

--
Some say the Wired doesn't have political borders like the real world,
but there are far too many nonsense-spouting anarchists or idiots who
think that pranks are a revolution.

  #5  
Old July 20th, 2005, 06:48 PM
Kris
Guest
 
Posts: n/a
Default Re: target="_blank" with xHTML

In article <897f80d9.0402232318.65a72a06@posting.google.com >,
schule@macprime.ch (St. Rechsteiner) wrote:
[color=blue]
> How i made the same effect in xHTML like the - target="_blank" - Tag
> in HTML 4.01?[/color]

Attribute. It is allowed in XHTML1.0 Transitional. Author that if you
cannot let go of this 'demon from the old world'. Others will undoubtly
state why it is what it is.
[color=blue]
> I will use it with xHTML and CSS ...[/color]

If you 'will', then there is not much sense trying to convert you, sadly.
[color=blue]
> but the validator say's to me,
> that this tag wasn't valid for xHTML! ... Why? Is there no "same
> effect"-Tag in xHTML?[/color]

There are no effect tags in HTML. They were deprecated when the Flash
standard came out.

--
Kris
<kristiaan@xs4all.netherlands> (nl)
<http://www.cinnamon.nl/>
  #6  
Old July 20th, 2005, 06:48 PM
Steve Pugh
Guest
 
Posts: n/a
Default Re: target="_blank" with xHTML

schule@macprime.ch (St. Rechsteiner) wrote:
[color=blue]
>How i made the same effect in xHTML like the - target="_blank" - Tag[/color]

It's an attribute, not a tag.
[color=blue]
>in HTML 4.01?[/color]

The same way you do in HTML 4.01.

XHTML 1.0 and HTML 4.01 are identical - in both of them the target
attribute exists only in the Transitional forms.

So I'm guessing that you're jumping from HTML 4.01 Transitional to
XHTML 1.0 Strict. Any reason why?
[color=blue]
>I will use it with xHTML and CSS ... but the validator say's to me,
>that this tag wasn't valid for xHTML! ... Why?[/color]

Same reason that it's not in HTML 4.01 - anything to do with opening
new windows or frames is against the spirit of the Strict versions of
(X)HTML.

So in order of preference:
1. Stop trying to force a new window on your users, if they want a new
window they can open one themselves
2. Use a Transitional DTD instead
3. Use JavaScript

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <steve@pugh.net> <http://steve.pugh.net/>
  #7  
Old July 20th, 2005, 06:49 PM
Karl Core
Guest
 
Posts: n/a
Default Re: target="_blank" with xHTML

"St. Rechsteiner" <schule@macprime.ch> wrote in message
news:897f80d9.0402232318.65a72a06@posting.google.c om...[color=blue]
> Hi
>
> How i made the same effect in xHTML like the - target="_blank" - Tag
> in HTML 4.01?
>[/color]

Why? You wanna create a site that confuses your visitors?

From a usability study by Stanford University - "Users became reliably
confused when links opened new windows"


--

Karl Groves
http://www.karlcore.com


  #8  
Old July 20th, 2005, 06:49 PM
Matthias Gutfeldt
Guest
 
Posts: n/a
Default Re: target="_blank" with xHTML

Owen Jacobson wrote:[color=blue]
> On Tue, 24 Feb 2004 08:37:55 +0100, Matthias Gutfeldt wrote:
>
>[color=green]
>>St. Rechsteiner wrote:
>>[color=darkred]
>>>How i made the same effect in xHTML like the - target="_blank" - Tag
>>>in HTML 4.01?[/color]
>>
>>You don't. Use HTML4.01 if you need _blank.[/color]
>
>
> You misspelled "a transitional DOCTYPE". HTH, etc. Or, possibly, you
> misspelled "don't".[/color]

Err, nope, I didn't misspell anything. I just didn't quite think it through.


Matthias

  #9  
Old July 20th, 2005, 06:49 PM
Alan J. Flavell
Guest
 
Posts: n/a
Default Re: target="_blank" with xHTML

On Tue, 24 Feb 2004, Spartanicus wrote:
[color=blue]
> schule@macprime.ch (St. Rechsteiner) wrote:
>[color=green]
> >target="_blank"[/color]
>
> Stop trying to mess with a user's UI.
>[color=green]
> >Tag[/color]
>
> Attribute[/color]

http://www.flightlab.com/~joe/sgml/faq-not.txt part 5. SCNR.

  #10  
Old July 20th, 2005, 06:49 PM
Spartanicus
Guest
 
Posts: n/a
Default Re: target="_blank" with xHTML

"Alan J. Flavell" <flavell@ph.gla.ac.uk> wrote:
[color=blue][color=green][color=darkred]
>> >Tag[/color]
>>
>> Attribute[/color]
>
>http://www.flightlab.com/~joe/sgml/faq-not.txt part 5. SCNR.[/color]

:)

--
Spartanicus
  #11  
Old July 20th, 2005, 06:49 PM
Andrew Thompson
Guest
 
Posts: n/a
Default Re: target="_blank" with xHTML

Karl Core wrote:[color=blue]
> "St. Rechsteiner" ...[/color]
....[color=blue][color=green]
>> How i made the same effect in xHTML like the - target="_blank" - Tag
>> in HTML 4.01?[/color][/color]
....[color=blue]
> Why? You wanna create a site that confuses your visitors?
>
> From a usability study by Stanford University - "Users became reliably
> confused when links opened new windows"[/color]

You got a link for that Karl?

I got curious after hearing it for the umpteenth
time and went searching. I found this..
http://www-nlp.stanford.edu/~manning...h-allc2000.doc

While this document mentions useability
and (separately) 'Windows' and 'confuse',
it does not have that exact quote, or
anything I could see that might mean the
same..

( I am in the process of stripping frames and
other such usability barriers from my sites, it
would just be nice to be able to point to a
study that actually supports the expenditure
of effort. And to point others to. )

--
Andrew Thompson
* http://www.PhySci.org/ Open-source software suite
* http://www.PhySci.org/codes/ Web & IT Help
* http://www.1point1C.org/ Science & Technology


  #12  
Old July 20th, 2005, 06:49 PM
Martin Doering
Guest
 
Posts: n/a
Default Re: target="_blank" with xHTML

On Tue, 24 Feb 2004 08:53:00 +0000, Spartanicus <me@privacy.net>
wrote:
[color=blue]
>schule@macprime.ch (St. Rechsteiner) wrote:
>[color=green]
>>target="_blank"[/color]
>
>Stop trying to mess with a user's UI.[/color]

To open a second window can be of much use. I am using it to open a
help for the actual running web application. I don't want to destroy
the original form, while using the help.

--
Martin
  #13  
Old July 20th, 2005, 06:49 PM
Spartanicus
Guest
 
Posts: n/a
Default Re: target="_blank" with xHTML

Martin Doering <doeringm@gmx.de> wrote:
[color=blue][color=green][color=darkred]
>>>target="_blank"[/color]
>>
>>Stop trying to mess with a user's UI.[/color]
>
>To open a second window can be of much use. I am using it to open a
>help for the actual running web application. I don't want to destroy
>the original form, while using the help.[/color]

1) It's not about what you want, or what you think a user wants, users
are perfectly capable of making these decisions themselves. Opening new
windows is part of the browser's UI, it's not for authors to attempt to
mess with a UA's UI.
2) target="_blank" does not open a popup (typically smaller than the
original window) that appears on top of the existing window, it opens a
new window that usually will cover the original window completely.

--
Spartanicus
  #14  
Old July 20th, 2005, 06:49 PM
Beauregard T. Shagnasty
Guest
 
Posts: n/a
Default Re: target="_blank" with xHTML

Quoth the raven named Martin Doering:
[color=blue]
> On Tue, 24 Feb 2004 08:53:00 +0000, Spartanicus <me@privacy.net>
> wrote:
>[color=green]
>> schule@macprime.ch (St. Rechsteiner) wrote:
>>[color=darkred]
>>> target="_blank"[/color]
>>
>> Stop trying to mess with a user's UI.[/color]
>
> To open a second window can be of much use. I am using it to open a
> help for the actual running web application. I don't want to
> destroy the original form, while using the help.[/color]

The main problem with opening new windows occurs with visitors who
have small monitors and low resolution who tend to surf with the
browser maximized.

Your new window will completely overlay the original window containing
the form. It will also not have a functioning Back button. The
visitor doesn't realize there is a new window, and can't see the
original. So... they will probably just type some other URL, or go
back to their search engine. They will probably only discover your
original window when they decide to end their surfing session.

--
-bts
-This space intentionally left blank.
  #15  
Old July 20th, 2005, 06:49 PM
DU
Guest
 
Posts: n/a
Default Re: target="_blank" with xHTML

Martin Doering wrote:
[color=blue]
> On Tue, 24 Feb 2004 08:53:00 +0000, Spartanicus <me@privacy.net>
> wrote:
>
>[color=green]
>>schule@macprime.ch (St. Rechsteiner) wrote:
>>
>>[color=darkred]
>>>target="_blank"[/color]
>>
>>Stop trying to mess with a user's UI.[/color]
>
>
> To open a second window can be of much use. I am using it to open a
> help for the actual running web application. I don't want to destroy
> the original form, while using the help.
>
> --
> Martin[/color]

Then at the very least follow the WAI recommendations on this by coding
the title attribute and by adding an icon clearly notifying the user
that clicking the link will open the referenced resource in a new,
separate window.
Don't interfere with users who will want to open such referenced
resource in a tab or in the same window. Let the users be in control of
the way such link can open the referenced resource. Users already have
all the settings, prefs, contextmenu commands to do such choice.

You can propose a scenario (open in a new window, reusable or not,
recyclable or not) but you should not force it by interfering with other
possible ways which may better fit the user.

DU
  #16  
Old July 20th, 2005, 06:49 PM
DU
Guest
 
Posts: n/a
Default Re: target="_blank" with xHTML

Spartanicus wrote:
[color=blue]
> Martin Doering <doeringm@gmx.de> wrote:
>
>[color=green][color=darkred]
>>>>target="_blank"
>>>
>>>Stop trying to mess with a user's UI.[/color]
>>
>>To open a second window can be of much use. I am using it to open a
>>help for the actual running web application. I don't want to destroy
>>the original form, while using the help.[/color]
>
>
> 1) It's not about what you want, or what you think a user wants, users
> are perfectly capable of making these decisions themselves. Opening new
> windows is part of the browser's UI, it's not for authors to attempt to
> mess with a UA's UI.[/color]

You can still code the opening of a new window, then make it clear to
the user that clicking the link will open a new window (or it will
re-use an already opened popup). From there, the user can still choose
to open the referenced resource in the same window or in a tab (in the
background or not) or even in an unnamed (un-reusable, un-recyclable)
separate window (in the background or not). I'm for an approach that
informs in advance the user of a proposed scenario for a link and an
approach that does not interfere with his UI prefs/contextmenu commands.
[color=blue]
> 2) target="_blank" does not open a popup (typically smaller than the
> original window) that appears on top of the existing window,[/color]

A popup (opened with window.open())is not typically smaller than the
original window. A popup can be any size actually.

it opens a[color=blue]
> new window that usually will cover the original window completely.
>[/color]

Usually, yes. In fact, a secondary window opened thanks to
target="_blank" will be the same size as its parent/opener; its position
will be offset 15 pixels to its bottom and 15 pixels to its right so
that when it pops up, the user has better chances to notice its creation.
So, usually, yes because users with small, medium scr. size will have
their browser window maximized.
When the user has his window (parent/opener) maximized, then there is
less chances, opportunities to notice that a new separate window was
created since it can not be offset toward the bottom and the right side.

DU
  #17  
Old July 20th, 2005, 06:49 PM
Alan J. Flavell
Guest
 
Posts: n/a
Default Re: target="_blank" with xHTML

On Tue, 24 Feb 2004, Martin Doering wrote:
[color=blue]
> To open a second window can be of much use.[/color]

I often find it useful, indeed. But rarely on the same occasions that
the web page author decided that I should want it.

 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles