<?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: &#8220;Search on this Page&#8221; using jQuery</title>
	<atom:link href="http://blog.mastykarz.nl/search-page-jquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.mastykarz.nl/search-page-jquery/</link>
	<description>Innovation Matters &#124; SharePoint Server MVP &#124; ISSN 2210-9390</description>
	<lastBuildDate>Wed, 08 Sep 2010 18:25:54 +0200</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Waldek Mastykarz</title>
		<link>http://blog.mastykarz.nl/search-page-jquery/comment-page-1/#comment-45501</link>
		<dc:creator>Waldek Mastykarz</dc:creator>
		<pubDate>Wed, 31 Mar 2010 04:21:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mastykarz.nl/search-page-jquery/#comment-45501</guid>
		<description>@tfforums: great suggestions. Thanks for the feedback.</description>
		<content:encoded><![CDATA[<p>@tfforums: great suggestions. Thanks for the feedback.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tfforums</title>
		<link>http://blog.mastykarz.nl/search-page-jquery/comment-page-1/#comment-45500</link>
		<dc:creator>tfforums</dc:creator>
		<pubDate>Wed, 31 Mar 2010 04:18:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mastykarz.nl/search-page-jquery/#comment-45500</guid>
		<description>OH - i forgot
var searchText = escape(this.value);
searchText=searchText.replace(/%20/gi,&quot;\\s&quot;);

makes it search over spaces too.</description>
		<content:encoded><![CDATA[<p>OH &#8211; i forgot<br />
var searchText = escape(this.value);<br />
searchText=searchText.replace(/%20/gi,&#034;\\s&#034;);</p>
<p>makes it search over spaces too.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tfforums</title>
		<link>http://blog.mastykarz.nl/search-page-jquery/comment-page-1/#comment-45499</link>
		<dc:creator>tfforums</dc:creator>
		<pubDate>Wed, 31 Mar 2010 04:17:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mastykarz.nl/search-page-jquery/#comment-45499</guid>
		<description>Hi

There are 2 main issues with this script. 

1 - it searches within the HTML tags them selves, partially fixed with:

var htmls= $(this).html();
            var text= $(this).text();
            if(text.match(regx))
            {
 //original replacement code
            }

That way it has to match the text and then replaces on the html - muuuch better but still not 100% 

2) if the text wrapper matches multiple - the object only stores the original html for the first instance... fixed by:
 // --- public methods
    this.resetOriginalText= function() {
 var instance = this;

      $(instance.textWrapper).each(function(i){$(this).html(instance.originalText[i]);});
    }

and 

 this.setOriginalText= function() {
var instance=this;
 $(&quot;.ms-vb,.ms-vb2&quot;).each(function(i){

instance.originalText[i]=$(this).html();
});
instance.set=true;
}</description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>There are 2 main issues with this script. </p>
<p>1 &#8211; it searches within the HTML tags them selves, partially fixed with:</p>
<p>var htmls= $(this).html();<br />
            var text= $(this).text();<br />
            if(text.match(regx))<br />
            {<br />
 //original replacement code<br />
            }</p>
<p>That way it has to match the text and then replaces on the html &#8211; muuuch better but still not 100% </p>
<p>2) if the text wrapper matches multiple &#8211; the object only stores the original html for the first instance&#8230; fixed by:<br />
 // &#8212; public methods<br />
    this.resetOriginalText= function() {<br />
 var instance = this;</p>
<p>      $(instance.textWrapper).each(function(i){$(this).html(instance.originalText[i]);});<br />
    }</p>
<p>and </p>
<p> this.setOriginalText= function() {<br />
var instance=this;<br />
 $(&#034;.ms-vb,.ms-vb2&#034;).each(function(i){</p>
<p>instance.originalText[i]=$(this).html();<br />
});<br />
instance.set=true;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Waldek Mastykarz</title>
		<link>http://blog.mastykarz.nl/search-page-jquery/comment-page-1/#comment-26465</link>
		<dc:creator>Waldek Mastykarz</dc:creator>
		<pubDate>Tue, 25 Aug 2009 09:53:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mastykarz.nl/search-page-jquery/#comment-26465</guid>
		<description>@Suraj: the header you&#039;ve mentioned is okay with me. Please note, that by including the code in your custom solution you are the one responsible for it, meaning providing any fixes, support, etc.
Glad I could help!</description>
		<content:encoded><![CDATA[<p>@Suraj: the header you&#039;ve mentioned is okay with me. Please note, that by including the code in your custom solution you are the one responsible for it, meaning providing any fixes, support, etc.<br />
Glad I could help!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Suraj Kurapati</title>
		<link>http://blog.mastykarz.nl/search-page-jquery/comment-page-1/#comment-26462</link>
		<dc:creator>Suraj Kurapati</dc:creator>
		<pubDate>Tue, 25 Aug 2009 06:45:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mastykarz.nl/search-page-jquery/#comment-26462</guid>
		<description>Hello Waldek,

I want to use this library in my open source project, but it isn\&#039;t clear what license your  code was released under (I\&#039;m assuming public domain since you included it in a tutorial).

If there isn\&#039;t a particular license attached to the code, will the following file header be sufficient attribution?  Thanks.

&lt;pre&gt;
/*
  \&quot;Search on this Page\&quot; plugin for jQuery by
  Waldek Mastykarz &lt;http://blog.mastykarz.nl&gt;

  Published online, on 17 November 2008, at
  &lt;http://www.endusersharepoint.com/?p=951&gt; and
  &lt;http://blog.mastykarz.nl/search-page-jquery/&gt;

  This source code was extracted directly from this demo page:
  &lt;http://blog.mastykarz.nl/samples/jquery/searchOnThisPage.html&gt;
*/
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Hello Waldek,</p>
<p>I want to use this library in my open source project, but it isn\&#039;t clear what license your  code was released under (I\&#039;m assuming public domain since you included it in a tutorial).</p>
<p>If there isn\&#039;t a particular license attached to the code, will the following file header be sufficient attribution?  Thanks.</p>
<p>&lt;pre&gt;<br />
/*<br />
  \&quot;Search on this Page\&quot; plugin for jQuery by<br />
  Waldek Mastykarz &lt;http://blog.mastykarz.nl&gt;</p>
<p>  Published online, on 17 November 2008, at<br />
  &lt;http://www.endusersharepoint.com/?p=951&gt; and<br />
  &lt;http://blog.mastykarz.nl/search-page-jquery/&gt;</p>
<p>  This source code was extracted directly from this demo page:<br />
  &lt;http://blog.mastykarz.nl/samples/jquery/searchOnThisPage.html&gt;<br />
*/<br />
&lt;/pre&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Waldek Mastykarz</title>
		<link>http://blog.mastykarz.nl/search-page-jquery/comment-page-1/#comment-10808</link>
		<dc:creator>Waldek Mastykarz</dc:creator>
		<pubDate>Tue, 13 Jan 2009 20:01:47 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mastykarz.nl/search-page-jquery/#comment-10808</guid>
		<description>@Christoph: Thank you for the feedback, Christoph. I appreciate it. As for your question: I believe that the problem has to do with the regular expression which runs the search. I think that the regex engine doesn&#039;t recognize spaces as valid characters and would rather expect \s (which could be of course replaced on-the-fly but somehow slipped my mind ;-)).</description>
		<content:encoded><![CDATA[<p>@Christoph: Thank you for the feedback, Christoph. I appreciate it. As for your question: I believe that the problem has to do with the regular expression which runs the search. I think that the regex engine doesn&#039;t recognize spaces as valid characters and would rather expect \s (which could be of course replaced on-the-fly but somehow slipped my mind <img src='http://blog.mastykarz.nl/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> ).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christoph</title>
		<link>http://blog.mastykarz.nl/search-page-jquery/comment-page-1/#comment-10803</link>
		<dc:creator>Christoph</dc:creator>
		<pubDate>Tue, 13 Jan 2009 14:23:24 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mastykarz.nl/search-page-jquery/#comment-10803</guid>
		<description>Waldek,

I really love your site - it&#039;s an abounding source of know how and tips. I tested the demo of this script on endusersharepoint.com and it would only work when I entered one search term in the box. Any ideas why it would not work once a space is entered? &#039;Lorem ipsum&#039; should definitely be found...</description>
		<content:encoded><![CDATA[<p>Waldek,</p>
<p>I really love your site &#8211; it&#039;s an abounding source of know how and tips. I tested the demo of this script on endusersharepoint.com and it would only work when I entered one search term in the box. Any ideas why it would not work once a space is entered? &#039;Lorem ipsum&#039; should definitely be found&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Waldek Mastykarz</title>
		<link>http://blog.mastykarz.nl/search-page-jquery/comment-page-1/#comment-9674</link>
		<dc:creator>Waldek Mastykarz</dc:creator>
		<pubDate>Wed, 10 Dec 2008 21:56:24 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mastykarz.nl/search-page-jquery/#comment-9674</guid>
		<description>@James: I have created a JavaScript equivalent of the Google Chrome search highlight. You can use the JavaScript in any browser.</description>
		<content:encoded><![CDATA[<p>@James: I have created a JavaScript equivalent of the Google Chrome search highlight. You can use the JavaScript in any browser.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James</title>
		<link>http://blog.mastykarz.nl/search-page-jquery/comment-page-1/#comment-9670</link>
		<dc:creator>James</dc:creator>
		<pubDate>Wed, 10 Dec 2008 20:25:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mastykarz.nl/search-page-jquery/#comment-9670</guid>
		<description>It&#039;s an interesting feature, one that I&#039;d love to use but, alas, I am (for once) crippled by mac and can&#039;t use chrome at the moment</description>
		<content:encoded><![CDATA[<p>It&#039;s an interesting feature, one that I&#039;d love to use but, alas, I am (for once) crippled by mac and can&#039;t use chrome at the moment</p>
]]></content:encoded>
	</item>
</channel>
</rss>
