<?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: Advanced jQuery Placeholder Plugin (cross-browser support)</title>
	<atom:link href="http://web.enavu.com/design/advanced-jquery-placeholder-plugin-cross-browser-support/feed/" rel="self" type="application/rss+xml" />
	<link>http://web.enavu.com/design/advanced-jquery-placeholder-plugin-cross-browser-support/</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Wed, 18 Jan 2012 08:51:35 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Chris Jacob</title>
		<link>http://web.enavu.com/design/advanced-jquery-placeholder-plugin-cross-browser-support/comment-page-1/#comment-10357</link>
		<dc:creator>Chris Jacob</dc:creator>
		<pubDate>Wed, 01 Sep 2010 01:14:16 +0000</pubDate>
		<guid isPermaLink="false">http://web.enavu.com/?p=1856#comment-10357</guid>
		<description>Would be nice if you include a note to indicate that this plugin requires jQuery 1.4+ for .focusin and .focusout support ... http://api.jquery.com/focusin/

Daniel&#039;s one worked a treat for me with jQuery 1.3.2 and looks more rock solid.
http://github.com/danielstocks/jQuery-Placeholder

Thank you for your contribution ;-)</description>
		<content:encoded><![CDATA[<p>Would be nice if you include a note to indicate that this plugin requires jQuery 1.4+ for .focusin and .focusout support &#8230; <a href="http://api.jquery.com/focusin/" rel="nofollow">http://api.jquery.com/focusin/</a></p>
<p>Daniel&#8217;s one worked a treat for me with jQuery 1.3.2 and looks more rock solid.<br />
<a href="http://github.com/danielstocks/jQuery-Placeholder" rel="nofollow">http://github.com/danielstocks/jQuery-Placeholder</a></p>
<p>Thank you for your contribution <img src='http://web.enavu.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://web.enavu.com/design/advanced-jquery-placeholder-plugin-cross-browser-support/comment-page-1/#comment-6269</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Thu, 22 Jul 2010 15:34:46 +0000</pubDate>
		<guid isPermaLink="false">http://web.enavu.com/?p=1856#comment-6269</guid>
		<description>Oh and I like the on Submit idea, i&#039;ll add that for sure.</description>
		<content:encoded><![CDATA[<p>Oh and I like the on Submit idea, i&#8217;ll add that for sure.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://web.enavu.com/design/advanced-jquery-placeholder-plugin-cross-browser-support/comment-page-1/#comment-6268</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Thu, 22 Jul 2010 15:29:55 +0000</pubDate>
		<guid isPermaLink="false">http://web.enavu.com/?p=1856#comment-6268</guid>
		<description>Jason I was intrigued by your observation that the plugin does not work in IE and has Problems in FF... this script is being used by an commerce website with traffic averaging 10k people a day. I had to thoroughly test this before deploying. My whole company has tested it on a plethora of browsers. I even downloaded the release from the link above created a sample page and tested again with no problems what so ever. I don&#039;t see how reversing the order of adding a class and changing a value could have fixed whatever issue you were having. But please post screenshots of the errors you are getting i&#039;m highly interested to see them!</description>
		<content:encoded><![CDATA[<p>Jason I was intrigued by your observation that the plugin does not work in IE and has Problems in FF&#8230; this script is being used by an commerce website with traffic averaging 10k people a day. I had to thoroughly test this before deploying. My whole company has tested it on a plethora of browsers. I even downloaded the release from the link above created a sample page and tested again with no problems what so ever. I don&#8217;t see how reversing the order of adding a class and changing a value could have fixed whatever issue you were having. But please post screenshots of the errors you are getting i&#8217;m highly interested to see them!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://web.enavu.com/design/advanced-jquery-placeholder-plugin-cross-browser-support/comment-page-1/#comment-6239</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Thu, 22 Jul 2010 07:05:24 +0000</pubDate>
		<guid isPermaLink="false">http://web.enavu.com/?p=1856#comment-6239</guid>
		<description>ps..

line 10 was the one causing the issue, changed it to this:
$(this).val(phvalue);
                        $(this).addClass(options.css_class);</description>
		<content:encoded><![CDATA[<p>ps..</p>
<p>line 10 was the one causing the issue, changed it to this:<br />
$(this).val(phvalue);<br />
                        $(this).addClass(options.css_class);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://web.enavu.com/design/advanced-jquery-placeholder-plugin-cross-browser-support/comment-page-1/#comment-6238</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Thu, 22 Jul 2010 07:04:48 +0000</pubDate>
		<guid isPermaLink="false">http://web.enavu.com/?p=1856#comment-6238</guid>
		<description>Hey Guys,

For some reason this script crashes IE and firefox doesn&#039;t like it. So I&#039;ve modified the script a lil, here it is below: 

It also has a form submit handler to remove the placeholder value on submit.


(function($) {
$.fn.placeholder = function(options) {
	var defaults = {css_class: &quot;placeholder&quot;};
	var options = $.extend(defaults, options);
	this.each(function() {

		var phvalue = $(this).attr(&quot;placeholder&quot;);
		var currvalue = $(this).attr(&quot;value&quot;);
		if (currvalue == &quot;&quot;) {
			$(this).val(phvalue);
                        $(this).addClass(options.css_class);
		}
		$(this).focusin(function(){
			var ph = $(this).attr(&quot;placeholder&quot;);
			if (ph == $(this).val()) {
				$(this).val(&quot;&quot;).removeClass(options.css_class);
			}
		});

		$(this).focusout(function(){
			var ph = $(this).attr(&quot;placeholder&quot;);
			if ($(this).val() == &quot;&quot;) {
				$(this).val(ph).addClass(options.css_class);
			}
		});
               

	});

         $(&#039;form&#039;).submit(function(){
                   $(&#039;input[type=text]&#039;, this).each(function(){
                       if($(this).val()==$(this).attr(&#039;placeholder&#039;)) $(this).val(&#039;&#039;);
                   });
         });

	return this;
	};
})(jQuery);</description>
		<content:encoded><![CDATA[<p>Hey Guys,</p>
<p>For some reason this script crashes IE and firefox doesn&#8217;t like it. So I&#8217;ve modified the script a lil, here it is below: </p>
<p>It also has a form submit handler to remove the placeholder value on submit.</p>
<p>(function($) {<br />
$.fn.placeholder = function(options) {<br />
	var defaults = {css_class: &#8220;placeholder&#8221;};<br />
	var options = $.extend(defaults, options);<br />
	this.each(function() {</p>
<p>		var phvalue = $(this).attr(&#8220;placeholder&#8221;);<br />
		var currvalue = $(this).attr(&#8220;value&#8221;);<br />
		if (currvalue == &#8220;&#8221;) {<br />
			$(this).val(phvalue);<br />
                        $(this).addClass(options.css_class);<br />
		}<br />
		$(this).focusin(function(){<br />
			var ph = $(this).attr(&#8220;placeholder&#8221;);<br />
			if (ph == $(this).val()) {<br />
				$(this).val(&#8220;&#8221;).removeClass(options.css_class);<br />
			}<br />
		});</p>
<p>		$(this).focusout(function(){<br />
			var ph = $(this).attr(&#8220;placeholder&#8221;);<br />
			if ($(this).val() == &#8220;&#8221;) {<br />
				$(this).val(ph).addClass(options.css_class);<br />
			}<br />
		});</p>
<p>	});</p>
<p>         $(&#8216;form&#8217;).submit(function(){<br />
                   $(&#8216;input[type=text]&#8216;, this).each(function(){<br />
                       if($(this).val()==$(this).attr(&#8216;placeholder&#8217;)) $(this).val(&#8221;);<br />
                   });<br />
         });</p>
<p>	return this;<br />
	};<br />
})(jQuery);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: admin</title>
		<link>http://web.enavu.com/design/advanced-jquery-placeholder-plugin-cross-browser-support/comment-page-1/#comment-5379</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Tue, 13 Jul 2010 15:57:37 +0000</pubDate>
		<guid isPermaLink="false">http://web.enavu.com/?p=1856#comment-5379</guid>
		<description>Pretty Cool Daniel! I didn&#039;t see much use for a placeholder in password fields, but now i kind of do!</description>
		<content:encoded><![CDATA[<p>Pretty Cool Daniel! I didn&#8217;t see much use for a placeholder in password fields, but now i kind of do!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: D</title>
		<link>http://web.enavu.com/design/advanced-jquery-placeholder-plugin-cross-browser-support/comment-page-1/#comment-5377</link>
		<dc:creator>D</dc:creator>
		<pubDate>Tue, 13 Jul 2010 13:23:16 +0000</pubDate>
		<guid isPermaLink="false">http://web.enavu.com/?p=1856#comment-5377</guid>
		<description>Nice to see some different approaches to this, HTML5 Placeholders are awesome!

I made a version that also supports input type=&quot;password&quot; (even for IE that doesn&#039;t allow changing input type for showing a placeholder). 

http://github.com/danielstocks/jQuery-Placeholder

Cheers</description>
		<content:encoded><![CDATA[<p>Nice to see some different approaches to this, HTML5 Placeholders are awesome!</p>
<p>I made a version that also supports input type=&#8221;password&#8221; (even for IE that doesn&#8217;t allow changing input type for showing a placeholder). </p>
<p><a href="http://github.com/danielstocks/jQuery-Placeholder" rel="nofollow">http://github.com/danielstocks/jQuery-Placeholder</a></p>
<p>Cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Advanced jQuery Placeholder Plugin (cross-browser support) &#124; Lively Web Tuts</title>
		<link>http://web.enavu.com/design/advanced-jquery-placeholder-plugin-cross-browser-support/comment-page-1/#comment-4490</link>
		<dc:creator>Advanced jQuery Placeholder Plugin (cross-browser support) &#124; Lively Web Tuts</dc:creator>
		<pubDate>Fri, 02 Jul 2010 22:45:31 +0000</pubDate>
		<guid isPermaLink="false">http://web.enavu.com/?p=1856#comment-4490</guid>
		<description>[...] Direct Link [...]</description>
		<content:encoded><![CDATA[<p>[...] Direct Link [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Angel Grablev</title>
		<link>http://web.enavu.com/design/advanced-jquery-placeholder-plugin-cross-browser-support/comment-page-1/#comment-4480</link>
		<dc:creator>Angel Grablev</dc:creator>
		<pubDate>Fri, 02 Jul 2010 20:46:42 +0000</pubDate>
		<guid isPermaLink="false">http://web.enavu.com/?p=1856#comment-4480</guid>
		<description>Hey teebee i&#039;m sorry for not including a license the plugin is so simple and clean i really didn&#039;t think it needed one. But feel free to use it in ANY way you like with no accreditation required! If you want to you are always welcome to add a link to enavu.com! We are a growing community/company that actively tried to help web developers with all sorts of tools/plugins/frameworks/applications so anything you do to help us spread the word is welcome.

Thanks!</description>
		<content:encoded><![CDATA[<p>Hey teebee i&#8217;m sorry for not including a license the plugin is so simple and clean i really didn&#8217;t think it needed one. But feel free to use it in ANY way you like with no accreditation required! If you want to you are always welcome to add a link to enavu.com! We are a growing community/company that actively tried to help web developers with all sorts of tools/plugins/frameworks/applications so anything you do to help us spread the word is welcome.</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: teebee</title>
		<link>http://web.enavu.com/design/advanced-jquery-placeholder-plugin-cross-browser-support/comment-page-1/#comment-4473</link>
		<dc:creator>teebee</dc:creator>
		<pubDate>Fri, 02 Jul 2010 18:46:35 +0000</pubDate>
		<guid isPermaLink="false">http://web.enavu.com/?p=1856#comment-4473</guid>
		<description>I downloaded this and noticed you didn&#039;t put any author or copyright info in the plugin.  You might want to add a comment or two and give yourself credit and let us developers know if we can use this code freely.  Thanks!

PS: Your &quot;Submit Comment&quot; buttons text is truncated in Firefox 3.5.10</description>
		<content:encoded><![CDATA[<p>I downloaded this and noticed you didn&#8217;t put any author or copyright info in the plugin.  You might want to add a comment or two and give yourself credit and let us developers know if we can use this code freely.  Thanks!</p>
<p>PS: Your &#8220;Submit Comment&#8221; buttons text is truncated in Firefox 3.5.10</p>
]]></content:encoded>
	</item>
</channel>
</rss>

