<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Garkbit Blog &#187; Tip</title>
	<atom:link href="http://wp.garkbit.com/category/tip/feed/" rel="self" type="application/rss+xml" />
	<link>http://wp.garkbit.com</link>
	<description>... on the other side of the universe</description>
	<lastBuildDate>Fri, 22 Oct 2010 14:16:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Output the source XML with XSLT</title>
		<link>http://wp.garkbit.com/2009-10-09/output-the-source-xml-with-xslt/</link>
		<comments>http://wp.garkbit.com/2009-10-09/output-the-source-xml-with-xslt/#comments</comments>
		<pubDate>Fri, 09 Oct 2009 13:21:08 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[Tip]]></category>
		<category><![CDATA[Web development]]></category>
		<category><![CDATA[XML]]></category>
		<category><![CDATA[XSLT]]></category>

		<guid isPermaLink="false">http://wp.garkbit.com/?p=136</guid>
		<description><![CDATA[Today I just learned something I&#8217;ve been looking for for a while. It&#8217;s super simple, but it can be very helpful. For those of us that needs to write and edit XSLT for XML you don&#8217;t own and can&#8217;t view &#8211; in my case from SharePoint. Here is a single line of XSLT that will [...]]]></description>
			<content:encoded><![CDATA[<p>Today I just learned something I&#8217;ve been looking for for a while. It&#8217;s super simple, but it can be <strong>very</strong> helpful. For those of us that needs to write and edit XSLT for XML you don&#8217;t own and can&#8217;t view &#8211; in my case from SharePoint. Here is a single line of XSLT that will output the source XML to your page.</p>
<pre class="brush: xml; title: ; notranslate">&lt;xsl:copy-of select=&quot;.&quot;/&gt;</pre>
<p>That&#8217;s it! I told you, super simple.</p>
<p>Remember that you will probably not see the code on the page since the nodes probably won&#8217;t be recognized by the browser.</p>
]]></content:encoded>
			<wfw:commentRss>http://wp.garkbit.com/2009-10-09/output-the-source-xml-with-xslt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iPhone view source</title>
		<link>http://wp.garkbit.com/2009-09-28/iphone-view-source/</link>
		<comments>http://wp.garkbit.com/2009-09-28/iphone-view-source/#comments</comments>
		<pubDate>Mon, 28 Sep 2009 06:52:09 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[Browsers]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Tip]]></category>
		<category><![CDATA[Web development]]></category>
		<category><![CDATA[bookmarklet]]></category>
		<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://wp.garkbit.com/2009-09-28/iphone-view-source/</guid>
		<description><![CDATA[For you who are a web developer and would like to be able to &#8220;view source&#8221; on a web page with your iPhone Safari. Create a bookmark. Edit it and paise the code below in the location field. Then when you want to use it, just click the bookmark, and you&#8217;ll get the source. Super [...]]]></description>
			<content:encoded><![CDATA[<p>For you who are a web developer and would like to be able to &#8220;view source&#8221; on a web page with your iPhone Safari.<br />
Create a bookmark. Edit it and paise the code below in the location field. Then when you want to use it, just click the bookmark, and you&#8217;ll get the source. Super easy!! </p>
<pre class="brush: plain; title: ; notranslate">javascript:var%20sourceWindow%20%3D%20window.open%28%27about%3Ablank%27%29%3B%20%0Avar%20newDoc%20%3D%20sourceWindow.document%3B%20%0AnewDoc.open%28%29%3B%20%0AnewDoc.write%28%27%3Chtml%3E%3Chead%3E%3Ctitle%3ESource%20of%20%27%20%2B%20document.location.href%20%2B%20%27%3C/title%3E%3C/head%3E%3Cbody%3E%3C/body%3E%3C/html%3E%27%29%3B%20%0AnewDoc.close%28%29%3B%20%0Avar%20pre%20%3D%20newDoc.body.appendChild%28newDoc.createElement%28%22pre%22%29%29%3B%20%0Apre.appendChild%28newDoc.createTextNode%28document.documentElement.innerHTML%29%29%3B</pre>
]]></content:encoded>
			<wfw:commentRss>http://wp.garkbit.com/2009-09-28/iphone-view-source/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>On page search for Mobile Safari on the iPhone</title>
		<link>http://wp.garkbit.com/2009-07-30/on-page-search-for-mobile-safari-on-the-iphone/</link>
		<comments>http://wp.garkbit.com/2009-07-30/on-page-search-for-mobile-safari-on-the-iphone/#comments</comments>
		<pubDate>Thu, 30 Jul 2009 08:52:26 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Other]]></category>
		<category><![CDATA[Tip]]></category>
		<category><![CDATA[bookmarklet]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Mobile Safari]]></category>
		<category><![CDATA[Windows Mobile]]></category>

		<guid isPermaLink="false">http://wp.garkbit.com/?p=100</guid>
		<description><![CDATA[My older brother Joel just got home from Italy &#8211; and with him he brought an new shiny iPhone 3GS for me! So why bother getting it all the way from Italy you may ask? First of all it&#8217;s not released yet in Sweden (or maybe that&#8217;s today actually). Secondly and more important, what makes [...]]]></description>
			<content:encoded><![CDATA[<p>My older brother <a title="Joel Lundgren" href="http://jlundgren.com/">Joel</a> just got home from Italy &#8211; and with him he brought an new shiny iPhone 3GS for me! So why bother getting it all the way from Italy you may ask? First of all it&#8217;s not released yet in Sweden (or maybe that&#8217;s today actually). Secondly and more important, what makes Italy (and Belgium) different from other European countries is that you can buy iPhones without any carrier restriction. You can use any carrier you want!</p>
<p>Anyways. I&#8217;ve been using it for two days now and I LOVE IT! Everything I got annoyed with and irritated over using my HTC Touch Diamond is gone. I must say, Windows Mobile sucks! Compared to the iPhone&#8217;s OS, WM is nothing! It&#8217;s like they come from different planets.</p>
<p>There is one thing that has been bothering me though. You can&#8217;t search the text on a page with Mobile Safari. When you view large pages on a relatively small screen, it&#8217;s necessary to be able to search it. Luckily there is a solution to the problem. At <a title="The iPhone Blog" href="http://www.theiphoneblog.com/2009/07/22/iphone-pro-tips-find-text-safari-javascript-bookmarklet/">The iPhone Blog</a> Rene Ritchie describes how you can to it with a simple bookmark! It sounds a bit weird, but all you need to do is to create a bookmark and replace the bookmark URL with some JavaScript (see code below). Then whenever you need to search a page, just click on the bookmark, enter your search text into the JavaScript prompt and click OK. The script will then highlight all the matches on the page. Super neat!!</p>
<pre class="brush: jscript; title: ; notranslate">javascript:void%28s%3Dprompt%28%27Find%20text%3A%27%2C%27%27%29%29%3Bs%3D%27%28%27+s+%27%29%27%3Bx%3Dnew%20RegExp%28s%2C%27gi%27%29%3Brn%3DMath.floor%28Math.random%28%29*100%29%3Brid%3D%27z%27%20+%20rn%3Bb%20%3D%20document.body.innerHTML%3Bb%3Db.replace%28x%2C%27%3Cspan%20name%3D%27%20+%20rid%20+%20%27%20id%3D%27%20+%20rid%20+%20%27%20style%3D%5C%27color%3A%23000%3Bbackground-color%3Ayellow%3B%20font-weight%3Abold%3B%5C%27%3E%241%3C/span%3E%27%29%3Bvoid%28document.body.innerHTML%3Db%29%3Balert%28%27Found%20%27%20+%20document.getElementsByName%28rid%29.length%20+%20%27%20matches.%27%29%3Bwindow.scrollTo%280%2Cdocument.getElementsByName%28rid%29%5B0%5D.offsetTop%29%3B</pre>
]]></content:encoded>
			<wfw:commentRss>http://wp.garkbit.com/2009-07-30/on-page-search-for-mobile-safari-on-the-iphone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

