<?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 for Ilia Draznin</title>
	<atom:link href="http://www.iliadraznin.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.iliadraznin.com</link>
	<description>Web Developer, Designer and Enthusiast</description>
	<lastBuildDate>Wed, 25 Jan 2012 17:01:02 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>Comment on Better jQuery Placeholder Plugin by sethwill</title>
		<link>http://www.iliadraznin.com/2011/02/jquery-placeholder-plugin/#comment-860</link>
		<dc:creator>sethwill</dc:creator>
		<pubDate>Wed, 25 Jan 2012 17:01:02 +0000</pubDate>
		<guid isPermaLink="false">http://iliadraznin.com/?p=398#comment-860</guid>
		<description>Yeah, I am on the same page as BAL.

 

It appears that this is broken, since it doesn&#039;t show &quot;username&quot; placeholder in the latest versions of chrome or firefox.</description>
		<content:encoded><![CDATA[<p>Yeah, I am on the same page as BAL.</p>
<p>It appears that this is broken, since it doesn’t show “username” placeholder in the latest versions of chrome or firefox.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Optimizing JavaScript and jQuery by rob.clarkson</title>
		<link>http://www.iliadraznin.com/2011/04/optimizing-javascript-jquery/#comment-857</link>
		<dc:creator>rob.clarkson</dc:creator>
		<pubDate>Fri, 21 Oct 2011 15:28:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.iliadraznin.com/?p=599#comment-857</guid>
		<description>I&#039;d think if you really want to squeeze every ounce out of the code you&#039;d use:

 

document.getElementById(&#039;#somelist&#039;).getElementsByTagName(&#039;li&#039;);

 

instead of:

 

$(&#039;#somelist&#039;).find(&#039;li&#039;) 

 

And skip the extra abstraction.</description>
		<content:encoded><![CDATA[<p>I’d think if you really want to squeeze every ounce out of the code you’d use:</p>
<p>document.getElementById(‘#somelist’).getElementsByTagName(‘li’);</p>
<p>instead of:</p>
<p>$(‘#somelist’).find(‘li’) </p>
<p>And skip the extra abstraction.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Better jQuery Placeholder Plugin by BAL</title>
		<link>http://www.iliadraznin.com/2011/02/jquery-placeholder-plugin/#comment-856</link>
		<dc:creator>BAL</dc:creator>
		<pubDate>Sat, 15 Oct 2011 21:37:46 +0000</pubDate>
		<guid isPermaLink="false">http://iliadraznin.com/?p=398#comment-856</guid>
		<description>Ok--stupid question here. I&#039;m looking at the source for your demo page:

 

http://www.iliadraznin.com/examples/better-jquery-placeholder-script/

 

In the first form, the first input field has no visible placeholder. I&#039;m looking on Chrome 14. In the source, the placeholder is &quot;username&quot;. Am I missing something basic here?</description>
		<content:encoded><![CDATA[<p>Ok–stupid question here. I’m looking at the source for your demo page:</p>
<p><a href="http://www.iliadraznin.com/examples/better-jquery-placeholder-script/" rel="nofollow">http://www.iliadraznin.com/examples/better-jquery-placeholder-script/</a></p>
<p>In the first form, the first input field has no visible placeholder. I’m looking on Chrome 14. In the source, the placeholder is “username”. Am I missing something basic here?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Better jQuery Placeholder Plugin by Sener</title>
		<link>http://www.iliadraznin.com/2011/02/jquery-placeholder-plugin/#comment-841</link>
		<dc:creator>Sener</dc:creator>
		<pubDate>Tue, 12 Jul 2011 13:17:41 +0000</pubDate>
		<guid isPermaLink="false">http://iliadraznin.com/?p=398#comment-841</guid>
		<description>Hi, first I need to say its very usefull and stable, thank you =)

When you try to click password fields; span is cover the hit area and it became unclikleable in ie.. anyway I just changed little part of css maybe someone need it. I keeped span area small as possible. so user can click span&#039;s left,up or down space area. I tested all ie versions.

thanks again..

css: {
border: &#039;none&#039;,
cursor: &#039;text&#039;,
background: &#039;none&#039;, // &lt;- none is better than transparent..
position:	&#039;absolute&#039;,
top: el.position().top+4,
left: el.position().left+2,
// lineHeight: el.height()+&#039;px&#039;, // &lt;- no need this..
paddingLeft:parseFloat(el.css(&#039;paddingLeft&#039;))+&#039;px&#039;
}</description>
		<content:encoded><![CDATA[<p>Hi, first I need to say its very usefull and stable, thank you =)</p>
<p>When you try to click password fields; span is cover the hit area and it became unclikleable in ie.. anyway I just changed little part of css maybe someone need it. I keeped span area small as possible. so user can click span’s left,up or down space area. I tested all ie versions.</p>
<p>thanks again..</p>
<p>css: {<br />
border: ‘none’,<br />
cursor: ‘text’,<br />
background: ‘none’, // &lt;- none is better than transparent..<br />
position:	’absolute’,<br />
top: el.position().top+4,<br />
left: el.position().left+2,<br />
// lineHeight: el.height()+‘px’, // &lt;- no need this..<br />
paddingLeft:parseFloat(el.css(‘paddingLeft’))+‘px’<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Re-writing my blog with HTML5 by Jim Weaver</title>
		<link>http://www.iliadraznin.com/2011/02/rewriting-blog-html5/#comment-838</link>
		<dc:creator>Jim Weaver</dc:creator>
		<pubDate>Sat, 28 May 2011 16:47:31 +0000</pubDate>
		<guid isPermaLink="false">http://iliadraznin.com/?p=413#comment-838</guid>
		<description>Ilia,

Thanks for this post.  I&#039;m thinking about moving my blog http://javafxpert.com to an HTML5 semantic elements approach as well, and your posts are helpful in that regard.  The approach I&#039;m thinking about taking is rich-client Java/JavaFX with an embedded browser, where the Java application will find HTML content and send it to the embedded browser.  Any input on this approach would be appreciated.

Regards,
Jim Weaver</description>
		<content:encoded><![CDATA[<p>Ilia,</p>
<p>Thanks for this post.  I’m thinking about moving my blog <a href="http://javafxpert.com" rel="nofollow">http://javafxpert.com</a> to an HTML5 semantic elements approach as well, and your posts are helpful in that regard.  The approach I’m thinking about taking is rich-client Java/JavaFX with an embedded browser, where the Java application will find HTML content and send it to the embedded browser.  Any input on this approach would be appreciated.</p>
<p>Regards,<br />
Jim Weaver</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Better jQuery Placeholder Plugin by Brad</title>
		<link>http://www.iliadraznin.com/2011/02/jquery-placeholder-plugin/#comment-776</link>
		<dc:creator>Brad</dc:creator>
		<pubDate>Wed, 06 Apr 2011 14:45:10 +0000</pubDate>
		<guid isPermaLink="false">http://iliadraznin.com/?p=398#comment-776</guid>
		<description>Awesome, that fix the &quot;issue&quot;. Thanks a million!</description>
		<content:encoded><![CDATA[<p>Awesome, that fix the “issue”. Thanks a million!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Better jQuery Placeholder Plugin by Ilia</title>
		<link>http://www.iliadraznin.com/2011/02/jquery-placeholder-plugin/#comment-771</link>
		<dc:creator>Ilia</dc:creator>
		<pubDate>Wed, 06 Apr 2011 03:55:17 +0000</pubDate>
		<guid isPermaLink="false">http://iliadraznin.com/?p=398#comment-771</guid>
		<description>That&#039;s not a bug, that&#039;s a feature... no, I&#039;m serious. :)
Firefox, on reload, leaves the value of input fields intact unless specifically set to nothing, i.e. &lt;code&gt;&lt;input ... value=&quot;&quot;&gt;&lt;/code&gt; and even in that case I&#039;m not entirely sure that behaviour is consistent (I think I recently saw it ignore value=&quot;&quot; but it could&#039;ve been something else in the code, didn&#039;t bother to investigate further).
Since for non-password fields the placeholder text is just the value of the field, when you reload the code looks at the field and sees that it has value and assumes it&#039;s a valid value that you don&#039;t want &quot;cleared&quot; so it leaves it alone.

I didn&#039;t want to use javascript to force blank value on page load because that seemed like the kind of thing that can cause conflicts with other code some developer might be using. Having said that though it occurs to me that it can be fixed rather easily if not elegantly, simply add a comparison between current value of input field and what the placeholder text is, if they&#039;re the same, chances are (especially on page load), it is indeed the placeholder.

So basically change &lt;code&gt;if ( valueEmpty(el.val()) )&lt;/code&gt; to &lt;code&gt;if ( valueEmpty(el.val()) &#124;&#124; el.val()==ph )&lt;/code&gt; and it should take care of this.</description>
		<content:encoded><![CDATA[<p>That’s not a bug, that’s a feature… no, I’m serious. <img src='http://www.iliadraznin.com/wp/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
Firefox, on reload, leaves the value of input fields intact unless specifically set to nothing, i.e. <code>&lt;input ... value=""&gt;</code> and even in that case I’m not entirely sure that behaviour is consistent (I think I recently saw it ignore value=”” but it could’ve been something else in the code, didn’t bother to investigate further).<br />
Since for non-password fields the placeholder text is just the value of the field, when you reload the code looks at the field and sees that it has value and assumes it’s a valid value that you don’t want “cleared” so it leaves it alone.</p>
<p>I didn’t want to use javascript to force blank value on page load because that seemed like the kind of thing that can cause conflicts with other code some developer might be using. Having said that though it occurs to me that it can be fixed rather easily if not elegantly, simply add a comparison between current value of input field and what the placeholder text is, if they’re the same, chances are (especially on page load), it is indeed the placeholder.</p>
<p>So basically change <code>if ( valueEmpty(el.val()) )</code> to <code>if ( valueEmpty(el.val()) || el.val()==ph )</code> and it should take care of this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Better jQuery Placeholder Plugin by Brad</title>
		<link>http://www.iliadraznin.com/2011/02/jquery-placeholder-plugin/#comment-766</link>
		<dc:creator>Brad</dc:creator>
		<pubDate>Tue, 05 Apr 2011 18:34:52 +0000</pubDate>
		<guid isPermaLink="false">http://iliadraznin.com/?p=398#comment-766</guid>
		<description>I did a little poking around with firebug and found that when you first load the page the placeholder query script inserts the &quot;placeholder&quot; class:



then once the page is refreshed the placehodler class is removed:



Not sure if that helps you in troubleshooting any but that is what I have found so far.</description>
		<content:encoded><![CDATA[<p>I did a little poking around with firebug and found that when you first load the page the placeholder query script inserts the “placeholder” class:</p>
<p>then once the page is refreshed the placehodler class is removed:</p>
<p>Not sure if that helps you in troubleshooting any but that is what I have found so far.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced
Database Caching using disk: basic

Served from: www.iliadraznin.com @ 2012-02-04 17:37:09 -->
