<?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/PHP Form Builder Sourcecode</title>
	<atom:link href="http://blog.sonuku.com/2009/04/11/php-formbuilder/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sonuku.com/2009/04/11/php-formbuilder/</link>
	<description>PHP/Web Developer, Canberra Australia.</description>
	<lastBuildDate>Sun, 05 Sep 2010 19:45:13 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Valko</title>
		<link>http://blog.sonuku.com/2009/04/11/php-formbuilder/comment-page-1/#comment-85</link>
		<dc:creator>Valko</dc:creator>
		<pubDate>Thu, 12 Aug 2010 11:35:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sonuku.com/?p=132#comment-85</guid>
		<description>Can someone share to us work source code with fix editing(Required) fields</description>
		<content:encoded><![CDATA[<p>Can someone share to us work source code with fix editing(Required) fields</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BigP</title>
		<link>http://blog.sonuku.com/2009/04/11/php-formbuilder/comment-page-1/#comment-81</link>
		<dc:creator>BigP</dc:creator>
		<pubDate>Sat, 03 Jul 2010 18:31:26 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sonuku.com/?p=132#comment-81</guid>
		<description>Done. Sorry, i made a little mistake. The edit function now works!
But if you have any advice... I&#039;m here to hear!</description>
		<content:encoded><![CDATA[<p>Done. Sorry, i made a little mistake. The edit function now works!<br />
But if you have any advice&#8230; I&#8217;m here to hear!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BigP</title>
		<link>http://blog.sonuku.com/2009/04/11/php-formbuilder/comment-page-1/#comment-80</link>
		<dc:creator>BigP</dc:creator>
		<pubDate>Sat, 03 Jul 2010 18:20:50 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sonuku.com/?p=132#comment-80</guid>
		<description>Ok, i try to reload an object, and i do it by call the fb-&gt;element($attr), where $attr is like this $attr[&#039;type&#039;] = &quot;checkbox&quot;. But even if the object is print great, i can&#039;t edit it. So the problem is still here. Someone can help me?
Thanks!</description>
		<content:encoded><![CDATA[<p>Ok, i try to reload an object, and i do it by call the fb-&gt;element($attr), where $attr is like this $attr['type'] = &#8220;checkbox&#8221;. But even if the object is print great, i can&#8217;t edit it. So the problem is still here. Someone can help me?<br />
Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BigP</title>
		<link>http://blog.sonuku.com/2009/04/11/php-formbuilder/comment-page-1/#comment-79</link>
		<dc:creator>BigP</dc:creator>
		<pubDate>Sat, 03 Jul 2010 15:03:09 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sonuku.com/?p=132#comment-79</guid>
		<description>I&#039;ve made the &quot;reload&quot; issue with no problem, but what about the possibility to modify an object that is reloaded?
I can simply print and move it, but i can&#039;t reopen an object in edit mode... any advice?</description>
		<content:encoded><![CDATA[<p>I&#8217;ve made the &#8220;reload&#8221; issue with no problem, but what about the possibility to modify an object that is reloaded?<br />
I can simply print and move it, but i can&#8217;t reopen an object in edit mode&#8230; any advice?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BigP</title>
		<link>http://blog.sonuku.com/2009/04/11/php-formbuilder/comment-page-1/#comment-78</link>
		<dc:creator>BigP</dc:creator>
		<pubDate>Sat, 03 Jul 2010 11:37:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sonuku.com/?p=132#comment-78</guid>
		<description>This is a very good project!!

@JulianB how you implement the preload/edit function?</description>
		<content:encoded><![CDATA[<p>This is a very good project!!</p>
<p>@JulianB how you implement the preload/edit function?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Julian B</title>
		<link>http://blog.sonuku.com/2009/04/11/php-formbuilder/comment-page-1/#comment-77</link>
		<dc:creator>Julian B</dc:creator>
		<pubDate>Wed, 30 Jun 2010 20:33:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sonuku.com/?p=132#comment-77</guid>
		<description>Ji,
Really like it. However there are a few bugs you may look into. 

Validation part on the property is not working. On jquery combination of :input and keyup is not a good one. A quick  fix would be to change to: 
$(&#039;#form_builder_properties li *:input&#039;).change(function(){  ...
however is not that fancy but it works. 

I had a need to be able to :
preload a presaved form for add/edit. For this I added :
preload:function(){
			$.get(Admin.formbuilder.BASEURL+&#039;?action=edit&amp;type=0&#039;,function(result){
					var into = $(&quot;#form_builder_panel ol&quot;);
					var type = $(this).attr(&#039;id&#039;);
					var e = this;
					  $(into).prepend(result);
					  var $newrow = $(into).find(&#039;li:first&#039;);
					$newrow.hide().slideDown(&#039;slow&#039;);
					$(into).sortable(&quot;refresh&quot;);
						delete result;
					});
			
		},

This will generate an ajax request and can preload a saved form.. 
On php you need to add after  case &#039;element&#039;:
	
			
		case &#039;edit&#039;: echo &quot;here u put whatever html to echo&quot;; break

Select options lack of Value=&gt;Description of value option. 
here I added a possibility to write it as :
val::dec of val;val1::dec of val2 and so on...

for this I added 2 functions:
function serialize_options($arr){
	if (!$arr) return &quot;&quot;;
		foreach ($arr as $key =&gt; $val){
		if (is_string($val)) $my_opt.= &quot;$key::$val;\n&quot;;
		else foreach ($val as $subkey =&gt; $subval){
 				$my_opt.= &quot;$key::$subkey::$subval;\n&quot;;
				}
			}
	return substr($my_opt,0,-3);
	}
	
	function unserialize_options($my_opt){
	 $arr= explode(&#039;;&#039;,$my_opt);
	 foreach ($arr as $key =&gt; $val){
	//
	  $val=trim($val);
	 // print &quot;$key =&gt; $val\n&quot;;
	  if (strpos($val,&quot;::&quot;)!==FALSE){
	   list($Country,$Prov)=explode(&quot;::&quot;,$val,2);
	// echo &quot;$Country-$Prov\n&quot;;
	  if (strpos($Prov,&quot;::&quot;)!==FALSE){ 
	  	list ($sprov,$lgprov)=explode(&quot;::&quot;,$Prov);
	  	$my_res[$Country][$sprov]=$lgprov;
		}else{
		$my_res[$Country]=$Prov; 
	  }
	}else{
	$my_res[$val]=$val;
	}
	}
	return $my_res;
	}
  
this support val::Descr of value as well as optgroups like
USA::State 2 letter::Name of state;
Canada::BC:British Columbia (value selected BC, otpgroup Canada)

I added as well a few custom made fields like Select Country and Select State , however they were embedded in the code and not by a template how it should.</description>
		<content:encoded><![CDATA[<p>Ji,<br />
Really like it. However there are a few bugs you may look into. </p>
<p>Validation part on the property is not working. On jquery combination of :input and keyup is not a good one. A quick  fix would be to change to:<br />
$(&#8216;#form_builder_properties li *:input&#8217;).change(function(){  &#8230;<br />
however is not that fancy but it works. </p>
<p>I had a need to be able to :<br />
preload a presaved form for add/edit. For this I added :<br />
preload:function(){<br />
			$.get(Admin.formbuilder.BASEURL+&#8217;?action=edit&amp;type=0&#8242;,function(result){<br />
					var into = $(&#8220;#form_builder_panel ol&#8221;);<br />
					var type = $(this).attr(&#8216;id&#8217;);<br />
					var e = this;<br />
					  $(into).prepend(result);<br />
					  var $newrow = $(into).find(&#8216;li:first&#8217;);<br />
					$newrow.hide().slideDown(&#8216;slow&#8217;);<br />
					$(into).sortable(&#8220;refresh&#8221;);<br />
						delete result;<br />
					});</p>
<p>		},</p>
<p>This will generate an ajax request and can preload a saved form..<br />
On php you need to add after  case &#8216;element&#8217;:</p>
<p>		case &#8216;edit&#8217;: echo &#8220;here u put whatever html to echo&#8221;; break</p>
<p>Select options lack of Value=&gt;Description of value option.<br />
here I added a possibility to write it as :<br />
val::dec of val;val1::dec of val2 and so on&#8230;</p>
<p>for this I added 2 functions:<br />
function serialize_options($arr){<br />
	if (!$arr) return &#8220;&#8221;;<br />
		foreach ($arr as $key =&gt; $val){<br />
		if (is_string($val)) $my_opt.= &#8220;$key::$val;\n&#8221;;<br />
		else foreach ($val as $subkey =&gt; $subval){<br />
 				$my_opt.= &#8220;$key::$subkey::$subval;\n&#8221;;<br />
				}<br />
			}<br />
	return substr($my_opt,0,-3);<br />
	}</p>
<p>	function unserialize_options($my_opt){<br />
	 $arr= explode(&#8216;;&#8217;,$my_opt);<br />
	 foreach ($arr as $key =&gt; $val){<br />
	//<br />
	  $val=trim($val);<br />
	 // print &#8220;$key =&gt; $val\n&#8221;;<br />
	  if (strpos($val,&#8221;::&#8221;)!==FALSE){<br />
	   list($Country,$Prov)=explode(&#8220;::&#8221;,$val,2);<br />
	// echo &#8220;$Country-$Prov\n&#8221;;<br />
	  if (strpos($Prov,&#8221;::&#8221;)!==FALSE){<br />
	  	list ($sprov,$lgprov)=explode(&#8220;::&#8221;,$Prov);<br />
	  	$my_res[$Country][$sprov]=$lgprov;<br />
		}else{<br />
		$my_res[$Country]=$Prov;<br />
	  }<br />
	}else{<br />
	$my_res[$val]=$val;<br />
	}<br />
	}<br />
	return $my_res;<br />
	}</p>
<p>this support val::Descr of value as well as optgroups like<br />
USA::State 2 letter::Name of state;<br />
Canada::BC:British Columbia (value selected BC, otpgroup Canada)</p>
<p>I added as well a few custom made fields like Select Country and Select State , however they were embedded in the code and not by a template how it should.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mr2fit</title>
		<link>http://blog.sonuku.com/2009/04/11/php-formbuilder/comment-page-1/#comment-75</link>
		<dc:creator>Mr2fit</dc:creator>
		<pubDate>Fri, 18 Jun 2010 13:55:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sonuku.com/?p=132#comment-75</guid>
		<description>Very nice form builder. Is it a big effort to add the number of colums for the form? 

Best regards</description>
		<content:encoded><![CDATA[<p>Very nice form builder. Is it a big effort to add the number of colums for the form? </p>
<p>Best regards</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sonuku</title>
		<link>http://blog.sonuku.com/2009/04/11/php-formbuilder/comment-page-1/#comment-67</link>
		<dc:creator>sonuku</dc:creator>
		<pubDate>Tue, 11 May 2010 03:32:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sonuku.com/?p=132#comment-67</guid>
		<description>&quot;Love the work! I am sure that this is probably not a big deal however, if I wanted to use this in a production site, how can I prove the licensing is open source?&quot;

Yep, its opensource
use it however you want.
If its commercial, maybe put a credit in source, thats about it :)</description>
		<content:encoded><![CDATA[<p>&#8220;Love the work! I am sure that this is probably not a big deal however, if I wanted to use this in a production site, how can I prove the licensing is open source?&#8221;</p>
<p>Yep, its opensource<br />
use it however you want.<br />
If its commercial, maybe put a credit in source, thats about it <img src='http://blog.sonuku.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Millionenspiel</title>
		<link>http://blog.sonuku.com/2009/04/11/php-formbuilder/comment-page-1/#comment-66</link>
		<dc:creator>Millionenspiel</dc:creator>
		<pubDate>Mon, 10 May 2010 14:14:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sonuku.com/?p=132#comment-66</guid>
		<description>Substantially, the article is actually the greatest on this worthw hile topic. I agree with your conclusions and will eagerly look forward to your incoming updates. Saying thanks will not just be sufficient, for the extraordinary lucidity in your writing. I will right away grab your rss feed to stay abreast of any updates. Good work and much success in your business enterprize!</description>
		<content:encoded><![CDATA[<p>Substantially, the article is actually the greatest on this worthw hile topic. I agree with your conclusions and will eagerly look forward to your incoming updates. Saying thanks will not just be sufficient, for the extraordinary lucidity in your writing. I will right away grab your rss feed to stay abreast of any updates. Good work and much success in your business enterprize!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: William Myers</title>
		<link>http://blog.sonuku.com/2009/04/11/php-formbuilder/comment-page-1/#comment-65</link>
		<dc:creator>William Myers</dc:creator>
		<pubDate>Tue, 04 May 2010 18:07:02 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sonuku.com/?p=132#comment-65</guid>
		<description>Love the work! I am sure that this is probably not a big deal however, if I wanted to use this in a production site, how can I prove the licensing is open source?</description>
		<content:encoded><![CDATA[<p>Love the work! I am sure that this is probably not a big deal however, if I wanted to use this in a production site, how can I prove the licensing is open source?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
