<?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>Ordo Ab Chao - Il blog di Rocco Agostino &#187; programmazione</title>
	<atom:link href="http://blog.roccoagostino.eu/tag/programmazione/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.roccoagostino.eu</link>
	<description>Il mio blog personale in cui si discute di libri,musica,scrittura,poesia,video,foto,news,attualità,informatica e tecnologia. Un &#34;corner&#34; da condividere con voi che commentate,criticate o apprezzate.</description>
	<lastBuildDate>Sat, 10 Apr 2010 17:02:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Camera Player con QT4 e OpenCV</title>
		<link>http://blog.roccoagostino.eu/2009/12/02/camera-player-con-qt4-e-opencv/</link>
		<comments>http://blog.roccoagostino.eu/2009/12/02/camera-player-con-qt4-e-opencv/#comments</comments>
		<pubDate>Wed, 02 Dec 2009 21:27:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Informatica]]></category>
		<category><![CDATA[OpenCV]]></category>
		<category><![CDATA[QT4]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[programmazione]]></category>

		<guid isPermaLink="false">http://blog.roccoagostino.eu/?p=426</guid>
		<description><![CDATA[<img src="http://www.roccoagostino.eu/wp/wp-content/uploads/2009/12/opencv-logo_p.jpg" width="32" height="32" alt="" title="OpenCV" /><img src="http://www.roccoagostino.eu/wp/wp-content/uploads/2009/12/Qt4logo_p.jpg" width="32" height="32" alt="" title="QT4" /><br/>Vi presento il mio piccolo ed umile progetto: un player, molto spartano, che visualizza l&#8217;immagine presa da una webcam. &#160; Ambiente di programmazione: C++ basato sul tool MINGW framework QT 4.5.3 IDE QTcreator 1.2.1 librerie OpenCV &#160; Il framework QT permette di creare programmi multipiattaforma: modificando solo il percorso delle librerie e degli &#8220;include&#8221; posso [...]]]></description>
			<content:encoded><![CDATA[<img src="http://www.roccoagostino.eu/wp/wp-content/uploads/2009/12/opencv-logo_p.jpg" width="32" height="32" alt="" title="OpenCV" /><img src="http://www.roccoagostino.eu/wp/wp-content/uploads/2009/12/Qt4logo_p.jpg" width="32" height="32" alt="" title="QT4" /><br/><p style="text-align: justify;">Vi presento il mio piccolo ed umile progetto: un player, molto spartano, che visualizza l&#8217;immagine presa da una webcam.</p>
<p>&nbsp;</p>
<p><strong>Ambiente di programmazione:</strong></p>
<ul>
<li>C++ basato sul tool MINGW</li>
<li>framework QT 4.5.3</li>
<li>IDE QTcreator 1.2.1</li>
<li>librerie OpenCV</li>
</ul>
<p>&nbsp;</p>
<p style="text-align: justify;">Il framework QT permette di creare programmi multipiattaforma: modificando solo il percorso delle librerie e degli &#8220;include&#8221; posso compilare lo stesso pregramma e crearmi degli eseguibili per win32, linux32 o macosx. Le OpenCV sono delle librerie opensource per la computer vision e per maggiori ragguagli vi rimando a questo dettagliato <a href="http://www.matteolucarelli.net/opencv/opencv-dev142.pdf" target="_blank">articolo</a> di Matteo Lucarelli.</p>
<p>&nbsp;</p>
<p><strong>Link:</strong><br />
<a href="http://qt.nokia.com/downloads/sdk-windows-cpp" target="_blank">QT 4.5.3 win32</a><br />
<a href="http://qt.nokia.com/downloads/sdk-linux-x11-32bit-cpp" target="_blank">QT 4.5.3 linux32</a><br />
<a href="http://qt.nokia.com/downloads/sdk-mac-os-cpp" target="_blank">QT 4.5.3 macosx</a></p>
<p><a href="http://sourceforge.net/projects/opencvlibrary/files/" target="_blank">OpenCV library</a><br />
<a href="http://opencv.willowgarage.com/wiki/" target="_blank">di tutto  e di più sulle OpenCV</a></p>
<p>&nbsp;</p>
<p style="text-align: justify;">Il codice è molto semplice, l&#8217;unica difficoltà riscontrata è stata su come far visualizzare l&#8217;immagine della cam sul widget. Scorrazzando su internet ho trovato del codice che mi ha permesso di trasformare l&#8217;immagine rilasciata dalla libreria opencv in una label.<br />
Di seguito il risultato su tre diversi S.O.</p>
<p>&nbsp;</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-429" title="qtcamwin32" src="http://www.roccoagostino.eu/wp/wp-content/uploads/2009/12/qtcamwin32.jpg" alt="qtcamwin32" width="365" height="349" /></p>
<p>&nbsp;</p>
<p style="text-align: center;">WIN7</p>
<p>&nbsp;</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-431" title="qtcam_linux" src="http://www.roccoagostino.eu/wp/wp-content/uploads/2009/12/qtcam_linux.jpg" alt="qtcam_linux" width="363" height="349" /></p>
<p>&nbsp;</p>
<p style="text-align: center;">Linux Ubuntu 9.10</p>
<p>&nbsp;</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-430" title="qtcam_macosx" src="http://www.roccoagostino.eu/wp/wp-content/uploads/2009/12/qtcam_macosx.jpg" alt="qtcam_macosx" width="360" height="370" /></p>
<p>&nbsp;</p>
<p style="text-align: center;">Mac OS X 10.5.8</p>
<p>&nbsp;</p>
<p style="text-align: justify;">Ed ecco il codice:<br />
Note: There is a file embedded within this post, please visit this post to download the file.<br />
ovviamente dovete cambiare il percorso delle lib e degli include relative a OpenCV; visto che questo punto l&#8217;ho studiato per tutti e tre i S.O. se avete problemi chiedete pure.</p>
<p>&nbsp;</p>
<p>Enjoy it!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.roccoagostino.eu/2009/12/02/camera-player-con-qt4-e-opencv/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sviluppare applicazioni per Mac OSX</title>
		<link>http://blog.roccoagostino.eu/2009/10/18/sviluppare-applicazioni-per-mac-osx/</link>
		<comments>http://blog.roccoagostino.eu/2009/10/18/sviluppare-applicazioni-per-mac-osx/#comments</comments>
		<pubDate>Sat, 17 Oct 2009 23:30:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Informatica]]></category>
		<category><![CDATA[Xcode]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[Mac OSX]]></category>
		<category><![CDATA[programmazione]]></category>

		<guid isPermaLink="false">http://blog.roccoagostino.eu/?p=352</guid>
		<description><![CDATA[<img src="http://www.roccoagostino.eu/wp/wp-content/uploads/2009/10/apple_ico.png" width="32" height="32" alt="" title="Apple" /><img src="http://www.roccoagostino.eu/wp/wp-content/uploads/2009/10/xcode_ico.png" width="32" height="32" alt="" title="Xcode" /><br/>Dopo avere giocherellato con l’OSX 10.5.8, il Leopardo dell’Apple, ho cominciato a navigare sul web googlando alla ricerca di informazioni riguardante la programmazione in ambiente OSX, finché non mi ha incuriosito questo articoletto del 2005, ma che ho scoperto essere ancora di grande attualità. Registrato al sito dell’Apple riservato agli sviluppatori (Mac Dev Center), ho [...]]]></description>
			<content:encoded><![CDATA[<img src="http://www.roccoagostino.eu/wp/wp-content/uploads/2009/10/apple_ico.png" width="32" height="32" alt="" title="Apple" /><img src="http://www.roccoagostino.eu/wp/wp-content/uploads/2009/10/xcode_ico.png" width="32" height="32" alt="" title="Xcode" /><br/><p>Dopo avere giocherellato con l’OSX 10.5.8, il Leopardo dell’Apple,  ho cominciato a navigare sul web googlando alla ricerca di informazioni riguardante la programmazione in ambiente OSX, finché non mi ha incuriosito <a href="http://www.programmazione.it/index.php?entity=eitem&amp;idItem=31151" target="_blank">questo articoletto</a> del 2005, ma che ho scoperto essere ancora di grande attualità.<br />
Registrato al sito dell’Apple riservato agli sviluppatori (Mac Dev Center), ho scaricato ed installato l’ambiente di sviluppo integrato  <a href="http://it.wikipedia.org/wiki/Xcode" rel="nofollow" target="_blank" title="Da Wikipedia la definizione di: Xcode" style="padding-bottom: 2px; border-bottom: 1px dotted #DD0000" >Xcode</a><sup style="font-family: Georgia, Times New Roman, Serif; font-weight: bold; color: #AAAAAA" ><em>W</em></sup>  3.1.2.<br />
Xcode lavora in congiunzione con  <a href="http://it.wikipedia.org/wiki/Interface_Builder" rel="nofollow" target="_blank" title="Da Wikipedia la definizione di: Interface Builder" style="padding-bottom: 2px; border-bottom: 1px dotted #DD0000" >Interface Builder</a><sup style="font-family: Georgia, Times New Roman, Serif; font-weight: bold; color: #AAAAAA" ><em>W</em></sup> (IB), un tool grafico per realizzare interfacce grafiche. Xcode include GCC, che è in grado di compilare codice C, C++, Objective C/C++ e Java. Supporta ovviamente i framework Cocoa e Carbon, oltre ad altri.<br />
Mi sono dunque soffermato sull’<a href="http://it.wikipedia.org/wiki/Objective_C" rel="nofollow" target="_blank" title="Da Wikipedia la definizione di: Objective C" style="padding-bottom: 2px; border-bottom: 1px dotted #DD0000" >Objective C</a><sup style="font-family: Georgia, Times New Roman, Serif; font-weight: bold; color: #AAAAAA" ><em>W</em></sup> , linguaggio di <a href="http://it.wikipedia.org/wiki/programmazione_orientata_agli_oggetti" rel="nofollow" target="_blank" title="Da Wikipedia la definizione di: programmazione orientata agli oggetti" style="padding-bottom: 2px; border-bottom: 1px dotted #DD0000" >programmazione orientata agli oggetti</a><sup style="font-family: Georgia, Times New Roman, Serif; font-weight: bold; color: #AAAAAA" ><em>W</em></sup> e su Cocoa , il framework o ambiente di programmazione orientato agli oggetti sviluppato da Apple Inc. per il sistema operativo Mac OS X.<br />
A questo punto, per iniziare, consiglio una lettura attenta, dei primi dieci capitoli (sono abbastanza brevi) del sito <a href="http://www.programmazione.it/index.php?entity=eitem&#038;idItem=31151" target="_blank">MACOCOA</a> e di qualche tutorial (in rete se ne trovano diversi anche in italiano)  come:<br />
<a href="http://homepage.mac.com/marco_coisson/Tutorial/" target="_blank">Programmare MacOSX</a><br />
<a href="http://www.bubidevs.net/File/Diventare_un_Xcoder.pdf" target="_blank">Diventare un Xcoder (e-book)</a><br />
Presto, dopo essermi ben documentato, le prime impressioni e magari qualche prima piccola applicazione.<br />
Enjoy it!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.roccoagostino.eu/2009/10/18/sviluppare-applicazioni-per-mac-osx/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP &#8211; Creare grafici con la libreria PHPGraphLib</title>
		<link>http://blog.roccoagostino.eu/2009/09/13/php-creare-grafici-con-la-libreria-phpgraphlib/</link>
		<comments>http://blog.roccoagostino.eu/2009/09/13/php-creare-grafici-con-la-libreria-phpgraphlib/#comments</comments>
		<pubDate>Sun, 13 Sep 2009 16:37:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Informatica]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[programmazione]]></category>

		<guid isPermaLink="false">http://blog.roccoagostino.eu/?p=330</guid>
		<description><![CDATA[<img src="http://www.roccoagostino.eu/wp/wp-content/uploads/php_ico.jpg" width="32" height="32" alt="" title="PHP" /><br/>PHPGraphLib è una libreria &#8220;preconfezionata&#8221;, orientata agli oggetti e scritta in php che utilizza le librerie GD. Essa è destinata alla creazione di grafici per l&#8217;inserimento di questi ultimi in pagine web. I grafici permettono di mostrare a tutti i dati o risultati numerici in maniera più chiara tramite l&#8217;utilizzo di immagini e colori. L&#8217;uso [...]]]></description>
			<content:encoded><![CDATA[<img src="http://www.roccoagostino.eu/wp/wp-content/uploads/php_ico.jpg" width="32" height="32" alt="" title="PHP" /><br/><p><strong>PHPGraphLib</strong> è una libreria &#8220;preconfezionata&#8221;, orientata agli oggetti e scritta in php che utilizza le librerie GD. Essa è destinata alla creazione di grafici per l&#8217;inserimento di questi ultimi in pagine web. I grafici permettono di mostrare a tutti i dati o risultati numerici in maniera più chiara tramite l&#8217;utilizzo di immagini e colori.<br />
L&#8217;uso della libreria facilita il compito agli sviluppatori meno esperti anche perché include un sistema di gestione degli errori molto efficace. I risultati ottenibili con questa libreria sono veramente stupefacenti, la potenza del codice inserito nell&#8217;unica pagina di PHPGraphLib possono essere utilizzati al massimo, date le piccole dimensioni di quest&#8217;ultima.<br />
Sul <a href="http://www.ebrueggeman.com/" target="_blank">sito</a> dell&#8217;autore (Elliott Brueggeman) possiamo trovare la pagina di download da dove scaricare la libreria, disporre della guida ufficiale e di alcuni esempi testuali e video.<br />
Per potere utilizzare PHPGraphLib bisogna salvare i due file contenuti nella libreria, “phpgraphlib.php” e “phpgraphlib_pie.php”, in una cartella. Successivamente occorrerà modificare il file php.ini ed eliminare il commento ( ; ) alla riga “extension=php_gd2.dll” nel caso sia commentata.<br />
Per ultimo occorrerà includere il file *.php della libreria nella nostra pagina php e scrivere il codice per creare il grafico.<br />
<em>Nota: bisogna creare in grafico in una pagina php a parte e richiamarla come imagine nella pagine dove vogliamo visualizzare il grafico.</em></p>
<p>&nbsp;</p>
<p>Vediamo dei semplici esempi:</p>
<p>&nbsp;</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">include</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;phpgraphlib.php&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
<span style="color: #000088;">$graph</span><span style="color: #339933;">=</span><span style="color: #000000; font-weight: bold;">new</span> PHPGraphLib<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">500</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">350</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$data</span><span style="color: #339933;">=</span><span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">12124</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">5535</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">43373</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">22223</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">90432</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">23332</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">15544</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">24523</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">32778</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">38878</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">28787</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">33243</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">34832</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">32302</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$graph</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">addData</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$data</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$graph</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">setTitle</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Widgets Produced&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$graph</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">setGradient</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;red&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;maroon&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$graph</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">createGraph</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>&nbsp;</p>
<p>salviamolo come &#8220;immagine.php&#8221; e richiamiamo il grafico nella pagina htlm con</p>
<p>&nbsp;</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">img</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;immagine.php&quot;</span>&gt;</span></pre></div></div>

<p>&nbsp;</p>
<p>il risultato è il seguente:</p>
<p>&nbsp;</p>
<p><a href="http://www.roccoagostino.eu/wp/wp-content/uploads/2009/09/grafico.JPG"><img src="http://www.roccoagostino.eu/wp/wp-content/uploads/2009/09/grafico.JPG" alt="grafico" title="grafico" width="492" height="333" class="aligncenter size-full wp-image-331" /></a></p>
<p>&nbsp;</p>
<p>Nella pagina <a href="http://blog.roccoagostino.eu/statistiche/" target="_blank">Statistiche</a> di questo blog ho utilizzato queste librerie.<br />
Nel caso del diagramma a torte, per esempio, passo dinamicamente i valori da diagrammare in questo modo:</p>
<p>&nbsp;</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">img</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&lt;?php echo &quot;</span>statistiche_torta.php?a<span style="color: #66cc66;">=</span>$a&amp;r<span style="color: #66cc66;">=</span>$r&amp;s<span style="color: #66cc66;">=</span>$s&amp;m<span style="color: #66cc66;">=</span>$m<span style="color: #ff0000;">&quot; ?&gt;</span></span>&quot; /&gt;</pre></div></div>

<p>&nbsp;</p>
<p>Nel file &#8221; statistiche_torta.php&#8221;</p>
<p>&nbsp;</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">    <span style="color: #b1b100;">include</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;phpgraphlib.php&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">include</span> <span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;phpgraphlib_pie.php&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #000088;">$a</span><span style="color: #339933;">=</span><span style="color: #000088;">$_GET</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'a'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$r</span><span style="color: #339933;">=</span><span style="color: #000088;">$_GET</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'r'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$s</span><span style="color: #339933;">=</span><span style="color: #000088;">$_GET</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'s'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$m</span><span style="color: #339933;">=</span><span style="color: #000088;">$_GET</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'m'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #000088;">$graph</span><span style="color: #339933;">=</span><span style="color: #000000; font-weight: bold;">new</span> PHPGraphLibPie<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">450</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">250</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$data</span><span style="color: #339933;">=</span><span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Aggregatori&quot;</span><span style="color: #339933;">=&gt;</span><span style="color: #000088;">$a</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;Motori di ricerca&quot;</span><span style="color: #339933;">=&gt;</span><span style="color: #000088;">$r</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;Social Network&quot;</span><span style="color: #339933;">=&gt;</span><span style="color: #000088;">$s</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;E.mail&quot;</span><span style="color: #339933;">=&gt;</span><span style="color: #000088;">$m</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$graph</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">addData</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$data</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
    <span style="color: #000088;">$graph</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">setLabelTextColor</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;silver&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$graph</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">setLegendColor</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;silver&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$graph</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">setLegendOutlineColor</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;white&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>    
    <span style="color: #000088;">$graph</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">setTitle</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Parlano di me....&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$graph</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">setLabelTextColor</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;50,50,50&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$graph</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">setLegendTextColor</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;50,50,50&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$graph</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">createGraph</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>&nbsp;</p>
<p>Ovviamente è possibile passare direttamente l&#8217;array da diagrammare oppure ricavare i valori eseguendo query in mysql, complicando il codice.</p>
<p>&nbsp;</p>
<p><strong>Enjoy it!</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.roccoagostino.eu/2009/09/13/php-creare-grafici-con-la-libreria-phpgraphlib/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Firebug estensione per Mozilla Firefox &#8211; come ti modifico una pagina web</title>
		<link>http://blog.roccoagostino.eu/2009/09/10/firebug_estensione_mozilla_firefox_come_ti_modifico_una_pagina_web/</link>
		<comments>http://blog.roccoagostino.eu/2009/09/10/firebug_estensione_mozilla_firefox_come_ti_modifico_una_pagina_web/#comments</comments>
		<pubDate>Thu, 10 Sep 2009 17:17:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Informatica]]></category>
		<category><![CDATA[Sviluppo WEB]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[estensione]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[programmazione]]></category>
		<category><![CDATA[sviluppo siti web]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://blog.roccoagostino.eu/?p=266</guid>
		<description><![CDATA[<img src="http://www.roccoagostino.eu/wp/wp-content/uploads/css_ico.JPG" width="32" height="32" alt="" title="Sviluppo WEB" /><br/>Per chi sviluppa siti web o anche per gli smanettoni dei temi di wordpress, cercando di migliorare il layout, il codice HTML o il CSS, uno strumento che senza dubbio non deve mancare è il programma Firebug. Firebug è un&#8217;estensione di Mozilla Firefox che permette il debug, la modifica e il monitoraggio di tutti gli [...]]]></description>
			<content:encoded><![CDATA[<img src="http://www.roccoagostino.eu/wp/wp-content/uploads/css_ico.JPG" width="32" height="32" alt="" title="Sviluppo WEB" /><br/><p>Per chi sviluppa siti web o anche per gli smanettoni dei temi di wordpress, cercando di migliorare il layout, il codice HTML o il CSS, uno strumento che senza dubbio non deve mancare è il programma Firebug.<br />
Firebug è un&#8217;estensione di Mozilla Firefox che permette il debug, la modifica e il monitoraggio di tutti gli aspetti di una pagina web, come i fogli di stile, il codice HTML, la struttura DOM e il codice JavaScript. Firebug fornisce anche altri strumenti per lo sviluppo web come una console JavaScript e una funzione chiamata &#8220;Net&#8221; che permette di monitorare il tempo di caricamento in millisecondi di immagini e script. Oltre che per il debug, Firebug è uno strumento indispensabile per testare la sicurezza e la performance dei siti web.<br />
Firebug è stato creato da Joe Hewitt, uno dei creatori di Firefox, ed è attualmente sviluppato e mantenuto dal <a href="http://getfirebug.com/workingGroup/" target="_blank">Firebug Working Group</a>.<br />
Addirittura FireBug è estendibile con add-on che aggiungono nuove funzionalità o migliorano quelle esistenti. Una selezione  la trovate in questo <a href="http://sixrevisions.com/web-development/10-useful-firefox-extensions-to-supercharge-firebug/" target="_blank">post</a> di SixRevisions.<br />
Una volta <a href="http://download.html.it/howto/leggi/11/installare-le-estensioni-per-firefox/" target="_blank">installato</a> come estensione di firefox, l&#8217;uso è semplicissimo.<br />
Il video seguente spiega chiaramente le potenzialità di Firebug (per una migliore visualizazione visualizzare il video a schermo interno).</p>
<p><center><object type="application/x-shockwave-flash" data="http://www.youtube.com/v/DcD4eGm4Oiw&#038;fs=1" width="425" height="344"><param name="movie" value="http://www.youtube.com/v/DcD4eGm4Oiw&#038;fs=1" /><param name="FlashVars" value="playerMode=embedded"/><param name="wmode" value="transparent"/></object></center></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.roccoagostino.eu/2009/09/10/firebug_estensione_mozilla_firefox_come_ti_modifico_una_pagina_web/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Uso di jQuery per creare una semplice interfaccia tab con immagini per etichette</title>
		<link>http://blog.roccoagostino.eu/2009/09/06/uso-di-jquery-per-creare-una-semplice-interfaccia-tab-con-immagini-per-etichette/</link>
		<comments>http://blog.roccoagostino.eu/2009/09/06/uso-di-jquery-per-creare-una-semplice-interfaccia-tab-con-immagini-per-etichette/#comments</comments>
		<pubDate>Sat, 05 Sep 2009 22:29:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Informatica]]></category>
		<category><![CDATA[JavaScript & AJAX]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[programmazione]]></category>

		<guid isPermaLink="false">http://blog.roccoagostino.eu/?p=225</guid>
		<description><![CDATA[<img src="http://www.roccoagostino.eu/wp/wp-content/uploads/ajax_ico.png" width="32" height="32" alt="" title="JavaScript &amp; AJAX" /><br/>Un effetto molto gradevole ed utile nell’economia di un sito web è senz’altro un’interfaccia a tab. JQuery permette di crearne di complesse ma la volontà di questo articolo è descriverne uno base, semplice, ma comunque funzionale e facilmente adattabile a molte esigenze. Il risultato è questo: demo Nel pacchetto oltre allo script jQuery, troverete anche [...]]]></description>
			<content:encoded><![CDATA[<img src="http://www.roccoagostino.eu/wp/wp-content/uploads/ajax_ico.png" width="32" height="32" alt="" title="JavaScript &amp; AJAX" /><br/><p>Un effetto molto gradevole ed utile nell’economia di un sito web è senz’altro un’interfaccia a tab. JQuery permette di crearne di complesse ma la volontà di questo articolo è descriverne uno base, semplice, ma comunque funzionale e facilmente adattabile a molte esigenze.</p>
<p>
Il risultato è questo: <a href="http://www.roccoagostino.eu/demo/navtab/index.html" target="_blank">demo</a><br />
<br />
Nel pacchetto Note: There is a file embedded within this post, please visit this post to download the file.<br />
oltre allo script <a href="http://www.jquery.com/" target="_blank">jQuery</a>, troverete anche i file e la cartella:</p>
<ul>
<li>index.htm</li>
<li>style.css</li>
<li>scripts.js</li>
<li>cartella images</li>
</ul>
<h2><strong>Passo 1 – creazione delle immagini</strong></h2>
<p>Decidete quanti tab sono necessari al vostro progetto (nel mio caso 3). Se non siete bravi in grafica e design cercate su internet le immagini che concettualmente si avvicinano al contenuto di ogni tab.<br />
Modificate le dimensioni tenendo conto dello spazio che volete utilizzare.<br />
A questo  punto duplicate la vostra immagine e  modificatela con effetti a piacere. Una volta terminato, create una nuova immagine ed incollate sopra la figura modificata e sotto la figura originale. (vedi immagine)<br />
<a href="http://www.roccoagostino.eu/wp/wp-content/uploads/2009/09/doppia-immagine.PNG"><img class="aligncenter size-full wp-image-226" title="doppia immagine" src="http://www.roccoagostino.eu/wp/wp-content/uploads/2009/09/doppia-immagine.PNG" alt="doppia immagine" width="559" height="221" /></a><br />
</p>
<h2><strong>Passo 2 – file HTML e CSS</strong></h2>
<p>Se aprite il file index.html troverete:</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">ul</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;tabMenu&quot;</span>&gt;</span>  
     <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;tabrss selected&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span> <span style="color: #808080; font-style: italic;">&lt;!-- bottone di default--&gt;</span>  
     <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;tabpost&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>  
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;tabcom&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>  
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">ul</span>&gt;</span></pre></div></div>

<p>Nel file style.css, il div &#8220;tabMenu&#8221; è associato a:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">li<span style="color: #6666ff;">.tabcom</span>  <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">images/tabcom.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">no-repeat</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">-77px</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
li<span style="color: #6666ff;">.tabrss</span>  <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">images/tabrss.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">no-repeat</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">-77px</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
li<span style="color: #6666ff;">.tabpost</span> <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">images/tabpost.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">no-repeat</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">-77px</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>  
li<span style="color: #6666ff;">.mouseover</span> <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
li<span style="color: #6666ff;">.mouseout</span> <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> <span style="color: #933;">-77px</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
li<span style="color: #6666ff;">.selected</span> <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>Come potete notare di default l&#8217;immagine (di dimensioni 77px / 77px) parte da -77 px (quindi viene vusualizzata la sezione a colori), se si passa il cursore del mouse sopra (voce &#8220;li.mouseover&#8221; nel file style.css) parte da 0 px (quindi viene visualizzata la sezione in b/n), così come quando viene selezionata (voce &#8220;li.mouseover&#8221; nel file style.css). Quindi avremo, a secondo i casi, una situazione del genere:<br />
<a href="http://www.roccoagostino.eu/wp/wp-content/uploads/2009/09/colore_bn.PNG"><img class="aligncenter size-full wp-image-227" title="colore_bn" src="http://www.roccoagostino.eu/wp/wp-content/uploads/2009/09/colore_bn.PNG" alt="colore_bn" width="328" height="286" /></a><br />
Il contenuto delle tre  tab (ma se ne possono aggiungere altre a piacere) andrà inserito nella seguente struttura contenuta nel file index.html:</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;boxBody&quot;</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;posts&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;show&quot;</span>&gt;</span>    <span style="color: #808080; font-style: italic;">&lt;!-- pagina di default--&gt;</span>  
&nbsp;
......................<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;famous&quot;</span>&gt;</span>
&nbsp;
...............<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;comments&quot;</span>&gt;</span>
&nbsp;
.................<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span></pre></div></div>

<p>Ovviamente bisogna lavorare di CSS per rendere il tutto più gradevole.<br />
</p>
<h2><strong>Passo 3 – file JS</strong></h2>
<p>Nel file script.js è contenuta la funzione per la gestione dei tab con l&#8217;effetto a finestra nel cambio tra un tab e l&#8217;altro.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #006600; font-style: italic;">//nasconde il tab precedente</span>
$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.boxBody div'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">slideUp</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;slow&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #006600; font-style: italic;">//visualizza il tab selezionato</span>
$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.boxBody div:eq('</span> <span style="color: #339933;">+</span> $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#tabMenu &amp;gt; li'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">index</span><span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> <span style="color: #3366CC;">')'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">slideDown</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'1500'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>In questo modo utilizziamo solo la libreria jQuery. Se voglamo altri effetti, come il fade alle immagini (invece della tecnica sopra illustrata) o altri effetti sul contenuto dei tab, ovviamente il file script.js sarà più complicato ed inoltre sarà necessario caricare i plugin di jQuery.</p>
<p>Enjoy it!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.roccoagostino.eu/2009/09/06/uso-di-jquery-per-creare-una-semplice-interfaccia-tab-con-immagini-per-etichette/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Aggiungi/Rimuovi/Sposta una riga della tabella con jQuery</title>
		<link>http://blog.roccoagostino.eu/2009/08/29/aggiungirimuovisposta-riga-della-tabella-con-jquery/</link>
		<comments>http://blog.roccoagostino.eu/2009/08/29/aggiungirimuovisposta-riga-della-tabella-con-jquery/#comments</comments>
		<pubDate>Sat, 29 Aug 2009 07:21:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Informatica]]></category>
		<category><![CDATA[JavaScript & AJAX]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[programmazione]]></category>

		<guid isPermaLink="false">http://blog.roccoagostino.eu/?p=156</guid>
		<description><![CDATA[<img src="http://www.roccoagostino.eu/wp/wp-content/uploads/ajax_ico.png" width="32" height="32" alt="" title="JavaScript &amp; AJAX" /><br/>Segue da&#8230;.questo articolo Dopo aver capito come gestire dinamicamente la struttura di una tabella utilizzando il &#8220;div&#8221; ho voluto un pò complicare il tutto aggiungendo la possibilità di effettuare il drag and drop di una riga. Il risultato è questo: demo Nel pacchetto oltre allo script jQuery, troverete anche i file: index.htm scripts.js jquery.tablednd_0_5.js &#8230; [...]]]></description>
			<content:encoded><![CDATA[<img src="http://www.roccoagostino.eu/wp/wp-content/uploads/ajax_ico.png" width="32" height="32" alt="" title="JavaScript &amp; AJAX" /><br/><p>Segue da&#8230;.<a href="http://blog.roccoagostino.eu/2009/08/25/uso-di-jquery-per-aggiungererimuovere-un-campo-in-un-form/">questo articolo</a></p>
<p>Dopo aver capito come gestire dinamicamente la struttura di una tabella utilizzando il &#8220;div&#8221; ho voluto un pò complicare il tutto aggiungendo la possibilità di effettuare il drag and drop di una riga.</p>
<p>Il risultato è questo: <a href="http://www.roccoagostino.eu/demo/gesttab/index.htm" target="_black">demo</a></p>
<p>Nel pacchetto Note: There is a file embedded within this post, please visit this post to download the file.<br />
oltre allo script <a href="http://www.jquery.com/" target="_blank">jQuery</a>, troverete anche i file:</p>
<ul>
<li>index.htm</li>
<li>scripts.js</li>
<li>jquery.tablednd_0_5.js   &#8230;<a href="http://www.isocra.com/2008/02/table-drag-and-drop-jquery-plugin/" target="_blank"> approfondimento</a></li>
</ul>
<h2><strong>Passo 1 &#8211; file HTML</strong></h2>
<p>Riga di codice importantissima da non modificare:</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">table</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;campi&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">table</span>&gt;</span></pre></div></div>

<p>infatti è all&#8217;interno di questo &#8220;table&#8221; che verranno creati i vari campi di input, contenuti nelle righe create dinamicamente. Come potete notare non uso più il &#8220;div&#8221; (vedi <a href="http://blog.roccoagostino.eu/2009/08/25/uso-di-jquery-…mpo-in-un-form/">articolo precedente</a>).</p>
<h2><strong>Passo 2 &#8211; file JS</strong></h2>
<p>Vi sono quattro funzioni:</p>
<p>La funzione <strong>addFormField()</strong> inserice una riga nella tabella contenente il campo di input.<br />
La funzione <strong>removeFormField()</strong> rimuove la riga selezionata dalla tabella e richiamando la funzione <strong>aggiorna()</strong>, riodina le etichette dei campi in ordine numerico crescente.<br />
La funzione <strong>inizializza_tabella()</strong> usa la libreria &#8220;jquery.tablednd_0_5.js&#8221; e rinizializza la tabella per il drag &amp; drop delle righe. Usa volta effettuato lo spostamento della riga, le etichette dei campi verranno riaggiornate. </p>
<p>Di seguito il codice:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">function</span> inizializza_tabella<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
   $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#campi'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">tableDnD</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
        onDrop<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>table<span style="color: #339933;">,</span> row<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            aggiorna<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
    <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #003366; font-weight: bold;">function</span> addFormField<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #003366; font-weight: bold;">var</span> id <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#campi tr[id^=&quot;row&quot;]'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">length</span> <span style="color: #339933;">+</span> <span style="color: #CC0000;">1</span><span style="color: #339933;">;</span>
	$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#campi&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">append</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'
&nbsp;
Campo '</span><span style="color: #339933;">+</span>id<span style="color: #339933;">+</span><span style="color: #3366CC;">'
&lt;input id=&quot;txt'</span><span style="color: #339933;">+</span>id<span style="color: #339933;">+</span><span style="color: #3366CC;">'&quot; name=&quot;txt[]&quot; size=&quot;25&quot; type=&quot;text&quot; /&gt;
&lt;a onclick=&quot;removeFormField($(this).parent());return false;&quot; href=&quot;#&quot;&gt;&lt;img src=&quot;img/edit_remove.png&quot; border=&quot;0&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;
&nbsp;
'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	document.<span style="color: #660066;">getElementById</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;valore_c&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">innerHTML</span> <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;Campi inseriti: &amp;lt; &quot;</span><span style="color: #339933;">+</span>id<span style="color: #339933;">+</span><span style="color: #3366CC;">&quot; &amp;gt;&quot;</span><span style="color: #339933;">;</span>
	inizializza_tabella<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #003366; font-weight: bold;">function</span> aggiorna<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #003366; font-weight: bold;">var</span> index <span style="color: #339933;">=</span> <span style="color: #CC0000;">0</span> <span style="color: #339933;">;</span>
   $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#campi tr&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">each</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>i<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
          i<span style="color: #339933;">++;</span> index<span style="color: #339933;">=</span>i<span style="color: #339933;">;</span>
	      $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'id'</span><span style="color: #339933;">,</span><span style="color: #3366CC;">'row'</span><span style="color: #339933;">+</span>i<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		  <span style="color: #003366; font-weight: bold;">var</span> currentVal <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">find</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'input'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">val</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		  $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">html</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'
Campo '</span><span style="color: #339933;">+</span>i<span style="color: #339933;">+</span><span style="color: #3366CC;">'
&lt;input id=&quot;txt'</span><span style="color: #339933;">+</span>i<span style="color: #339933;">+</span><span style="color: #3366CC;">'&quot; name=&quot;txt[]&quot; size=&quot;25&quot; type=&quot;text&quot; value=&quot;'</span><span style="color: #339933;">+</span>currentVal<span style="color: #339933;">+</span><span style="color: #3366CC;">'&quot; /&gt;
&lt;a onclick=&quot;removeFormField($(this).parent());return false;&quot; href=&quot;#&quot;&gt;&lt;img src=&quot;img/edit_remove.png&quot; border=&quot;0&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;
&nbsp;
'</span><span style="color: #009900;">&#41;</span>
	<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	document.<span style="color: #660066;">getElementById</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;valore_c&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">innerHTML</span> <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;Campi inseriti: &amp;lt; &quot;</span><span style="color: #339933;">+</span>index<span style="color: #339933;">+</span><span style="color: #3366CC;">&quot; &amp;gt;&quot;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span> 
&nbsp;
<span style="color: #003366; font-weight: bold;">function</span> removeFormField<span style="color: #009900;">&#40;</span>el<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    $<span style="color: #009900;">&#40;</span>el.<span style="color: #660066;">parent</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">remove</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    aggiorna<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
   	inizializza_tabella<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://blog.roccoagostino.eu/2009/08/29/aggiungirimuovisposta-riga-della-tabella-con-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Uso di jQuery per aggiungere/rimuovere un campo in un form</title>
		<link>http://blog.roccoagostino.eu/2009/08/25/uso-di-jquery-per-aggiungererimuovere-un-campo-in-un-form/</link>
		<comments>http://blog.roccoagostino.eu/2009/08/25/uso-di-jquery-per-aggiungererimuovere-un-campo-in-un-form/#comments</comments>
		<pubDate>Tue, 25 Aug 2009 16:07:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Informatica]]></category>
		<category><![CDATA[JavaScript & AJAX]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[programmazione]]></category>

		<guid isPermaLink="false">http://blog.roccoagostino.eu/?p=114</guid>
		<description><![CDATA[<img src="http://www.roccoagostino.eu/wp/wp-content/uploads/ajax_ico.png" width="32" height="32" alt="" title="JavaScript &amp; AJAX" /><br/>Per un progetto che sto sviluppando ho avuto la necessità di crare una tabella non conoscendo a priori i campi che la componevano. Cioè la tabella doveva essere creata in maniera dinamica, con la possibilità di aggiungere o rimuovere i campi a piacere durante la creazione. Dopo un attenta analisi e un approfondito studio sull&#8217;argomento [...]]]></description>
			<content:encoded><![CDATA[<img src="http://www.roccoagostino.eu/wp/wp-content/uploads/ajax_ico.png" width="32" height="32" alt="" title="JavaScript &amp; AJAX" /><br/><p>Per un progetto che sto sviluppando ho avuto la necessità di crare una tabella non conoscendo a priori i campi che la componevano. Cioè la tabella doveva essere creata in maniera dinamica, con la possibilità di aggiungere o rimuovere i campi a piacere durante la creazione. Dopo un attenta analisi e un approfondito studio sull&#8217;argomento ho risolto utilizzando le librerie <a href="http://www.jquery.com/" target="_blank">jQuery.</a></p>
<p>Il risultato è questo: <a href="http://www.roccoagostino.eu/demo/addremfieldform/index.htm" target="_black">demo</a></p>
<p>Nel pacchetto Note: There is a file embedded within this post, please visit this post to download the file.<br />
oltre allo script jQuery, troverete anche i file:</p>
<ul>
<li>index.htm</li>
<li>scripts.js</li>
</ul>
<h2><strong>Passo 1 &#8211; file HTML</strong></h2>
<p>Riga di codice importantissima da non modificare:</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;campi&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span></pre></div></div>

<p>infatti è all&#8217;interno di questo &#8220;div&#8221; che verranno costruiti i vari campi.</p>
<h2><strong>Passo 2 &#8211; file JS</strong></h2>
<p>Vi sono due funzioni:</p>
<p>La funzione <strong>addFormField()</strong> crea un campo di input e lo inserisce nel form. Supponendo, per esempio, di inserire due campi, all&#8217;interno del &#8220;div&#8221; di cui sopra compariranno le linee di codice:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>p id<span style="color: #339933;">=</span><span style="color: #3366CC;">'row1'</span><span style="color: #339933;">&gt;</span>
   <span style="color: #339933;">&lt;</span>label <span style="color: #000066; font-weight: bold;">for</span><span style="color: #339933;">=</span><span style="color: #3366CC;">'txt1'</span><span style="color: #339933;">&gt;</span>Campo <span style="color: #CC0000;">1</span><span style="color: #339933;">&amp;</span>nbsp<span style="color: #339933;">;</span>
       <span style="color: #339933;">&lt;</span>input type<span style="color: #339933;">=</span><span style="color: #3366CC;">'text'</span> size<span style="color: #339933;">=</span><span style="color: #3366CC;">'20'</span> <span style="color: #000066;">name</span><span style="color: #339933;">=</span><span style="color: #3366CC;">'txt[]'</span> id<span style="color: #339933;">=</span><span style="color: #3366CC;">'txt1'</span><span style="color: #339933;">/&gt;&amp;</span>nbsp<span style="color: #339933;">;&amp;</span>nbsp<span style="color: #339933;">;</span>
       <span style="color: #339933;">&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #3366CC;">'#'</span> onClick<span style="color: #339933;">=</span><span style="color: #3366CC;">'removeFormField(&quot;#row1&quot;); return false;'</span><span style="color: #339933;">&gt;</span>Rimuovi<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span>
    <span style="color: #339933;">&lt;/</span>label<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>p id<span style="color: #339933;">=</span><span style="color: #3366CC;">'row2'</span><span style="color: #339933;">&gt;</span>
   <span style="color: #339933;">&lt;</span>label <span style="color: #000066; font-weight: bold;">for</span><span style="color: #339933;">=</span><span style="color: #3366CC;">'txt2'</span><span style="color: #339933;">&gt;</span>Campo <span style="color: #CC0000;">2</span><span style="color: #339933;">&amp;</span>nbsp<span style="color: #339933;">;</span>
     <span style="color: #339933;">&lt;</span>input type<span style="color: #339933;">=</span><span style="color: #3366CC;">'text'</span> size<span style="color: #339933;">=</span><span style="color: #3366CC;">'20'</span> <span style="color: #000066;">name</span><span style="color: #339933;">=</span><span style="color: #3366CC;">'txt[]'</span> id<span style="color: #339933;">=</span><span style="color: #3366CC;">'txt2'</span><span style="color: #339933;">/&gt;&amp;</span>nbsp<span style="color: #339933;">;&amp;</span>nbsp<span style="color: #339933;">;</span>
     <span style="color: #339933;">&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #3366CC;">'#'</span> onClick<span style="color: #339933;">=</span><span style="color: #3366CC;">'removeFormField(&quot;#row2&quot;); return false;'</span><span style="color: #339933;">&gt;</span>Rimuovi<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span>
   <span style="color: #339933;">&lt;/</span>label<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;</span></pre></div></div>

<p>Ho inserito &#8220;Rimuovi&#8221; invece dell&#8217;immagine dell&#8217;esempio.<br />
Come potete notare, il &#8220;form&#8221; restituirà un array &#8220;txt[]&#8221; contenente i valori dei campi; tale array sarà possibile processarlo, per esempio, richiamando da &#8220;form&#8221; un file php.</p>
<p>La funzione <strong>removeFormField()</strong> oltre a rimuovere il campo desiderato riordina i rimanenti campi.</p>
<p>Continua con&#8230;<a href="http://blog.roccoagostino.eu/2009/08/29/aggiungirimuovisposta-riga-della-tabella-con-jquery/">questo articolo</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.roccoagostino.eu/2009/08/25/uso-di-jquery-per-aggiungererimuovere-un-campo-in-un-form/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Uso di jQuery per creare una interfaccia tabs per i video</title>
		<link>http://blog.roccoagostino.eu/2009/08/21/uso-di-jquery-per-creare-una-interfaccia-tabs-per-i-video/</link>
		<comments>http://blog.roccoagostino.eu/2009/08/21/uso-di-jquery-per-creare-una-interfaccia-tabs-per-i-video/#comments</comments>
		<pubDate>Fri, 21 Aug 2009 09:17:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Informatica]]></category>
		<category><![CDATA[JavaScript & AJAX]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[programmazione]]></category>

		<guid isPermaLink="false">http://blog.roccoagostino.eu/?p=21</guid>
		<description><![CDATA[<img src="http://www.roccoagostino.eu/wp/wp-content/uploads/ajax_ico.png" width="32" height="32" alt="" title="JavaScript &amp; AJAX" /><br/>Avendo la necessità di inserire molti link a video pubblici, ho cercato un modo di raggruppare questi video in un unico box, selezionandoli quindi in qualche maniera, in parole povere come se avessi di fronte un televisore con la possibilità di cambiare canale. Navigando su internet ho trovato la risposta al mio problema, utilizzano le [...]]]></description>
			<content:encoded><![CDATA[<img src="http://www.roccoagostino.eu/wp/wp-content/uploads/ajax_ico.png" width="32" height="32" alt="" title="JavaScript &amp; AJAX" /><br/><p>Avendo la necessità di inserire molti link a video pubblici, ho cercato un modo di raggruppare questi video in un unico box, selezionandoli quindi in qualche maniera, in parole povere come se avessi di fronte un televisore con la possibilità di cambiare canale.<br />
Navigando su internet ho trovato la risposta al mio problema, utilizzano le librerie <a href="http://www.jquery.com/" target="_blank">jQuery.</a></p>
<p>Il risultato è questo:<br />
<!--/featuredvid--></p>
<div id="featuredvid" class="scatola">
<div id="vid-1" class="fvid"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="344" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/DmpItalFd5Q&amp;hl=it&amp;fs=1&amp;" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="425" height="344" src="http://www.youtube.com/v/DmpItalFd5Q&amp;hl=it&amp;fs=1&amp;" allowscriptaccess="always" allowfullscreen="true"></embed></object></div>
<div id="vid-2" class="fvid"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="344" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/T4snBv54Ybc&amp;hl=it&amp;fs=1&amp;" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="425" height="344" src="http://www.youtube.com/v/T4snBv54Ybc&amp;hl=it&amp;fs=1&amp;" allowscriptaccess="always" allowfullscreen="true"></embed></object></div>
<div id="vid-3" class="fvid"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="344" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/ryoGgPNx6wI&amp;hl=it&amp;fs=1&amp;" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="425" height="344" src="http://www.youtube.com/v/ryoGgPNx6wI&amp;hl=it&amp;fs=1&amp;" allowscriptaccess="always" allowfullscreen="true"></embed></object></div>
<p><span style="color: red; font-size: xx-small;"><strong>VIDEOTECA</strong></span></p>
<ul class="vidselector">
<li><a href="#vid-1">UFO e EXTRATERRESTRI &#8211; Rivelazioni</a></li>
<li><a href="#vid-2">Video di UFO rilasciati dai militari e dalle autorità</a></li>
<li><a href="#vid-3">Autopsia dell&#8217;Alieno di Rosewell</a></li>
</ul>
</div>
<p><!--/featuredvid--></p>
<p>Per creare questo effetto quindi bisogna scaricare <a href="http://www.jquery.com/" target="_blank">jQuery.</a> e <a href="http://jqueryui.com/download/" target="_blank">jQuery UI</a> con gli elementi ‘Core’ and ‘Tabs’.<br />
Nel pacchetto Note: There is a file embedded within this post, please visit this post to download the file.<br />
oltre agli script jQuery, trovere anche i file:</p>
<ul>
<li>index.htm</li>
<li>videoteca.css</li>
<li>scripts.js</li>
</ul>
<h2><strong>Passo 1 &#8211; file HTML</strong></h2>
<p>Per aggiungere altri video basta aggiungere altri</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;vid-x&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;fvid&quot;</span>&gt;</span>yyyyyyyyyyy<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span></pre></div></div>

<p>e quindi altri link</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;">	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#vid-x&quot;</span>&gt;</span>kkkkkkkkkkkk<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span></pre></div></div>

<h2><strong>Passo 2 &#8211; file CSS</strong></h2>
<p>Modificare a piacere lo stile per cambiare l&#8217;aspetto grafico.</p>
<h2><strong>Passo 3 &#8211; file JS</strong></h2>
<p>Può essere incluso all&#8217;interno del file html con</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;</span>
jQuery<span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>$<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  $<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ready</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#featuredvid'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">tabs</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://blog.roccoagostino.eu/2009/08/21/uso-di-jquery-per-creare-una-interfaccia-tabs-per-i-video/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
