<?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: jQuery &#8220;Populate&#8221; plugin</title>
	<atom:link href="http://www.keyframesandcode.com/code/development/javascript/jquery-populate-plugin/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.keyframesandcode.com/code/development/javascript/jquery-populate-plugin/</link>
	<description>MaxScript, ActionScript, PHP &#38; JavaScript</description>
	<lastBuildDate>Mon, 05 Dec 2011 16:19:17 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Jovan Popovic</title>
		<link>http://www.keyframesandcode.com/code/development/javascript/jquery-populate-plugin/comment-page-1/#comment-51837</link>
		<dc:creator>Jovan Popovic</dc:creator>
		<pubDate>Sat, 16 Apr 2011 00:05:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.keyframesandcode.com/code/?p=17#comment-51837</guid>
		<description>Hi Dave,

I have tried this plugin and it looks great. I have few questions about the plugin.
1. On the demo page in text area example you wrote that &quot;This functionality is currently buggy, and is undergoing review!&quot;. I have placed textarea and it works fine. What is a bug here?
2. Is there a chance to accept non-string types in JSON. I have check box with values true and false and I need to put something like { Selected: &quot;true&quot; } instead of {Selected: true} in JSON. I don&#039;t see why you have this constraint because to resolve this you will need to change line in the &quot;checkbox&quot; case branch:

element.checked &#124;= element.value == values[j];

to 

element.checked &#124;= element.value == values[j].toString();

I think that the same issue is for select lists. Usually values of select lists are numbers so it is a problem to convert them to string each time, espessially if we are using some library that automatically generate JSON based on actual object.

Regards,
Jovan</description>
		<content:encoded><![CDATA[<p>Hi Dave,</p>
<p>I have tried this plugin and it looks great. I have few questions about the plugin.<br />
1. On the demo page in text area example you wrote that &#8220;This functionality is currently buggy, and is undergoing review!&#8221;. I have placed textarea and it works fine. What is a bug here?<br />
2. Is there a chance to accept non-string types in JSON. I have check box with values true and false and I need to put something like { Selected: &#8220;true&#8221; } instead of {Selected: true} in JSON. I don&#8217;t see why you have this constraint because to resolve this you will need to change line in the &#8220;checkbox&#8221; case branch:</p>
<p>element.checked |= element.value == values[j];</p>
<p>to </p>
<p>element.checked |= element.value == values[j].toString();</p>
<p>I think that the same issue is for select lists. Usually values of select lists are numbers so it is a problem to convert them to string each time, espessially if we are using some library that automatically generate JSON based on actual object.</p>
<p>Regards,<br />
Jovan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: heinetz</title>
		<link>http://www.keyframesandcode.com/code/development/javascript/jquery-populate-plugin/comment-page-1/#comment-51783</link>
		<dc:creator>heinetz</dc:creator>
		<pubDate>Tue, 08 Mar 2011 12:27:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.keyframesandcode.com/code/?p=17#comment-51783</guid>
		<description>... and you &#039;ll see nice alerts whenever populating textareas ;)</description>
		<content:encoded><![CDATA[<p>&#8230; and you &#8216;ll see nice alerts whenever populating textareas <img src='http://www.keyframesandcode.com/code/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: heinetz</title>
		<link>http://www.keyframesandcode.com/code/development/javascript/jquery-populate-plugin/comment-page-1/#comment-51782</link>
		<dc:creator>heinetz</dc:creator>
		<pubDate>Tue, 08 Mar 2011 12:26:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.keyframesandcode.com/code/?p=17#comment-51782</guid>
		<description>this is, what it did for me:

#180 case &#039;select&#039;:
#181 case &#039;select-one&#039;:
#182  element.value = value.toString() &#124;&#124; value;
#183  break;
#184 
#185 /*new*/case &#039;textarea&#039;:
#186 /*new*/ alert(value);
#187 /*new*/ value   = value == null ? &#039;&#039; : value;
#188 /*new*/ element.innerHTML = value;
#189 /*new*/ break;
#190 
#191 case &#039;text&#039;:
#192 case &#039;button&#039;:
#193 /*old*///case &#039;textarea&#039;:
#194 case &#039;submit&#039;:
#195 default:
#196  value   = value == null ? &#039;&#039; : value;
#197  element.value = value;</description>
		<content:encoded><![CDATA[<p>this is, what it did for me:</p>
<p>#180 case &#8217;select&#8217;:<br />
#181 case &#8217;select-one&#8217;:<br />
#182  element.value = value.toString() || value;<br />
#183  break;<br />
#184<br />
#185 /*new*/case &#8216;textarea&#8217;:<br />
#186 /*new*/ alert(value);<br />
#187 /*new*/ value   = value == null ? &#8221; : value;<br />
#188 /*new*/ element.innerHTML = value;<br />
#189 /*new*/ break;<br />
#190<br />
#191 case &#8216;text&#8217;:<br />
#192 case &#8216;button&#8217;:<br />
#193 /*old*///case &#8216;textarea&#8217;:<br />
#194 case &#8217;submit&#8217;:<br />
#195 default:<br />
#196  value   = value == null ? &#8221; : value;<br />
#197  element.value = value;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: heinetz</title>
		<link>http://www.keyframesandcode.com/code/development/javascript/jquery-populate-plugin/comment-page-1/#comment-51781</link>
		<dc:creator>heinetz</dc:creator>
		<pubDate>Tue, 08 Mar 2011 11:54:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.keyframesandcode.com/code/?p=17#comment-51781</guid>
		<description>IE6 throws an error, when trying to poplulate the value of a textarea.

best,
heinetz</description>
		<content:encoded><![CDATA[<p>IE6 throws an error, when trying to poplulate the value of a textarea.</p>
<p>best,<br />
heinetz</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Stewart</title>
		<link>http://www.keyframesandcode.com/code/development/javascript/jquery-populate-plugin/comment-page-1/#comment-51748</link>
		<dc:creator>Dave Stewart</dc:creator>
		<pubDate>Tue, 16 Nov 2010 10:47:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.keyframesandcode.com/code/?p=17#comment-51748</guid>
		<description>Thanks Sas. Probably about time I had a maintenance-look at this plugin anyway ;)</description>
		<content:encoded><![CDATA[<p>Thanks Sas. Probably about time I had a maintenance-look at this plugin anyway <img src='http://www.keyframesandcode.com/code/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sas</title>
		<link>http://www.keyframesandcode.com/code/development/javascript/jquery-populate-plugin/comment-page-1/#comment-51747</link>
		<dc:creator>sas</dc:creator>
		<pubDate>Thu, 04 Nov 2010 21:30:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.keyframesandcode.com/code/?p=17#comment-51747</guid>
		<description>Hello,
Thanks for the plugin.
I had a problem which arises when the plugin tries to populate form fields that do not exist in the form but do exist in the json/js data array.
for example: 
json data elements are: firstname, lastname, email
form fields: firstname, lastname

When the plugin gives js error on IE since it cannot fiend the form field.

Here is a small patch - line 125:
	if(element == undefined)
	{
		debug(&#039;No such element as &#039; + name);
		return false;
	}

This will ensure that the plugin will return and not try to populate a non-existing form field.

Thanks,</description>
		<content:encoded><![CDATA[<p>Hello,<br />
Thanks for the plugin.<br />
I had a problem which arises when the plugin tries to populate form fields that do not exist in the form but do exist in the json/js data array.<br />
for example:<br />
json data elements are: firstname, lastname, email<br />
form fields: firstname, lastname</p>
<p>When the plugin gives js error on IE since it cannot fiend the form field.</p>
<p>Here is a small patch &#8211; line 125:<br />
	if(element == undefined)<br />
	{<br />
		debug(&#8217;No such element as &#8216; + name);<br />
		return false;<br />
	}</p>
<p>This will ensure that the plugin will return and not try to populate a non-existing form field.</p>
<p>Thanks,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marc</title>
		<link>http://www.keyframesandcode.com/code/development/javascript/jquery-populate-plugin/comment-page-1/#comment-51733</link>
		<dc:creator>Marc</dc:creator>
		<pubDate>Fri, 24 Sep 2010 20:50:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.keyframesandcode.com/code/?p=17#comment-51733</guid>
		<description>Just a quick note to say that you&#039;ve helped me learn a better (and cleaner) way to develop web apps.

Cheers!</description>
		<content:encoded><![CDATA[<p>Just a quick note to say that you&#8217;ve helped me learn a better (and cleaner) way to develop web apps.</p>
<p>Cheers!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zane</title>
		<link>http://www.keyframesandcode.com/code/development/javascript/jquery-populate-plugin/comment-page-1/#comment-51541</link>
		<dc:creator>Zane</dc:creator>
		<pubDate>Tue, 09 Mar 2010 16:15:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.keyframesandcode.com/code/?p=17#comment-51541</guid>
		<description>Just letting you know that I was getting some weird errors and had to change a line of code:

var parseJSON = function (obj, path) 

That was what I changed the parseJSON function line to. It eliminated my issue and didnt seem to introduce any other problems. Just letting you know in case you wanted to add that into your next release. Thanks</description>
		<content:encoded><![CDATA[<p>Just letting you know that I was getting some weird errors and had to change a line of code:</p>
<p>var parseJSON = function (obj, path) </p>
<p>That was what I changed the parseJSON function line to. It eliminated my issue and didnt seem to introduce any other problems. Just letting you know in case you wanted to add that into your next release. Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Stewart</title>
		<link>http://www.keyframesandcode.com/code/development/javascript/jquery-populate-plugin/comment-page-1/#comment-51534</link>
		<dc:creator>Dave Stewart</dc:creator>
		<pubDate>Wed, 17 Feb 2010 15:25:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.keyframesandcode.com/code/?p=17#comment-51534</guid>
		<description>Nope - just a use if you want to. I should probably put one in as someone else commented on that. I&#039;m not so anal that I care, but apparently others do :)</description>
		<content:encoded><![CDATA[<p>Nope &#8211; just a use if you want to. I should probably put one in as someone else commented on that. I&#8217;m not so anal that I care, but apparently others do <img src='http://www.keyframesandcode.com/code/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jim</title>
		<link>http://www.keyframesandcode.com/code/development/javascript/jquery-populate-plugin/comment-page-1/#comment-51516</link>
		<dc:creator>jim</dc:creator>
		<pubDate>Fri, 12 Feb 2010 06:41:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.keyframesandcode.com/code/?p=17#comment-51516</guid>
		<description>Hi Dave,

Is there a license or copyright or something similar that is associated with your code?

Thanks, Jim</description>
		<content:encoded><![CDATA[<p>Hi Dave,</p>
<p>Is there a license or copyright or something similar that is associated with your code?</p>
<p>Thanks, Jim</p>
]]></content:encoded>
	</item>
</channel>
</rss>

