<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: SimpleQuiz &#8250; Part XVI: Launching Windows</title>
	<atom:link href="http://simplebits.com/notebook/2004/05/06/sq-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://simplebits.com/notebook/2004/05/06/sq-2/</link>
	<description>Handcrafted pixels &#38; text from Salem, Massachusetts.</description>
	<lastBuildDate>Tue, 08 Dec 2009 23:15:49 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
	<item>
		<title>By: Jakob</title>
		<link>http://simplebits.com/notebook/2004/05/06/sq-2/#comment-3030</link>
		<dc:creator>Jakob</dc:creator>
		<pubDate>Thu, 10 Nov 2005 02:57:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.simplebits.com/wp/notebook/2004/05/06/sq-2/#comment-3030</guid>
		<description>I&#039;ll go with the standard;
not using target at all.
There is really no need for it...
</description>
		<content:encoded><![CDATA[<p>I&#8217;ll go with the standard;<br />
not using target at all.<br />
There is really no need for it&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thierry Koblentz</title>
		<link>http://simplebits.com/notebook/2004/05/06/sq-2/#comment-3029</link>
		<dc:creator>Thierry Koblentz</dc:creator>
		<pubDate>Mon, 03 Oct 2005 18:54:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.simplebits.com/wp/notebook/2004/05/06/sq-2/#comment-3029</guid>
		<description>I go with A, using a solution that does not require any hook in the markup:
&lt;a title=&quot;Popup windows with no extra markup&quot; href=&quot;http://www.tjkdesign.com/articles/popups.asp&quot; rel=&quot;nofollow&quot;&gt;Elégantes Popup Windows&lt;/a&gt; (shameless plug)
My 2 cents:
- There was a comment made about using &quot;_blank&quot; and &quot;new&quot;. IMHO, another difference to take into consideration is that &quot;_blank&quot; is &lt;strong&gt;not&lt;/strong&gt; blocked by popup blockers.
- AFAIK, extending the DTD to use the target module creates an issue with the &lt;strong&gt;CSS&lt;/strong&gt; validator (Jigsaw).
</description>
		<content:encoded><![CDATA[<p>I go with A, using a solution that does not require any hook in the markup:<br />
<a title="Popup windows with no extra markup" href="http://www.tjkdesign.com/articles/popups.asp" rel="nofollow">Elégantes Popup Windows</a> (shameless plug)<br />
My 2 cents:<br />
- There was a comment made about using &#8220;_blank&#8221; and &#8220;new&#8221;. IMHO, another difference to take into consideration is that &#8220;_blank&#8221; is <strong>not</strong> blocked by popup blockers.<br />
- AFAIK, extending the DTD to use the target module creates an issue with the <strong>CSS</strong> validator (Jigsaw).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chris jopson</title>
		<link>http://simplebits.com/notebook/2004/05/06/sq-2/#comment-3028</link>
		<dc:creator>chris jopson</dc:creator>
		<pubDate>Tue, 16 Aug 2005 00:25:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.simplebits.com/wp/notebook/2004/05/06/sq-2/#comment-3028</guid>
		<description>My immediate choice would be A, for the whole HTML=data, CSS=style, JAVASCRIPT=functionality idea.
However, am I doing something wrong, or do methods like these inevitably lead to the &quot;information bar&quot; dropping down in IE with service pack2?
</description>
		<content:encoded><![CDATA[<p>My immediate choice would be A, for the whole HTML=data, CSS=style, JAVASCRIPT=functionality idea.<br />
However, am I doing something wrong, or do methods like these inevitably lead to the &#8220;information bar&#8221; dropping down in IE with service pack2?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Odeon</title>
		<link>http://simplebits.com/notebook/2004/05/06/sq-2/#comment-3027</link>
		<dc:creator>Paul Odeon</dc:creator>
		<pubDate>Wed, 02 Mar 2005 12:41:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.simplebits.com/wp/notebook/2004/05/06/sq-2/#comment-3027</guid>
		<description>I would choose solution A. Any website that wants to popup a window is unlikely to be seen on a device that cannot support javascript. But without going into this further I am going to offer my solution which is based on &lt;a href=&quot;http://www.sitepoint.com/article/standards-compliant-world&quot; rel=&quot;nofollow&quot;&gt;Kevin Yank&#039;s Solution&lt;/a&gt; but has been altered so that it does not rely on adding the target=&quot;_blank&quot; attribute which I know some people, myself included find questionable.
The basic principle is to loop through all the anchors adding an onClick event handler to those with a rel=&quot;external&quot;
Here is the function which does that:
&lt;code&gt;
function externaliseLinks() {
if (document.getElementsByTagName) {
var anchors = document.getElementsByTagName(&quot;a&quot;);
for (var i=0; i
Then simply call &lt;code&gt; externaliseLinks();&lt;/code&gt; in your body onload&lt;/code&gt;
</description>
		<content:encoded><![CDATA[<p>I would choose solution A. Any website that wants to popup a window is unlikely to be seen on a device that cannot support javascript. But without going into this further I am going to offer my solution which is based on <a href="http://www.sitepoint.com/article/standards-compliant-world" rel="nofollow">Kevin Yank&#8217;s Solution</a> but has been altered so that it does not rely on adding the target=&#8221;_blank&#8221; attribute which I know some people, myself included find questionable.<br />
The basic principle is to loop through all the anchors adding an onClick event handler to those with a rel=&#8221;external&#8221;<br />
Here is the function which does that:<br />
<code><br />
function externaliseLinks() {<br />
if (document.getElementsByTagName) {<br />
var anchors = document.getElementsByTagName("a");<br />
for (var i=0; i<br />
Then simply call </code><code> externaliseLinks();</code> in your body onload</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan van der Horst</title>
		<link>http://simplebits.com/notebook/2004/05/06/sq-2/#comment-3026</link>
		<dc:creator>Stefan van der Horst</dc:creator>
		<pubDate>Sun, 25 Jul 2004 17:16:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.simplebits.com/wp/notebook/2004/05/06/sq-2/#comment-3026</guid>
		<description>Since I want to follow accessibility directives I certainly would use type A solutions.
However, CPU usage should be kept to a minimal. Therefore I implement hyperlinks using the following method:
in javascript:
function setURLTarget(link, sTarget)
{
link.target = sTarget;
return true;
}
next the hyperlink must look like this:
&lt;a href=&quot;http://www.class-act.nl&quot; onclick=&quot;setURLTarget(this,&#039;_blank&#039;);&quot;&gt;the website&lt;/a&gt;
This implementation covers xhtml strict, accessibility rules and non-javascript browsers.
</description>
		<content:encoded><![CDATA[<p>Since I want to follow accessibility directives I certainly would use type A solutions.<br />
However, CPU usage should be kept to a minimal. Therefore I implement hyperlinks using the following method:<br />
in javascript:<br />
function setURLTarget(link, sTarget)<br />
{<br />
link.target = sTarget;<br />
return true;<br />
}<br />
next the hyperlink must look like this:<br />
&lt;a href=&quot;<a href="http://www.class-act.nl" rel="nofollow">http://www.class-act.nl</a>&#8221; onclick=&#8221;setURLTarget(this,&#8217;_blank&#8217;);&quot;&gt;the website&lt;/a&gt;<br />
This implementation covers xhtml strict, accessibility rules and non-javascript browsers.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://simplebits.com/notebook/2004/05/06/sq-2/#comment-3025</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Wed, 14 Jul 2004 16:50:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.simplebits.com/wp/notebook/2004/05/06/sq-2/#comment-3025</guid>
		<description>I&#039;ll go with the browsers allow users to open links in new windows so why on earth are we forcing users to get another window on there desktop.
</description>
		<content:encoded><![CDATA[<p>I&#8217;ll go with the browsers allow users to open links in new windows so why on earth are we forcing users to get another window on there desktop.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Hunt</title>
		<link>http://simplebits.com/notebook/2004/05/06/sq-2/#comment-3024</link>
		<dc:creator>Chris Hunt</dc:creator>
		<pubDate>Wed, 09 Jun 2004 16:26:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.simplebits.com/wp/notebook/2004/05/06/sq-2/#comment-3024</guid>
		<description>I think opening in a new window is used way too often, but it&#039;s occasionally necessary. When I do it, I generally go for C - it only happens rarely, and I tend to use Transitional anyway.
If I had the time, I&#039;d go for A, using an onload script that sniffs out particular classes and adds in a target attribute for the new window. Why use a class instead of a rel? Because I might want to add some visual styling to those special links that will open in a new window, and CSS can&#039;t (currently) pick out rels. Why use a class instead of an id (like the ALA article)? Because when I markup a link as requiring a new window, I don&#039;t want to have to edit a seperate js file to add that id to the list. I just want to add class=&quot;help&quot;, or whatever, to the a tag.
In time, I could get rid of the onLoad script and use the target-new property in my stylesheet. I don&#039;t have any dogmatic view on what should be CSS and what should be js, I just understand CSS better.
Incidentally, KAL, I&#039;m intrigued that Firefox allows you to suppress new  windows unless JS is used to open them. Does this limitation only apply where JS onclick methods are used, or is it also true where you use JS to add target attributes via the DOM?
</description>
		<content:encoded><![CDATA[<p>I think opening in a new window is used way too often, but it&#8217;s occasionally necessary. When I do it, I generally go for C &#8211; it only happens rarely, and I tend to use Transitional anyway.<br />
If I had the time, I&#8217;d go for A, using an onload script that sniffs out particular classes and adds in a target attribute for the new window. Why use a class instead of a rel? Because I might want to add some visual styling to those special links that will open in a new window, and CSS can&#8217;t (currently) pick out rels. Why use a class instead of an id (like the ALA article)? Because when I markup a link as requiring a new window, I don&#8217;t want to have to edit a seperate js file to add that id to the list. I just want to add class=&#8221;help&#8221;, or whatever, to the a tag.<br />
In time, I could get rid of the onLoad script and use the target-new property in my stylesheet. I don&#8217;t have any dogmatic view on what should be CSS and what should be js, I just understand CSS better.<br />
Incidentally, KAL, I&#8217;m intrigued that Firefox allows you to suppress new  windows unless JS is used to open them. Does this limitation only apply where JS onclick methods are used, or is it also true where you use JS to add target attributes via the DOM?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim Hill</title>
		<link>http://simplebits.com/notebook/2004/05/06/sq-2/#comment-3023</link>
		<dc:creator>Tim Hill</dc:creator>
		<pubDate>Tue, 08 Jun 2004 03:53:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.simplebits.com/wp/notebook/2004/05/06/sq-2/#comment-3023</guid>
		<description>Just a note about comment #1. I think the method was from an article at Sitepoint, by Kevin Yank.
&lt;a href=&quot;http://www.sitepoint.com/article/standards-compliant-world&quot; rel=&quot;nofollow&quot;&gt;http://www.sitepoint.com/article/standards-compliant-world&lt;/a&gt;
On the third page he makes a great point.
&quot;if the target attribute of the a tag is being phased out, does it really make a difference whether we&#039;re setting it with JavaScript instead of HTML? Sure, the page will validate against the HTML 4.0 Strict and XHTML 1.0 Strict Document Type Definitions, but aren&#039;t we technically cheating? ... The answer is no. The Document Object Model (DOM), which governs the document objects and attributes that are available to JavaScript code, is a totally separate standard from (X)HTML. Also consider that the DOM 2.0 standard that was published in January 2003 (well after XHTML 1.0, let alone HTML 4.0) still includes this attribute. It seems clear that while this attribute is slated to be phased out of (X)HTML, it will be available to JavaScript through the DOM for the foreseeable future.&quot;
</description>
		<content:encoded><![CDATA[<p>Just a note about comment #1. I think the method was from an article at Sitepoint, by Kevin Yank.<br />
<a href="http://www.sitepoint.com/article/standards-compliant-world" rel="nofollow">http://www.sitepoint.com/article/standards-compliant-world</a><br />
On the third page he makes a great point.<br />
&#8220;if the target attribute of the a tag is being phased out, does it really make a difference whether we&#8217;re setting it with JavaScript instead of HTML? Sure, the page will validate against the HTML 4.0 Strict and XHTML 1.0 Strict Document Type Definitions, but aren&#8217;t we technically cheating? &#8230; The answer is no. The Document Object Model (DOM), which governs the document objects and attributes that are available to JavaScript code, is a totally separate standard from (X)HTML. Also consider that the DOM 2.0 standard that was published in January 2003 (well after XHTML 1.0, let alone HTML 4.0) still includes this attribute. It seems clear that while this attribute is slated to be phased out of (X)HTML, it will be available to JavaScript through the DOM for the foreseeable future.&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dante</title>
		<link>http://simplebits.com/notebook/2004/05/06/sq-2/#comment-3022</link>
		<dc:creator>Dante</dc:creator>
		<pubDate>Fri, 04 Jun 2004 02:18:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.simplebits.com/wp/notebook/2004/05/06/sq-2/#comment-3022</guid>
		<description>Needless to say, LOL.
Fazal reminds me of myself 5 months ago (hellbent on anti-standards, now I love them). IMHO, W3C should start paying more attention to the needs of developers.
Besides, if XHTML 2.0 becomes so horrid we still have good ol&#039; XHTML 1.0 Transitional, and if worst comes to worst, HTML 4.
The point of this quiz is not whether you should open new windows or not, it&#039;s assuming that we should and asking how we would. So pretend you &lt;strong&gt;had&lt;/strong&gt; to open a new window - how would you do it? &lt;em&gt;Now&lt;/em&gt; try and answer the question.
</description>
		<content:encoded><![CDATA[<p>Needless to say, LOL.<br />
Fazal reminds me of myself 5 months ago (hellbent on anti-standards, now I love them). IMHO, W3C should start paying more attention to the needs of developers.<br />
Besides, if XHTML 2.0 becomes so horrid we still have good ol&#8217; XHTML 1.0 Transitional, and if worst comes to worst, HTML 4.<br />
The point of this quiz is not whether you should open new windows or not, it&#8217;s assuming that we should and asking how we would. So pretend you <strong>had</strong> to open a new window &#8211; how would you do it? <em>Now</em> try and answer the question.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fazal Majid</title>
		<link>http://simplebits.com/notebook/2004/05/06/sq-2/#comment-3021</link>
		<dc:creator>Fazal Majid</dc:creator>
		<pubDate>Thu, 03 Jun 2004 08:15:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.simplebits.com/wp/notebook/2004/05/06/sq-2/#comment-3021</guid>
		<description>C. If XHTML 1.0 Strict does not support target, it is broken, and not worth bothering with. I tend to agree with &lt;a href=&quot;http://diveintomark.org/archives/2003/01/13/semantic_obsolescence&quot; rel=&quot;nofollow&quot;&gt;Mark Pilgrim&lt;/a&gt;, XHTML Strict (and thus 2.0, hello, no img tags?) are a case study of standards groups (motto: &quot;if we piss on it, it improves the taste&quot;) indulging in intellectual onanism.
</description>
		<content:encoded><![CDATA[<p>C. If XHTML 1.0 Strict does not support target, it is broken, and not worth bothering with. I tend to agree with <a href="http://diveintomark.org/archives/2003/01/13/semantic_obsolescence" rel="nofollow">Mark Pilgrim</a>, XHTML Strict (and thus 2.0, hello, no img tags?) are a case study of standards groups (motto: &#8220;if we piss on it, it improves the taste&#8221;) indulging in intellectual onanism.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

