<?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>Nicola De Filippo</title>
	<atom:link href="http://www.nicoladefilippo.it/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nicoladefilippo.it</link>
	<description>Me &#38; IT</description>
	<lastBuildDate>Fri, 27 Jan 2012 07:56:04 +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>Use dojo ValidationTextBox with Symfony2 and ajax</title>
		<link>http://www.nicoladefilippo.it/2012/01/27/use-dojo-validationtextbox-with-symfony2-and-ajax/</link>
		<comments>http://www.nicoladefilippo.it/2012/01/27/use-dojo-validationtextbox-with-symfony2-and-ajax/#comments</comments>
		<pubDate>Fri, 27 Jan 2012 07:36:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.nicoladefilippo.it/?p=32</guid>
		<description><![CDATA[How use dojo ValidationTextBox with Symfony2 and ajax In this post i show how i used symfony2, dojio and to validate a form loaded via ajax and how to change the size and other properties of ValidationTextBox. This is a &#8230; <a href="http://www.nicoladefilippo.it/2012/01/27/use-dojo-validationtextbox-with-symfony2-and-ajax/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;">How use dojo ValidationTextBox with Symfony2 and ajax</p>
<p>In this post i show how i used symfony2, dojio and to validate a form loaded via ajax and how to change the size and other properties of ValidationTextBox.</p>
<p>This is a form loaded via ajax :</p>
<p style="text-align: left;">
<p>{% extends &#8216;::base.html.twig&#8217; %}<br />
{% block javascripts %}<br />
{% endblock %}<br />
{% block body %}</p>
<p>&lt;form action=&#8221;{{ path(&#8216;NdfExampleBundle_people&#8217;) }}&#8221; method=&#8221;post&#8221; {{ form_enctype(form) }} id=&#8221;forminsertpeople&#8221; dojoType=&#8221;dijit.form.Form&#8221;&gt;</p>
<p>{{ form_widget(form.ci , { &#8216;attr&#8217;: {&#8216;labelAttr&#8217;: &#8216;ci&#8217;,'labelType&#8217;:'html&#8217;,'dojoType&#8217;:'dijit.form.ValidationTextBox&#8217;,'maxLength&#8217;:&#8217;12&#8242;,<br />
&#8216;regExp&#8217;:'\\w{12}&#8217;,'invalidMessage&#8217;: &#8216;CI must to be 12 characters&#8217;} }) }}</p>
<p>&lt;button dojoType=&#8221;dijit.form.Button&#8221; type=&#8221;submit&#8221; name=&#8221;submitButtonSave&#8221;<br />
value=&#8221;Submit&#8221;&gt;<br />
Save<br />
&lt;/button&gt;</p>
<p>&lt;img src=&#8221;404.gif&#8221; style=&#8221;position:absolute;width:0px;height:0px&#8221; onerror=&#8221;refreshPeople()&#8221;&gt;<br />
{% endblock %}</p>
<p>The main page must  contain refreshPeople()</p>
<pre class="wp-code-highlight prettyprint">function refreshPeople() {

  try {
    dijit.byId('forminsertpeople').destroy();
  }
  catch (ex) {
  }

  // Change Width

  var dum = dojo.byId('form_ci');
  dojo.style(dum, &quot;width&quot;, &quot;12em&quot;);

  dojo.parser.parse(dojo.byId('your_target'));

  // Change maxLength

  dum = dijit.byId('form_cognome');
  dum.set( &quot;maxlength&quot;, 20);

  dojo.addOnLoad(function () {

  var connectForm = dojo.byId(&quot;forminsertpeople&quot;);
  dojo.connect(connectForm, &quot;onsubmit&quot;, function (e) {
  // connect to, and disable the submit of this form
  e.preventDefault();
  // post the form with all it's defaults
  var mainForm = dijit.byId( &quot;forminsertpeople&quot; );
  dojo.stopEvent(event);
  if ( mainForm.validate() ) {

    var form = dojo.byId(&quot;forminsertpeople&quot;);
    dojo.xhrPost({
    form:form,
    load:function (data) {
      // set the form's HTML to be the response

      form.innerHTML = data;

     }
   });
  }
});
});
dojo.parser.parse(dojo.byId('forminsertpeople'));
}</pre>
<p><br style="text-align: left;" /><br />
Note how the style changes are made before  dojo.parser.parse(dojo.byId(&#8216;your_target&#8217;));<br />
after instead the changes to the attributes of the validator.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nicoladefilippo.it/2012/01/27/use-dojo-validationtextbox-with-symfony2-and-ajax/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Need Hack</title>
		<link>http://www.nicoladefilippo.it/2011/12/23/need-hack/</link>
		<comments>http://www.nicoladefilippo.it/2011/12/23/need-hack/#comments</comments>
		<pubDate>Fri, 23 Dec 2011 10:32:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.nicoladefilippo.it/?p=30</guid>
		<description><![CDATA[I&#8217;m bored, i need to do some hack in this holiday.]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m bored, i need to do some hack in this holiday.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nicoladefilippo.it/2011/12/23/need-hack/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lumia 800</title>
		<link>http://www.nicoladefilippo.it/2011/12/23/lumia-800/</link>
		<comments>http://www.nicoladefilippo.it/2011/12/23/lumia-800/#comments</comments>
		<pubDate>Fri, 23 Dec 2011 10:09:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.nicoladefilippo.it/?p=25</guid>
		<description><![CDATA[I received a Lumia 800 from Nokia. Thanks Nokia!! I must admit that is a great device, but i hope always in new Nokia Linux device, great Linux device!]]></description>
			<content:encoded><![CDATA[<p>I received a Lumia 800 from Nokia. Thanks Nokia!! I must admit that is a great device, but i hope always in new Nokia Linux device, great Linux device!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nicoladefilippo.it/2011/12/23/lumia-800/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>QmlCalendar</title>
		<link>http://www.nicoladefilippo.it/2011/11/27/qmlcalendar/</link>
		<comments>http://www.nicoladefilippo.it/2011/11/27/qmlcalendar/#comments</comments>
		<pubDate>Sat, 26 Nov 2011 23:36:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.nicoladefilippo.it/?p=22</guid>
		<description><![CDATA[Today have committed first release of qmlcalendar for NemoMobile]]></description>
			<content:encoded><![CDATA[<p>Today have committed first release of qmlcalendar for NemoMobile</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nicoladefilippo.it/2011/11/27/qmlcalendar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>NemoMobile on my device</title>
		<link>http://www.nicoladefilippo.it/2011/11/06/nemomobile-on-my-device/</link>
		<comments>http://www.nicoladefilippo.it/2011/11/06/nemomobile-on-my-device/#comments</comments>
		<pubDate>Sun, 06 Nov 2011 14:58:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.nicoladefilippo.it/?p=20</guid>
		<description><![CDATA[These days I tried  NemoMobile on WeTab and N900. It &#8216;a good start but we still try to work.]]></description>
			<content:encoded><![CDATA[<p>These days I tried  NemoMobile on WeTab and N900. It &#8216;a good start but we still try to work.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nicoladefilippo.it/2011/11/06/nemomobile-on-my-device/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>New web site</title>
		<link>http://www.nicoladefilippo.it/2011/11/03/new-site/</link>
		<comments>http://www.nicoladefilippo.it/2011/11/03/new-site/#comments</comments>
		<pubDate>Thu, 03 Nov 2011 00:36:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.nicoladefilippo.it/?p=1</guid>
		<description><![CDATA[My new web site]]></description>
			<content:encoded><![CDATA[<p>My new web site</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nicoladefilippo.it/2011/11/03/new-site/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>New Site</title>
		<link>http://www.nicoladefilippo.it/2011/11/02/new-site-2/</link>
		<comments>http://www.nicoladefilippo.it/2011/11/02/new-site-2/#comments</comments>
		<pubDate>Wed, 02 Nov 2011 23:29:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.nicoladefilippo.it/?p=17</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[]]></content:encoded>
			<wfw:commentRss>http://www.nicoladefilippo.it/2011/11/02/new-site-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

