<?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"
	>
<channel>
	<title>Comments on: Inline Search</title>
	<atom:link href="http://schinckel.net/2006/09/18/inline-search/feed/" rel="self" type="application/rss+xml" />
	<link>http://schinckel.net/2006/09/18/inline-search/</link>
	<description>Like a fortune cookie, only without the fortune, and not a cookie.</description>
	<pubDate>Thu, 08 Jan 2009 00:33:27 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: Ridge Bradley Demetriu</title>
		<link>http://schinckel.net/2006/09/18/inline-search/#comment-1635</link>
		<dc:creator>Ridge Bradley Demetriu</dc:creator>
		<pubDate>Fri, 15 Jun 2007 20:50:08 +0000</pubDate>
		<guid isPermaLink="false">http://schinckel.blogsome.com/2006/09/18/inline-search/#comment-1635</guid>
		<description>//&lt;strong&gt;get_elements_by_attribute.js&lt;/strong&gt;//

&lt;strong&gt;function getElementsByAttribute(attribute, attributeValue)
{
 var elementArray = new Array();
 var matchedArray = new Array();

 if (document.all)
 {
   elementArray = document.all;
 }
 else
 {
   elementArray = document.getElementsByTagName("*");
 }

 for (var i = 0; i &lt;/strong&gt;</description>
		<content:encoded><![CDATA[<p>//<strong>get_elements_by_attribute.js</strong>//</p>
<p><strong>function getElementsByAttribute(attribute, attributeValue)<br />
{<br />
 var elementArray = new Array();<br />
 var matchedArray = new Array();</p>
<p> if (document.all)<br />
 {<br />
   elementArray = document.all;<br />
 }<br />
 else<br />
 {<br />
   elementArray = document.getElementsByTagName(&#8221;*&#8221;);<br />
 }</p>
<p> for (var i = 0; i </strong></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ridge Bradley Demetriu</title>
		<link>http://schinckel.net/2006/09/18/inline-search/#comment-1634</link>
		<dc:creator>Ridge Bradley Demetriu</dc:creator>
		<pubDate>Fri, 15 Jun 2007 20:47:58 +0000</pubDate>
		<guid isPermaLink="false">http://schinckel.blogsome.com/2006/09/18/inline-search/#comment-1634</guid>
		<description>//&lt;strong&gt;get_elements_by_attribute.js&lt;/strong&gt;//

&lt;code&gt;
function getElementsByAttribute(attribute, attributeValue)
{
 var elementArray = new Array();
 var matchedArray = new Array();

 if (document.all)
 {
   elementArray = document.all;
 }
 else
 {
   elementArray = document.getElementsByTagName("*");
 }

 for (var i = 0; i &lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>//<strong>get_elements_by_attribute.js</strong>//</p>
<p><code><br />
function getElementsByAttribute(attribute, attributeValue)<br />
{<br />
 var elementArray = new Array();<br />
 var matchedArray = new Array();</p>
<p> if (document.all)<br />
 {<br />
   elementArray = document.all;<br />
 }<br />
 else<br />
 {<br />
   elementArray = document.getElementsByTagName("*");<br />
 }</p>
<p> for (var i = 0; i </code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ridge Bradley Demetriu</title>
		<link>http://schinckel.net/2006/09/18/inline-search/#comment-1633</link>
		<dc:creator>Ridge Bradley Demetriu</dc:creator>
		<pubDate>Fri, 15 Jun 2007 20:42:40 +0000</pubDate>
		<guid isPermaLink="false">http://schinckel.blogsome.com/2006/09/18/inline-search/#comment-1633</guid>
		<description>//&lt;strong&gt;get_elements_by_attribute.js&lt;/strong&gt;//

&lt;strong&gt;&lt;code&gt;function getElementsByAttribute(attribute, attributeValue)
{
 var elementArray = new Array();
 var matchedArray = new Array();

 if (document.all)
 {
   elementArray = document.all;
 }
 else
 {
   elementArray = document.getElementsByTagName("*");
 }

 for (var i = 0; i &lt;/code&gt;&lt;/strong&gt;</description>
		<content:encoded><![CDATA[<p>//<strong>get_elements_by_attribute.js</strong>//</p>
<p><strong><code>function getElementsByAttribute(attribute, attributeValue)<br />
{<br />
 var elementArray = new Array();<br />
 var matchedArray = new Array();</p>
<p> if (document.all)<br />
 {<br />
   elementArray = document.all;<br />
 }<br />
 else<br />
 {<br />
   elementArray = document.getElementsByTagName("*");<br />
 }</p>
<p> for (var i = 0; i </code></strong></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ridge Bradley Demetriu</title>
		<link>http://schinckel.net/2006/09/18/inline-search/#comment-1632</link>
		<dc:creator>Ridge Bradley Demetriu</dc:creator>
		<pubDate>Fri, 15 Jun 2007 20:39:37 +0000</pubDate>
		<guid isPermaLink="false">http://schinckel.blogsome.com/2006/09/18/inline-search/#comment-1632</guid>
		<description>&lt;strong&gt;Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.

[ Antoine de Saint-Exupery ]&lt;/strong&gt;


Cool "getbyclass" function script above...really short and nifty...

The ability to find all the elements that have a particular attribute can be pretty handy when you need to modify all elements that have the same class or title, for example.

I was working on my profile page and in order to find elements with a particular attribute value, I needed to check every element on the page for that attribute. This is a very calculation-intensive operation, so it shouldn't be undertaken lightly. If you wanted to find all input elements with type="checkbox", you're better off limiting your search to input elements first:

&lt;strong&gt;&lt;code&gt;
var inputs = document.getElementsByTagName("input");

for (var i = 0; i &lt;/code&gt;&lt;/strong&gt;

This will require less calculation than iterating through every element on the page and checking its type. However, the function presented in this solution -- getElementsByAttribute -- is ideal when you need to find a number of elements of different types that have the same attribute value.

The easiest way to check every element on a page is to loop through the collection returned by getElementsByTagName("*"). The only problem with this method is that Internet Explorer 5.0 and 5.5 do not support the asterisk wildcard for tag selection. Luckily, these browsers support the document.all property, which is an array containing all the elements on the page. getElementsByAttribute handles this issue with a simple code branch, then proceeds to check the elements for a given attribute value, adding matches to an array to be returned:

//&lt;strong&gt;get_elements_by_attribute.js&lt;/strong&gt;//

&lt;strong&gt;&lt;code&gt;function getElementsByAttribute(attribute, attributeValue)
{
 var elementArray = new Array();
 var matchedArray = new Array();

 if (document.all)
 {
   elementArray = document.all;
 }
 else
 {
   elementArray = document.getElementsByTagName("*");
 }

 for (var i = 0; i &lt;/code&gt;&lt;/strong&gt;</description>
		<content:encoded><![CDATA[<p><strong>Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.</p>
<p>[ Antoine de Saint-Exupery ]</strong></p>
<p>Cool &#8220;getbyclass&#8221; function script above&#8230;really short and nifty&#8230;</p>
<p>The ability to find all the elements that have a particular attribute can be pretty handy when you need to modify all elements that have the same class or title, for example.</p>
<p>I was working on my profile page and in order to find elements with a particular attribute value, I needed to check every element on the page for that attribute. This is a very calculation-intensive operation, so it shouldn&#8217;t be undertaken lightly. If you wanted to find all input elements with type=&#8221;checkbox&#8221;, you&#8217;re better off limiting your search to input elements first:</p>
<p><strong><code><br />
var inputs = document.getElementsByTagName("input");</p>
<p>for (var i = 0; i </code></strong></p>
<p>This will require less calculation than iterating through every element on the page and checking its type. However, the function presented in this solution &#8212; getElementsByAttribute &#8212; is ideal when you need to find a number of elements of different types that have the same attribute value.</p>
<p>The easiest way to check every element on a page is to loop through the collection returned by getElementsByTagName(&#8221;*&#8221;). The only problem with this method is that Internet Explorer 5.0 and 5.5 do not support the asterisk wildcard for tag selection. Luckily, these browsers support the document.all property, which is an array containing all the elements on the page. getElementsByAttribute handles this issue with a simple code branch, then proceeds to check the elements for a given attribute value, adding matches to an array to be returned:</p>
<p>//<strong>get_elements_by_attribute.js</strong>//</p>
<p><strong><code>function getElementsByAttribute(attribute, attributeValue)<br />
{<br />
 var elementArray = new Array();<br />
 var matchedArray = new Array();</p>
<p> if (document.all)<br />
 {<br />
   elementArray = document.all;<br />
 }<br />
 else<br />
 {<br />
   elementArray = document.getElementsByTagName("*");<br />
 }</p>
<p> for (var i = 0; i </code></strong></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matthew Schinckel</title>
		<link>http://schinckel.net/2006/09/18/inline-search/#comment-1517</link>
		<dc:creator>Matthew Schinckel</dc:creator>
		<pubDate>Mon, 26 Feb 2007 13:06:31 +0000</pubDate>
		<guid isPermaLink="false">http://schinckel.blogsome.com/2006/09/18/inline-search/#comment-1517</guid>
		<description>Dunno.  But he's pretty helpful, you can ask him.  I think he may have used a toolkit from somewhere.</description>
		<content:encoded><![CDATA[<p>Dunno.  But he&#8217;s pretty helpful, you can ask him.  I think he may have used a toolkit from somewhere.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://schinckel.net/2006/09/18/inline-search/#comment-1512</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Sat, 24 Feb 2007 12:30:47 +0000</pubDate>
		<guid isPermaLink="false">http://schinckel.blogsome.com/2006/09/18/inline-search/#comment-1512</guid>
		<description>ok i got it to work :P
how could i make the results come down in a shelf like &lt;a href="http://kreaper.blogsome.com/" rel="nofollow"&gt;http://kreaper.blogsome.com/&lt;/a&gt; has done as it would save my sidebar space :D</description>
		<content:encoded><![CDATA[<p>ok i got it to work <img src='http://schinckel.net/blog/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /><br />
how could i make the results come down in a shelf like <a href="http://kreaper.blogsome.com/" rel="nofollow">http://kreaper.blogsome.com/</a> has done as it would save my sidebar space <img src='http://schinckel.net/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://schinckel.net/2006/09/18/inline-search/#comment-1504</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Sat, 17 Feb 2007 11:47:10 +0000</pubDate>
		<guid isPermaLink="false">http://schinckel.blogsome.com/2006/09/18/inline-search/#comment-1504</guid>
		<description>well i re-coded my site to have a side bar (i missed it too much)

i got the search to work a bit i enter in the word i want to search for it dose the searching but dosnt come up with any results :( it just keeps on saying searching</description>
		<content:encoded><![CDATA[<p>well i re-coded my site to have a side bar (i missed it too much)</p>
<p>i got the search to work a bit i enter in the word i want to search for it dose the searching but dosnt come up with any results <img src='http://schinckel.net/blog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> it just keeps on saying searching</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://schinckel.net/2006/09/18/inline-search/#comment-1503</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Fri, 16 Feb 2007 19:01:20 +0000</pubDate>
		<guid isPermaLink="false">http://schinckel.blogsome.com/2006/09/18/inline-search/#comment-1503</guid>
		<description>Thats quite impresive.
Same i gave up my sidebar :(
I would of loved to have had that replace the standerd search forms you get.</description>
		<content:encoded><![CDATA[<p>Thats quite impresive.<br />
Same i gave up my sidebar <img src='http://schinckel.net/blog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /><br />
I would of loved to have had that replace the standerd search forms you get.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matthew Schinckel</title>
		<link>http://schinckel.net/2006/09/18/inline-search/#comment-1450</link>
		<dc:creator>Matthew Schinckel</dc:creator>
		<pubDate>Tue, 07 Nov 2006 00:35:59 +0000</pubDate>
		<guid isPermaLink="false">http://schinckel.blogsome.com/2006/09/18/inline-search/#comment-1450</guid>
		<description>Yes, and damn my ISP hosting service - it seems to be rather flaky.  Might have to move the scripts back to Blogsome... it's down again right now, for instance.</description>
		<content:encoded><![CDATA[<p>Yes, and damn my ISP hosting service - it seems to be rather flaky.  Might have to move the scripts back to Blogsome&#8230; it&#8217;s down again right now, for instance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matthew Schinckel</title>
		<link>http://schinckel.net/2006/09/18/inline-search/#comment-1449</link>
		<dc:creator>Matthew Schinckel</dc:creator>
		<pubDate>Tue, 07 Nov 2006 00:35:11 +0000</pubDate>
		<guid isPermaLink="false">http://schinckel.blogsome.com/2006/09/18/inline-search/#comment-1449</guid>
		<description>Yeah, I have thought a bit about having AJAX Blogsome, but I might not implement it.  It's probably something that would be easier to do from scratch, with a clean WordPress install.

If I ever get around to setting up a home host, I might do it there.</description>
		<content:encoded><![CDATA[<p>Yeah, I have thought a bit about having AJAX Blogsome, but I might not implement it.  It&#8217;s probably something that would be easier to do from scratch, with a clean WordPress install.</p>
<p>If I ever get around to setting up a home host, I might do it there.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
