<?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>... coding (the life) &#187; jquery</title>
	<atom:link href="http://www.marvinmarcelo.com/tag/jquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.marvinmarcelo.com</link>
	<description>Anything about programming, and a little about me.</description>
	<lastBuildDate>Mon, 09 Jan 2012 13:44:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Playing around with jQuery &#8211; prefill search input field with description</title>
		<link>http://www.marvinmarcelo.com/playing-around-with-jquery-prefill-search-input-field-with-description/</link>
		<comments>http://www.marvinmarcelo.com/playing-around-with-jquery-prefill-search-input-field-with-description/#comments</comments>
		<pubDate>Fri, 15 Oct 2010 05:38:28 +0000</pubDate>
		<dc:creator>Marvin</dc:creator>
				<category><![CDATA[productivity]]></category>
		<category><![CDATA[work related]]></category>
		<category><![CDATA[addClass]]></category>
		<category><![CDATA[bind]]></category>
		<category><![CDATA[blur]]></category>
		<category><![CDATA[focus]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[removeClass]]></category>

		<guid isPermaLink="false">http://www.marvinmarcelo.com/?p=1739</guid>
		<description><![CDATA[It&#8217;s been long since I made changes to my wordpress blog site, this is what happens when you have free time as a programmer. So, I just realized the submit button on the search form on the header is not &#8230; <a href="http://www.marvinmarcelo.com/playing-around-with-jquery-prefill-search-input-field-with-description/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s been long since I made changes to my wordpress blog site, this is what happens when you have free time as a programmer. </p>
<p>So, I just realized the submit button on the search form on the header is not really important, I hid it now by simply <code>display: hidden;</code>. Then, some text might help to indicate that that form above is used for search. </p>
<p>Here&#8217;s the code</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">var</span> changed <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">;</span>
$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#searchform #s'</span><span style="color: #009900;">&#41;</span>
  .<span style="color: #660066;">addClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'quiet'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">val</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'Search...'</span><span style="color: #009900;">&#41;</span>
  .<span style="color: #660066;">bind</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'change'</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span> <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span>changed <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> changed <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span> <span style="color: #009900;">&#125;</span> <span style="color: #009900;">&#41;</span>
  .<span style="color: #660066;">bind</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'focus'</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span> $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">removeClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'quiet'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span>changed <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">val</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">''</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span>  <span style="color: #009900;">&#125;</span> <span style="color: #009900;">&#41;</span>
  .<span style="color: #660066;">bind</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'blur'</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span> <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span>changed <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">val</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'Search...'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">addClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'quiet'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span> <span style="color: #009900;">&#125;</span> 
<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>In wordpress, the search input field name is &#8216;s&#8217;, in case you find this helpful and want to use it, just replace the <code>#searchform #s</code> with your own <a href="http://api.jquery.com/jQuery/">selector</a>. I might make this a plugin someday.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.marvinmarcelo.com/playing-around-with-jquery-prefill-search-input-field-with-description/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Javascript Encryption</title>
		<link>http://www.marvinmarcelo.com/javascript-encryption/</link>
		<comments>http://www.marvinmarcelo.com/javascript-encryption/#comments</comments>
		<pubDate>Sun, 09 Aug 2009 01:13:39 +0000</pubDate>
		<dc:creator>Marvin</dc:creator>
				<category><![CDATA[me stuff]]></category>
		<category><![CDATA[productivity]]></category>
		<category><![CDATA[work related]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://www.marvinmarcelo.com/?p=1185</guid>
		<description><![CDATA[jCryption, is simply Javascript Encryption. &#8220;j&#8221; stands for jQuery as core framework. And as always, everybody likes jQuery. Normally if you submit a form and you don&#8217;t use SSL, your data will be sent in plain text. But SSL is &#8230; <a href="http://www.marvinmarcelo.com/javascript-encryption/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.jcryption.org/">jCryption</a>, is simply Javascript Encryption. &#8220;j&#8221; stands for jQuery as core framework. And as always, everybody likes <a href="http://jquery.com">jQuery</a>.</p>
<blockquote><p>Normally if you submit a form and you don&#8217;t use SSL, your data will be sent in plain text.<br />
But SSL is neither supported by every webhost nor it&#8217;s easy to install/apply sometimes.<br />
So I created this plug-in in order that you are able to encrypt your data fast and simple.<br />
jCryption uses the<strong> public-key algorithm of RSA </strong>for the encryption.</p></blockquote>
<p><a href="http://www.jcryption.org/about/">Author&#8217;s site</a> had a good documentation on usage.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.marvinmarcelo.com/javascript-encryption/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Removing Google custom search watermark using jQuery</title>
		<link>http://www.marvinmarcelo.com/removing-google-custom-search-watermark-using-jquery/</link>
		<comments>http://www.marvinmarcelo.com/removing-google-custom-search-watermark-using-jquery/#comments</comments>
		<pubDate>Thu, 18 Jun 2009 00:36:33 +0000</pubDate>
		<dc:creator>Marvin</dc:creator>
				<category><![CDATA[me stuff]]></category>
		<category><![CDATA[work related]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[quicky]]></category>

		<guid isPermaLink="false">http://www.marvinmarcelo.com/?p=1085</guid>
		<description><![CDATA[Simple way to remove Google watermark in search text box. $&#40;document&#41;.ready&#40;function&#40;&#41; &#123; $&#40;&#34;#cse-search-box input[name=q]&#34;&#41;.css&#40;&#34;background-color&#34;, &#34;#fff&#34;&#41;; &#125;&#41;; You need to include jQuery package first, of course.]]></description>
			<content:encoded><![CDATA[<p>Simple way to remove Google watermark in search text box.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ready</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
     $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#cse-search-box input[name=q]&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;background-color&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;#fff&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>You need to include jQuery package first, of course.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.marvinmarcelo.com/removing-google-custom-search-watermark-using-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

