<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
<channel>
<title>CodeStore.net comments on "Meeting Base Targets"</title>
<description>Replies to blog "Meeting Base Targets" on codestore.net.</description>
<link>http://www.codestore.net/</link>
<lastBuildDate>Sat, 8 Jan 2005 14:43:00 +0100</lastBuildDate>
<atom:link href="http://www.codestore.net/store.nsf/blog.xml?Open=20050727" rel="self" type="application/rss+xml" />

<item>
	<title>Reply from Sean Burgess</title>
	<pubDate>Sat, 8 Jan 2005 14:43:00 +0100</pubDate>
	<author>Sean Burgess</author>
	<description><![CDATA[ 
		<p>Well, as far as separating out internal and external links, the current script I have actually checks to see if the hostname is the same as my site.  If you look at the source on my site, you will see the most up-to-date script.  I am sure that if I took a couple of minutes, I could remove the hard coded host name and make the function be completely independent.</p>
		<p>Sean---</p>

		<p><a href="http://www.codestore.net/store.nsf/reply?OpenForm&ParentUNID=34AE777EC6345A0D86257050006C5504"><img border="0" src="http://www.codestore.net/store.nsf/images/rss_reply.gif" alt="Click here to post a response" /></a></p>
	]]></description>
	<link>http://www.codestore.net/store.nsf/unid/BLOG-20050727?OpenDocument#DOC_34AE777E</link>
</item><item>
	<title>Reply from Stan Rogers</title>
	<pubDate>Sun, 31 Jul 2005 23:07:00 +0100</pubDate>
	<author>Stan Rogers</author>
	<description><![CDATA[ 
		<p>...and if the target attribute is invalid in a particular doctype, it doesn't matter whether you set it declaratively (in the document source) or programmatically, except that there wouldn't be a validation error on load. Instead, the UA should either return an "invalid attiribute" error when the code runs or ignore the nonsense attribute once it is set. (Which of those should happen depends on whether you believe users should report concrete errors or "weird behaviour" when they file their trouble tickets.)</p>

		<p><a href="http://www.codestore.net/store.nsf/reply?OpenForm&ParentUNID=F0ACF5CF280AFE51862570500016B411"><img border="0" src="http://www.codestore.net/store.nsf/images/rss_reply.gif" alt="Click here to post a response" /></a></p>
	]]></description>
	<link>http://www.codestore.net/store.nsf/unid/BLOG-20050727?OpenDocument#DOC_F0ACF5CF</link>
</item><item>
	<title>Reply from harkpabst_meliantrop</title>
	<pubDate>Sat, 30 Jul 2005 17:55:00 +0100</pubDate>
	<author>harkpabst_meliantrop</author>
	<description><![CDATA[ 
		<p>Tony, at least HTML 4.01 and XHTML 1.0 Transitional still contain the base element with target attribute. When writing for these standards, I couldn't care less about what's in the Strict specification. </p>
		<p>And while the JavaScript approach probably works absolutely fine (especially, if the user environment is so well defined as in this case), I still wouldn't call it an ideal solution. In the first place, we should have an easy way in our CMS to seperate internal from external links. And I think, if all external links are entered by users using our own little app only, it could be done even with Domino. If Jake was paid enough for that ... ;-)</p>

		<p><a href="http://www.codestore.net/store.nsf/reply?OpenForm&ParentUNID=585B23E291FDA44E8625704E007DF718"><img border="0" src="http://www.codestore.net/store.nsf/images/rss_reply.gif" alt="Click here to post a response" /></a></p>
	]]></description>
	<link>http://www.codestore.net/store.nsf/unid/BLOG-20050727?OpenDocument#DOC_585B23E2</link>
</item><item>
	<title>Reply from Richard Schwartz</title>
	<pubDate>Thu, 28 Jul 2005 22:36:00 +0100</pubDate>
	<author>Richard Schwartz</author>
	<description><![CDATA[ 
		<p>I used the multiple base tag trick in my very first commercially shipping Domino web template despite the fact that I knew it was invalid HTML.  It worked, but whenever I thought about it I felt like I needed to take a shower to wash off the slime.</p>
		<p>-rich</p>

		<p><a href="http://www.codestore.net/store.nsf/reply?OpenForm&ParentUNID=DA9483CA84B6B29E8625704D0013D69A"><img border="0" src="http://www.codestore.net/store.nsf/images/rss_reply.gif" alt="Click here to post a response" /></a></p>
	]]></description>
	<link>http://www.codestore.net/store.nsf/unid/BLOG-20050727?OpenDocument#DOC_DA9483CA</link>
</item><item>
	<title>Reply from Sean Burgess</title>
	<pubDate>Thu, 28 Jul 2005 12:06:00 +0100</pubDate>
	<author>Sean Burgess</author>
	<description><![CDATA[ 
		<p>I can hear my dad saying "that's the way it's going to be because I said so!!!"</p>
		<p>Sean---</p>

		<p><a href="http://www.codestore.net/store.nsf/reply?OpenForm&ParentUNID=AFE14BE394EC8F758625704C005DF189"><img border="0" src="http://www.codestore.net/store.nsf/images/rss_reply.gif" alt="Click here to post a response" /></a></p>
	]]></description>
	<link>http://www.codestore.net/store.nsf/unid/BLOG-20050727?OpenDocument#DOC_AFE14BE3</link>
</item><item>
	<title>Reply from Jake Howlett</title>
	<pubDate>Thu, 28 Jul 2005 11:36:00 +0100</pubDate>
	<author>Jake Howlett</author>
	<description><![CDATA[ 
		<p>Interesting that you can have multiple &lt;base target&gt; tag and toggle the target for links that way. Seems perverse but if it works... </p>
		<p>However, I'm probably going to stick to my guns and make sure all links I create have target=self in them. </p>

		<p><a href="http://www.codestore.net/store.nsf/reply?OpenForm&ParentUNID=0C78FFF4F2BCF3588625704C005B417F"><img border="0" src="http://www.codestore.net/store.nsf/images/rss_reply.gif" alt="Click here to post a response" /></a></p>
	]]></description>
	<link>http://www.codestore.net/store.nsf/unid/BLOG-20050727?OpenDocument#DOC_0C78FFF4</link>
</item><item>
	<title>Reply from IanB</title>
	<pubDate>Thu, 28 Jul 2005 09:31:00 +0100</pubDate>
	<author>IanB</author>
	<description><![CDATA[ 
		<p>I still like the javascript idea as neatest.</p>
		<p>I tried out the base tags (multi per page) and it does work, even if it isn't valid.</p>

		<p><a href="http://www.codestore.net/store.nsf/reply?OpenForm&ParentUNID=E727E0ADB3CC88448625704C004FD031"><img border="0" src="http://www.codestore.net/store.nsf/images/rss_reply.gif" alt="Click here to post a response" /></a></p>
	]]></description>
	<link>http://www.codestore.net/store.nsf/unid/BLOG-20050727?OpenDocument#DOC_E727E0AD</link>
</item><item>
	<title>Reply from Sean Burgess</title>
	<pubDate>Thu, 28 Jul 2005 08:49:00 +0100</pubDate>
	<author>Sean Burgess</author>
	<description><![CDATA[ 
		<p>@IanB - That was my first choice, but there are 2 problems with that solution.  The BASE tag does not have a closing tag and you are only allowed to have one BASE tag per page.</p>
		<p>Ding, thank you for playing.</p>
		<p>Sean---</p>

		<p><a href="http://www.codestore.net/store.nsf/reply?OpenForm&ParentUNID=AB2297FFDF8846A28625704C004BE70F"><img border="0" src="http://www.codestore.net/store.nsf/images/rss_reply.gif" alt="Click here to post a response" /></a></p>
	]]></description>
	<link>http://www.codestore.net/store.nsf/unid/BLOG-20050727?OpenDocument#DOC_AB2297FF</link>
</item><item>
	<title>Reply from Tony Summerville</title>
	<pubDate>Thu, 28 Jul 2005 08:10:00 +0100</pubDate>
	<author>Tony Summerville</author>
	<description><![CDATA[ 
		<p>I don't see why you think the use of Javascript is like "hacking" a page.  I think this is a situation when javascript is BEST suited for the job, mainly since the target attribute has been phased out of (X)HTML standards, but IS still part of the DOM standards.</p>

		<p><a href="http://www.codestore.net/store.nsf/reply?OpenForm&ParentUNID=6E37C137D23764708625704C00485B89"><img border="0" src="http://www.codestore.net/store.nsf/images/rss_reply.gif" alt="Click here to post a response" /></a></p>
	]]></description>
	<link>http://www.codestore.net/store.nsf/unid/BLOG-20050727?OpenDocument#DOC_6E37C137</link>
</item><item>
	<title>Reply from IanB</title>
	<pubDate>Wed, 27 Jul 2005 17:09:00 +0100</pubDate>
	<author>IanB</author>
	<description><![CDATA[ 
		<p>following on, I've had another idea.</p>
		<p>have &lt;base target="_blank" /&gt; in the header.</p>
		<p>then wrap whatever element contains links you [i]know[/i] are internal in &lt;base target="_self"&gt; &lt;/base&gt;.</p>
		<p>Oh...is that what jorge meant 8-(</p>

		<p><a href="http://www.codestore.net/store.nsf/reply?OpenForm&ParentUNID=6CD08ACDD6FF094E8625704B0079B4E2"><img border="0" src="http://www.codestore.net/store.nsf/images/rss_reply.gif" alt="Click here to post a response" /></a></p>
	]]></description>
	<link>http://www.codestore.net/store.nsf/unid/BLOG-20050727?OpenDocument#DOC_6CD08ACD</link>
</item><item>
	<title>Reply from Tom</title>
	<pubDate>Wed, 27 Jul 2005 15:59:00 +0100</pubDate>
	<author>Tom</author>
	<description><![CDATA[ 
		<p>Hi Jake,</p>
		<p>I think we could distinguish external links from internal ones by looking for "http:\\", as external links are absolute links, what do you think?</p>
		<p>I know so we'd use Javascript...why not really. </p>

		<p><a href="http://www.codestore.net/store.nsf/reply?OpenForm&ParentUNID=A857DCCE11716DBF8625704B00734F46"><img border="0" src="http://www.codestore.net/store.nsf/images/rss_reply.gif" alt="Click here to post a response" /></a></p>
	]]></description>
	<link>http://www.codestore.net/store.nsf/unid/BLOG-20050727?OpenDocument#DOC_A857DCCE</link>
</item><item>
	<title>Reply from Sean Burgess</title>
	<pubDate>Wed, 27 Jul 2005 15:53:00 +0100</pubDate>
	<author>Sean Burgess</author>
	<description><![CDATA[ 
		<p>I confess, the reason I wrote the code that is linked above is that I am a very lazy person.  I got tired of putting target="_blank" on all my external links.  The kewl thing about the code is that I no longer have to worry about mistakenly setting the wrong target.  Plus, it actually decreases the amount of HTML that is downloaded.  What more can a lazy person ask for????</p>
		<p>Sean----</p>

		<p><a href="http://www.codestore.net/store.nsf/reply?OpenForm&ParentUNID=F7D6A0AE819D01B18625704B0072C632"><img border="0" src="http://www.codestore.net/store.nsf/images/rss_reply.gif" alt="Click here to post a response" /></a></p>
	]]></description>
	<link>http://www.codestore.net/store.nsf/unid/BLOG-20050727?OpenDocument#DOC_F7D6A0AE</link>
</item><item>
	<title>Reply from Jake Howlett</title>
	<pubDate>Wed, 27 Jul 2005 11:46:00 +0100</pubDate>
	<author>Jake Howlett</author>
	<description><![CDATA[ 
		<p>Good point Jorge. Yes I could. Hadn't thought of that. Cheers.</p>

		<p><a href="http://www.codestore.net/store.nsf/reply?OpenForm&ParentUNID=E1C7F1F33DA0FB968625704B005C2FBA"><img border="0" src="http://www.codestore.net/store.nsf/images/rss_reply.gif" alt="Click here to post a response" /></a></p>
	]]></description>
	<link>http://www.codestore.net/store.nsf/unid/BLOG-20050727?OpenDocument#DOC_E1C7F1F3</link>
</item><item>
	<title>Reply from Jorge Coelho</title>
	<pubDate>Wed, 27 Jul 2005 11:40:00 +0100</pubDate>
	<author>Jorge Coelho</author>
	<description><![CDATA[ 
		<p>Could you just use a different base tag for your view templates?  If your view will only contain internal links, why not just create a different base tag, which will require less work everytime you create a view?</p>

		<p><a href="http://www.codestore.net/store.nsf/reply?OpenForm&ParentUNID=0050EBF7DABDDFE38625704B005B95DC"><img border="0" src="http://www.codestore.net/store.nsf/images/rss_reply.gif" alt="Click here to post a response" /></a></p>
	]]></description>
	<link>http://www.codestore.net/store.nsf/unid/BLOG-20050727?OpenDocument#DOC_0050EBF7</link>
</item><item>
	<title>Reply from Jake Howlett</title>
	<pubDate>Wed, 27 Jul 2005 10:38:00 +0100</pubDate>
	<author>Jake Howlett</author>
	<description><![CDATA[ 
		<p>You right YoGi, that would do the trick too.</p>
		<p>I don't want to use JavaScript really as I always see this as hcaking the page. I'd much rather control it all from the server and the actual HTML. Far less to go wrong.</p>

		<p><a href="http://www.codestore.net/store.nsf/reply?OpenForm&ParentUNID=32975F5E262D4FF28625704B0055EB34"><img border="0" src="http://www.codestore.net/store.nsf/images/rss_reply.gif" alt="Click here to post a response" /></a></p>
	]]></description>
	<link>http://www.codestore.net/store.nsf/unid/BLOG-20050727?OpenDocument#DOC_32975F5E</link>
</item><item>
	<title>Reply from Chad S</title>
	<pubDate>Wed, 27 Jul 2005 07:17:00 +0100</pubDate>
	<author>Chad S</author>
	<description><![CDATA[ 
		<p>IanB is right, why not use javascript?  There's code at</p>
		<p>{<a href="http://phigsaidwhat.com/Phigment.nsf/dx/js-to-launch-links-in-a-new-window.htm">Link</a>}</p>
		<p>that will accomplish it.</p>

		<p><a href="http://www.codestore.net/store.nsf/reply?OpenForm&ParentUNID=283927AF370AD56C8625704B00437E56"><img border="0" src="http://www.codestore.net/store.nsf/images/rss_reply.gif" alt="Click here to post a response" /></a></p>
	]]></description>
	<link>http://www.codestore.net/store.nsf/unid/BLOG-20050727?OpenDocument#DOC_283927AF</link>
</item><item>
	<title>Reply from IanB</title>
	<pubDate>Wed, 27 Jul 2005 06:55:00 +0100</pubDate>
	<author>IanB</author>
	<description><![CDATA[ 
		<p>Surely it would be easier to treat external links to the special target treatment, as they would be the exception?</p>
		<p>I know we shouldn't use javascript but could you not iterate through all &lt;a&gt; tags in the page and check for the presence of external links and then add target-"_blank" to the innerhtml?</p>

		<p><a href="http://www.codestore.net/store.nsf/reply?OpenForm&ParentUNID=42ECFC0AB1C620F58625704B004179C0"><img border="0" src="http://www.codestore.net/store.nsf/images/rss_reply.gif" alt="Click here to post a response" /></a></p>
	]]></description>
	<link>http://www.codestore.net/store.nsf/unid/BLOG-20050727?OpenDocument#DOC_42ECFC0A</link>
</item><item>
	<title>Reply from YoGi</title>
	<pubDate>Wed, 27 Jul 2005 06:29:00 +0100</pubDate>
	<author>YoGi</author>
	<description><![CDATA[ 
		<p>well you may use non-html domino views, just deactivate the "show values in column as links" and made your owns (ie : "[&lt;a href='"+@text(@documentuniqueid)+"?opendocument' target='_self'&gt;"+document_title+"&lt;/a&gt;]", but i'm sure you've already thought about that. or didn't i understood your problem ?</p>

		<p><a href="http://www.codestore.net/store.nsf/reply?OpenForm&ParentUNID=A49C2EB7F307AB608625704B003F1891"><img border="0" src="http://www.codestore.net/store.nsf/images/rss_reply.gif" alt="Click here to post a response" /></a></p>
	]]></description>
	<link>http://www.codestore.net/store.nsf/unid/BLOG-20050727?OpenDocument#DOC_A49C2EB7</link>
</item>

</channel>
</rss> 
