<?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/"
xmlns:series="http://unfoldingneurons.com/"
> <channel><title>Comments on: MooTools 1.2 OpenLinks&#160;Plugin</title> <atom:link href="http://davidwalsh.name/mootools-open-links-plugin/feed" rel="self" type="application/rss+xml" /><link>http://davidwalsh.name/mootools-open-links-plugin</link> <description>Legendary scribbles about JavaScript, HTML5, AJAX, PHP, CSS, and ∞.</description> <lastBuildDate>Thu, 09 Feb 2012 14:25:32 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3</generator> <item><title>By: Jonah Dempcy</title><link>http://davidwalsh.name/mootools-open-links-plugin/comment-page-1#comment-1765</link> <dc:creator>Jonah Dempcy</dc:creator> <pubDate>Wed, 18 Jun 2008 08:13:49 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/mootools-open-links-class#comment-1765</guid> <description>I see your point-- it&#039;s natural to hit the &quot;x&quot; to close a document when you&#039;re finished with it, and can accidentally close the page you were on.After reading up on Jakob Nielsen&#039;s alert box, it appears he agrees with you as well:http://www.useit.com/alertbox/open_new_windows.htmlHere&#039;s what Jakob has to say about it:&quot;Because users frequently close document windows, the best guidelines for linking to non-Web documents are:1. Open non-Web documents in a new browser window.
2. Warn users in advance that a new window will appear.
3. Remove the browser chrome (such as the Back button) from the new window.
4. Best of all, prevent the browser from opening the document in the first place. Instead offer users the choice to save the file on their harddisk or to open it in its native application...&quot;I think this is best for the majority of users, and power users can just override the browser&#039;s new window functionality.Incidentally, to override target=&quot;&quot; links opening in a new window in Firefox, you can tweak the browser.link.open_newwindow setting in about:config -- setting it to 1 opens target=&quot;&quot; links in the current tab, setting it to 2 opens them in a new window and 3 opens in a new tab (default).</description> <content:encoded><![CDATA[<p>I see your point&#8211; it&#8217;s natural to hit the &#8220;x&#8221; to close a document when you&#8217;re finished with it, and can accidentally close the page you were on.</p><p>After reading up on Jakob Nielsen&#8217;s alert box, it appears he agrees with you as well:</p><p> <a
href="http://www.useit.com/alertbox/open_new_windows.html" rel="nofollow">http://www.useit.com/alertbox/open_new_windows.html</a></p><p>Here&#8217;s what Jakob has to say about it:</p><p>&#8220;Because users frequently close document windows, the best guidelines for linking to non-Web documents are:</p><p> 1. Open non-Web documents in a new browser window.<br
/> 2. Warn users in advance that a new window will appear.<br
/> 3. Remove the browser chrome (such as the Back button) from the new window.<br
/> 4. Best of all, prevent the browser from opening the document in the first place. Instead offer users the choice to save the file on their harddisk or to open it in its native application&#8230;&#8221;</p><p>I think this is best for the majority of users, and power users can just override the browser&#8217;s new window functionality.</p><p>Incidentally, to override target=&#8221;" links opening in a new window in Firefox, you can tweak the browser.link.open_newwindow setting in about:config &#8212; setting it to 1 opens target=&#8221;" links in the current tab, setting it to 2 opens them in a new window and 3 opens in a new tab (default).</p> ]]></content:encoded> </item> <item><title>By: david</title><link>http://davidwalsh.name/mootools-open-links-plugin/comment-page-1#comment-1761</link> <dc:creator>david</dc:creator> <pubDate>Wed, 18 Jun 2008 00:11:58 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/mootools-open-links-class#comment-1761</guid> <description>@Jonah:  One of my biggest web pet peeves is when a PDF, DOC, or XLS file is not opened in a new window.  You end up being done with the document, close the program, and realize you just closed your browser and all the tabs you had open.   That inspired me to create this class.</description> <content:encoded><![CDATA[<p>@Jonah:  One of my biggest web pet peeves is when a PDF, DOC, or XLS file is not opened in a new window.  You end up being done with the document, close the program, and realize you just closed your browser and all the tabs you had open.   That inspired me to create this class.</p> ]]></content:encoded> </item> <item><title>By: Jonah Dempcy</title><link>http://davidwalsh.name/mootools-open-links-plugin/comment-page-1#comment-1759</link> <dc:creator>Jonah Dempcy</dc:creator> <pubDate>Tue, 17 Jun 2008 19:50:47 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/mootools-open-links-class#comment-1759</guid> <description>I personally never open links in new windows, ever. Jakob Nielsen agrees, with the exception of rich internet apps that demand a full, new browser window (and which omit standard browser controls like the back button). Otherwise, opening links in new windows should be at the option of the user.That being said, I appreciate that we sometimes must compromise for a client and your solution certainly is clean and to the point.Which particulars of your code are specific to MooTools 1.2? I&#039;m going to write a series of articles comparing differences to the MooTools codebase between v1.11 and 1.2, and am curious if you&#039;re using any 1.2-specific functionality in this code.Here&#039;s the first article I wrote, which contains a brief overview of the additions/changes in MooTools 1.2:http://www.thetruetribe.com/2008/06/whats-new-in-mootools-12.php</description> <content:encoded><![CDATA[<p>I personally never open links in new windows, ever. Jakob Nielsen agrees, with the exception of rich internet apps that demand a full, new browser window (and which omit standard browser controls like the back button). Otherwise, opening links in new windows should be at the option of the user.</p><p>That being said, I appreciate that we sometimes must compromise for a client and your solution certainly is clean and to the point.</p><p>Which particulars of your code are specific to MooTools 1.2? I&#8217;m going to write a series of articles comparing differences to the MooTools codebase between v1.11 and 1.2, and am curious if you&#8217;re using any 1.2-specific functionality in this code.</p><p>Here&#8217;s the first article I wrote, which contains a brief overview of the additions/changes in MooTools 1.2:</p><p><a
href="http://www.thetruetribe.com/2008/06/whats-new-in-mootools-12.php" rel="nofollow">http://www.thetruetribe.com/2008/06/whats-new-in-mootools-12.php</a></p> ]]></content:encoded> </item> <item><title>By: david</title><link>http://davidwalsh.name/mootools-open-links-plugin/comment-page-1#comment-626</link> <dc:creator>david</dc:creator> <pubDate>Wed, 09 Apr 2008 00:43:41 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/mootools-open-links-class#comment-626</guid> <description>@Andrea:  Thank you for sharing!</description> <content:encoded><![CDATA[<p>@Andrea:  Thank you for sharing!</p> ]]></content:encoded> </item> <item><title>By: Andrea Hill</title><link>http://davidwalsh.name/mootools-open-links-plugin/comment-page-1#comment-625</link> <dc:creator>Andrea Hill</dc:creator> <pubDate>Wed, 09 Apr 2008 00:40:25 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/mootools-open-links-class#comment-625</guid> <description>This is one of those cases where I struggle with &quot;well, it validates, because I&#039;m assigning the invalid stuff via JS&quot;. Target&#039;s been deprecated for awhile... so I shy away from using it, simply because there must have been SOME reason it&#039;s frowned upon..</description> <content:encoded><![CDATA[<p>This is one of those cases where I struggle with &#8220;well, it validates, because I&#8217;m assigning the invalid stuff via JS&#8221;. Target&#8217;s been deprecated for awhile&#8230; so I shy away from using it, simply because there must have been SOME reason it&#8217;s frowned upon..</p> ]]></content:encoded> </item> <item><title>By: david</title><link>http://davidwalsh.name/mootools-open-links-plugin/comment-page-1#comment-621</link> <dc:creator>david</dc:creator> <pubDate>Mon, 07 Apr 2008 18:24:03 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/mootools-open-links-class#comment-621</guid> <description>@Garrick:  I did things this way because people don&#039;t always click on links.  Inserting a target attribute makes the browser handle these links as they would had they been properly targeted.</description> <content:encoded><![CDATA[<p>@Garrick:  I did things this way because people don&#8217;t always click on links.  Inserting a target attribute makes the browser handle these links as they would had they been properly targeted.</p> ]]></content:encoded> </item> <item><title>By: Garrick</title><link>http://davidwalsh.name/mootools-open-links-plugin/comment-page-1#comment-622</link> <dc:creator>Garrick</dc:creator> <pubDate>Mon, 07 Apr 2008 18:00:53 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/mootools-open-links-class#comment-622</guid> <description>Wouldn&#039;t it be better to addEvent instead of adding a target attribute?Your method is just like adding the target attribute inline, which is not standards compliant.So you could do something like this instead:
el.addEvent(&#039;click&#039;, function(e){
(new Event(e)).stop();
//plugin your own code in the open function.
window.open();
});</description> <content:encoded><![CDATA[<p>Wouldn&#8217;t it be better to addEvent instead of adding a target attribute?</p><p>Your method is just like adding the target attribute inline, which is not standards compliant.</p><p>So you could do something like this instead:<br
/> el.addEvent(&#8216;click&#8217;, function(e){<br
/> (new Event(e)).stop();<br
/> //plugin your own code in the open function.<br
/> window.open();<br
/> });</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced (User agent is rejected)
Database Caching 1/14 queries in 0.017 seconds using disk: basic
Object Caching 670/671 objects using disk: basic

Served from: davidwalsh.name @ 2012-02-09 09:38:47 -->
