<?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>ldlabs.org - Blog &#187; javascript</title>
	<atom:link href="http://www.ldlabs.org/blog/tag/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ldlabs.org/blog</link>
	<description>Linux Tips &#38; c.</description>
	<lastBuildDate>Tue, 24 Jan 2012 08:09:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>Jquery AjaxForm Plugin: Upload di un file con AJAX</title>
		<link>http://www.ldlabs.org/blog/2011/07/05/jquery-ajaxform-plugin-upload-di-un-file-con-ajax/</link>
		<comments>http://www.ldlabs.org/blog/2011/07/05/jquery-ajaxform-plugin-upload-di-un-file-con-ajax/#comments</comments>
		<pubDate>Tue, 05 Jul 2011 10:45:23 +0000</pubDate>
		<dc:creator>Francesco Apollonio</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Programmazione]]></category>
		<category><![CDATA[recensione]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[code tips]]></category>
		<category><![CDATA[form]]></category>
		<category><![CDATA[Guide]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[utility]]></category>
		<category><![CDATA[varie]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.ldlabs.org/blog/?p=826</guid>
		<description><![CDATA[<style type="text/css">
#leftcontainerBox {
float:left;
position: fixed;
top:40%;
left:60px;
z-index:1;
#F0F4F9 
}

#leftcontainerBox .buttons {
float:left;
clear:both;
margin:4px 4px 4px 4px;
width:110px;
height:60px;
padding-bottom:2px;
}


#bottomcontainerBox {
float:left;
height:30px;
width:100%;
#F0F4F9}

#bottomcontainerBox .buttons {
float:left;
height:30px;
width:110px;
margin:4px 4px 4px 4px;
}

</style>
Sviluppano spesso siti web di vario genere, mi sono trovato a dover gestire un form html con Ajax. Il problema non è stato tanto per i dati testuali normali, quanto principalmente perchè dovevo trasferire un file via AJAX. Lo strumento che ho utilizzato è JQuery Form Plugin. Tre parole per descriverlo? Semplice, rapido e funzionante! [...]]]></description>
			<content:encoded><![CDATA[<style type="text/css">
#leftcontainerBox {
float:left;
position: fixed;
top:40%;
left:60px;
z-index:1;
#F0F4F9 
}

#leftcontainerBox .buttons {
float:left;
clear:both;
margin:4px 4px 4px 4px;
width:110px;
height:60px;
padding-bottom:2px;
}


#bottomcontainerBox {
float:left;
height:30px;
width:100%;
#F0F4F9}

#bottomcontainerBox .buttons {
float:left;
height:30px;
width:110px;
margin:4px 4px 4px 4px;
}

</style>
<p>Sviluppano spesso siti web di vario genere, mi sono trovato a dover gestire un form html con Ajax. Il problema non è stato tanto per i dati testuali normali, quanto principalmente perchè dovevo <strong>trasferire un file via AJAX</strong>.</p>
<p>Lo strumento che ho utilizzato è <a href="http://jquery.malsup.com/form/" target="_blank">JQuery Form Plugin</a>. Tre parole per descriverlo? Semplice, rapido e funzionante!<br />
<span id="more-826"></span><br />
Per prima cosa vediamo la pagina <strong>HTML</strong> (con l&#8217;annesso form per l&#8217;upload):</p>
<pre>&lt;html&gt;
	&lt;head&gt;

		&lt;meta http-equiv="content-type" content="text/html; charset=UTF-8"&gt;
		&lt;script type="text/javascript" src="jquery-1.5.1.min.js" &gt;&lt;/script&gt;
		&lt;script type="text/javascript" src="jquery.form.js" &gt;&lt;/script&gt;
		&lt;script type="text/javascript" src="scripts.js" &gt;&lt;/script&gt;
		&lt;/script&gt;
		&lt;title&gt;Pagina di prova&lt;/title&gt;

	&lt;/head&gt;
	&lt;body&gt;

		&lt;form action="file_upload.php" method="post"
			enctype="multipart/form-data" id="upload"&gt;

			&lt;label for="file"&gt;Filename:&lt;/label&gt;
			&lt;input type="file" name="file" id="file" /&gt;&lt;br /&gt;
			&lt;input type="submit" id="send_file" value="Aggiungi" /&gt;

		&lt;/form&gt;

	&lt;/body&gt;
&lt;/html&gt;</pre>
<p>Ovviamente, come si può vedere analizzando l&#8217;html, occorrono altri due file. Il primo è il file javascript che ci permetterà di gestire l&#8217;invio lato client. Il secondo è il file in PHP che ci permette di gestire l&#8217;upload dal lato server. Analizziamo il file <strong>javascript</strong> (<em>script.js</em>):</p>

<div class="wp_codebox"><table><tr id="p8263"><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code" id="p826code3"><pre class="javascript" style="font-family:monospace;">$<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;">&quot;#upload&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ajaxForm</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>resp<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span>resp<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></pre></td></tr></table></div>

<p>Come si può facilmente capire il funzionamento è semplice. Basta associare l&#8217;AjaxForm all&#8217;id del form html ed il gioco è fatto. Ovviamente nella funzione di risposta si può effettuare qualsiasi operazione, utilizzando la variabile <em>resp</em> che contiene l&#8217;output della pagina che si occupa dell&#8217;upload lato server. Ecco il codice <strong>PHP</strong> (<em>file_upload.php</em>):</p>

<div class="wp_codebox"><table><tr id="p8264"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
</pre></td><td class="code" id="p826code4"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #666666; font-style: italic;">// CONTROLLO DEI PARAMETRI!</span>
<span style="color: #000088;">$path</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;PERCORSO_DOVE_SALVARE_IL_FILE/&quot;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$_FILES</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;file&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;error&quot;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">&gt;</span> <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;ERROR&quot;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><a href="http://www.php.net/file_exists"><span style="color: #990000;">file_exists</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$path</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$_FILES</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;file&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;name&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;File already exists.&quot;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
		<a href="http://www.php.net/move_uploaded_file"><span style="color: #990000;">move_uploaded_file</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_FILES</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;file&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;tmp_name&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$path</span> <span style="color: #339933;">.</span>  <span style="color: #000088;">$_FILES</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;file&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;name&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;OK. File uploaded.&quot;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>che semplicemente salva il file nella directory specificata e ritorna un messaggio che indica se l&#8217;operazione è andata a buon fine. Ricordatevi ovviamente, se utilizzate lo script in PHP per il vostro sito, di eseguire le operazioni di controllo dei parametri in ingresso via POST.</p>
<p>Come potete vedere è veramente una passeggiata, buon lavoro!</p>
<div id="bottomcontainerBox">
			<div class="buttons">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.ldlabs.org%2Fblog%2F2011%2F07%2F05%2Fjquery-ajaxform-plugin-upload-di-un-file-con-ajax%2F&amp;layout=button_count&amp;show_faces=false&amp;width=100&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:100px; height:21px;" allowTransparency="true"></iframe></div>
			<div class="buttons">
			<g:plusone size="medium" href="http://www.ldlabs.org/blog/2011/07/05/jquery-ajaxform-plugin-upload-di-un-file-con-ajax/"></g:plusone>
			</div>
			<div class="buttons">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://www.ldlabs.org/blog/2011/07/05/jquery-ajaxform-plugin-upload-di-un-file-con-ajax/"  data-text="Jquery AjaxForm Plugin: Upload di un file con AJAX" data-count="horizontal">Tweet</a>
			</div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div>]]></content:encoded>
			<wfw:commentRss>http://www.ldlabs.org/blog/2011/07/05/jquery-ajaxform-plugin-upload-di-un-file-con-ajax/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Convertire caratteri accentati in caratteri con apice in javascript</title>
		<link>http://www.ldlabs.org/blog/2011/03/05/convertire-caratteri-accentati-in-caratteri-con-apice-in-javascript/</link>
		<comments>http://www.ldlabs.org/blog/2011/03/05/convertire-caratteri-accentati-in-caratteri-con-apice-in-javascript/#comments</comments>
		<pubDate>Sat, 05 Mar 2011 12:41:42 +0000</pubDate>
		<dc:creator>Francesco Apollonio</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Programmazione]]></category>
		<category><![CDATA[code tips]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[regexp]]></category>
		<category><![CDATA[utility]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://www.ldlabs.org/blog/?p=661</guid>
		<description><![CDATA[<style type="text/css">
#leftcontainerBox {
float:left;
position: fixed;
top:40%;
left:60px;
z-index:1;
#F0F4F9 
}

#leftcontainerBox .buttons {
float:left;
clear:both;
margin:4px 4px 4px 4px;
width:110px;
height:60px;
padding-bottom:2px;
}


#bottomcontainerBox {
float:left;
height:30px;
width:100%;
#F0F4F9}

#bottomcontainerBox .buttons {
float:left;
height:30px;
width:110px;
margin:4px 4px 4px 4px;
}

</style>
Può sempre servire convertire alcuni caratteri accentati nelle corrispondenti versioni accentate (soprattutto quando i passaggi del testo son molti, magari ci sta di mezzo anche un db o uno dei nodi intermedi non è sotto il nostro controllo). Questo è il codice che converte tutti i caratteri accentati per la stringa passata come parametro: 1 [...]]]></description>
			<content:encoded><![CDATA[<style type="text/css">
#leftcontainerBox {
float:left;
position: fixed;
top:40%;
left:60px;
z-index:1;
#F0F4F9 
}

#leftcontainerBox .buttons {
float:left;
clear:both;
margin:4px 4px 4px 4px;
width:110px;
height:60px;
padding-bottom:2px;
}


#bottomcontainerBox {
float:left;
height:30px;
width:100%;
#F0F4F9}

#bottomcontainerBox .buttons {
float:left;
height:30px;
width:110px;
margin:4px 4px 4px 4px;
}

</style>
<p>Può sempre servire convertire alcuni caratteri accentati nelle corrispondenti versioni accentate (soprattutto quando i passaggi del testo son molti, magari ci sta di mezzo anche un db o uno dei nodi intermedi non è sotto il nostro controllo).</p>
<p>Questo è il codice che converte tutti i caratteri accentati per la stringa passata come parametro:</p>

<div class="wp_codebox"><table><tr id="p6616"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
</pre></td><td class="code" id="p661code6"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">function</span> convertCharacters<span style="color: #009900;">&#40;</span>string<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
	conv_map <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #3366CC;">'À'</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">'A<span style="color: #000099; font-weight: bold;">\'</span>'</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'à'</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">'a<span style="color: #000099; font-weight: bold;">\'</span>'</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'Á'</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">'A<span style="color: #000099; font-weight: bold;">\'</span>'</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'á'</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">'a<span style="color: #000099; font-weight: bold;">\'</span>'</span><span style="color: #339933;">,</span>
		<span style="color: #3366CC;">'È'</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">'E<span style="color: #000099; font-weight: bold;">\'</span>'</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'è'</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">'e<span style="color: #000099; font-weight: bold;">\'</span>'</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'É'</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">'E<span style="color: #000099; font-weight: bold;">\'</span>'</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'é'</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">'e<span style="color: #000099; font-weight: bold;">\'</span>'</span><span style="color: #339933;">,</span>
		<span style="color: #3366CC;">'Ì'</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">'I<span style="color: #000099; font-weight: bold;">\'</span>'</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'ì'</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">'i<span style="color: #000099; font-weight: bold;">\'</span>'</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'Í'</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">'I<span style="color: #000099; font-weight: bold;">\'</span>'</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'í'</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">'i<span style="color: #000099; font-weight: bold;">\'</span>'</span><span style="color: #339933;">,</span>
		<span style="color: #3366CC;">'Ò'</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">'O<span style="color: #000099; font-weight: bold;">\'</span>'</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'ò'</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">'o<span style="color: #000099; font-weight: bold;">\'</span>'</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'Ó'</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">'O<span style="color: #000099; font-weight: bold;">\'</span>'</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'ó'</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">'o<span style="color: #000099; font-weight: bold;">\'</span>'</span><span style="color: #339933;">,</span>
		<span style="color: #3366CC;">'Ù'</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">'U<span style="color: #000099; font-weight: bold;">\'</span>'</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'ù'</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">'u<span style="color: #000099; font-weight: bold;">\'</span>'</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'Ú'</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">'U<span style="color: #000099; font-weight: bold;">\'</span>'</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'ú'</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">'u<span style="color: #000099; font-weight: bold;">\'</span>'</span>
	<span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #000066; font-weight: bold;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">var</span> i <span style="color: #000066; font-weight: bold;">in</span> conv_map<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		string <span style="color: #339933;">=</span> string.<span style="color: #660066;">replace</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">new</span> RegExp<span style="color: #009900;">&#40;</span>i<span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;g&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> conv_map<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span> 
&nbsp;
	<span style="color: #000066; font-weight: bold;">return</span> string<span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>Buon lavoro!</p>
<div id="bottomcontainerBox">
			<div class="buttons">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.ldlabs.org%2Fblog%2F2011%2F03%2F05%2Fconvertire-caratteri-accentati-in-caratteri-con-apice-in-javascript%2F&amp;layout=button_count&amp;show_faces=false&amp;width=100&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:100px; height:21px;" allowTransparency="true"></iframe></div>
			<div class="buttons">
			<g:plusone size="medium" href="http://www.ldlabs.org/blog/2011/03/05/convertire-caratteri-accentati-in-caratteri-con-apice-in-javascript/"></g:plusone>
			</div>
			<div class="buttons">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://www.ldlabs.org/blog/2011/03/05/convertire-caratteri-accentati-in-caratteri-con-apice-in-javascript/"  data-text="Convertire caratteri accentati in caratteri con apice in javascript" data-count="horizontal">Tweet</a>
			</div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div>]]></content:encoded>
			<wfw:commentRss>http://www.ldlabs.org/blog/2011/03/05/convertire-caratteri-accentati-in-caratteri-con-apice-in-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>javascript shell</title>
		<link>http://www.ldlabs.org/blog/2011/03/01/javascript-shell/</link>
		<comments>http://www.ldlabs.org/blog/2011/03/01/javascript-shell/#comments</comments>
		<pubDate>Tue, 01 Mar 2011 14:44:19 +0000</pubDate>
		<dc:creator>Francesco Apollonio</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Programmazione]]></category>
		<category><![CDATA[recensione]]></category>
		<category><![CDATA[code tips]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[program]]></category>
		<category><![CDATA[utility]]></category>

		<guid isPermaLink="false">http://www.ldlabs.org/blog/?p=630</guid>
		<description><![CDATA[<style type="text/css">
#leftcontainerBox {
float:left;
position: fixed;
top:40%;
left:60px;
z-index:1;
#F0F4F9 
}

#leftcontainerBox .buttons {
float:left;
clear:both;
margin:4px 4px 4px 4px;
width:110px;
height:60px;
padding-bottom:2px;
}


#bottomcontainerBox {
float:left;
height:30px;
width:100%;
#F0F4F9}

#bottomcontainerBox .buttons {
float:left;
height:30px;
width:110px;
margin:4px 4px 4px 4px;
}

</style>
Mi serviva un modo per testare uno scriptino in javascript al volo e mi sono imbattuto in questa pagina: Script carino e soprattutto molto utile in caso di emergenza! Da annotare! Tweet]]></description>
			<content:encoded><![CDATA[<style type="text/css">
#leftcontainerBox {
float:left;
position: fixed;
top:40%;
left:60px;
z-index:1;
#F0F4F9 
}

#leftcontainerBox .buttons {
float:left;
clear:both;
margin:4px 4px 4px 4px;
width:110px;
height:60px;
padding-bottom:2px;
}


#bottomcontainerBox {
float:left;
height:30px;
width:100%;
#F0F4F9}

#bottomcontainerBox .buttons {
float:left;
height:30px;
width:110px;
margin:4px 4px 4px 4px;
}

</style>
<p>Mi serviva un modo per testare uno scriptino in javascript al volo e mi sono imbattuto in <a href="http://www.squarefree.com/shell/shell.html" target="_blank">questa</a> pagina:</p>
<p><img class="alignnone img_post colorbox-630" title="JavaScript shell" src="http://www.ldlabs.org/blog/wp-content/uploads/manual/javascript_shell.PNG" alt="" width="658" height="268" /></p>
<p>Script carino e soprattutto molto utile in caso di emergenza!</p>
<p>Da annotare! <img src='http://www.ldlabs.org/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley colorbox-630' /> </p>
<div id="bottomcontainerBox">
			<div class="buttons">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.ldlabs.org%2Fblog%2F2011%2F03%2F01%2Fjavascript-shell%2F&amp;layout=button_count&amp;show_faces=false&amp;width=100&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:100px; height:21px;" allowTransparency="true"></iframe></div>
			<div class="buttons">
			<g:plusone size="medium" href="http://www.ldlabs.org/blog/2011/03/01/javascript-shell/"></g:plusone>
			</div>
			<div class="buttons">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://www.ldlabs.org/blog/2011/03/01/javascript-shell/"  data-text="javascript shell" data-count="horizontal">Tweet</a>
			</div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div>]]></content:encoded>
			<wfw:commentRss>http://www.ldlabs.org/blog/2011/03/01/javascript-shell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ShadowBox JS, media viewer per wordpress</title>
		<link>http://www.ldlabs.org/blog/2009/03/20/shadowbox-js-media-viewer-per-wordpress/</link>
		<comments>http://www.ldlabs.org/blog/2009/03/20/shadowbox-js-media-viewer-per-wordpress/#comments</comments>
		<pubDate>Fri, 20 Mar 2009 15:42:44 +0000</pubDate>
		<dc:creator>Francesco Apollonio</dc:creator>
				<category><![CDATA[recensione]]></category>
		<category><![CDATA[config]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[utility]]></category>
		<category><![CDATA[varie]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.ldlabs.org/blog/?p=141</guid>
		<description><![CDATA[<style type="text/css">
#leftcontainerBox {
float:left;
position: fixed;
top:40%;
left:60px;
z-index:1;
#F0F4F9 
}

#leftcontainerBox .buttons {
float:left;
clear:both;
margin:4px 4px 4px 4px;
width:110px;
height:60px;
padding-bottom:2px;
}


#bottomcontainerBox {
float:left;
height:30px;
width:100%;
#F0F4F9}

#bottomcontainerBox .buttons {
float:left;
height:30px;
width:110px;
margin:4px 4px 4px 4px;
}

</style>
Precisiamo che si parla di script che permettono di portare in primo piano le immagini presenti sulla propria pagina web. Dopo aver provato un po di script trovati qua e la, mi son messo a cercare tra i plugin di wordpress ed ecco fatto&#8230; Il plugin in questione si chiama ShadowBox JS, l&#8217;installazione è standard, [...]]]></description>
			<content:encoded><![CDATA[<style type="text/css">
#leftcontainerBox {
float:left;
position: fixed;
top:40%;
left:60px;
z-index:1;
#F0F4F9 
}

#leftcontainerBox .buttons {
float:left;
clear:both;
margin:4px 4px 4px 4px;
width:110px;
height:60px;
padding-bottom:2px;
}


#bottomcontainerBox {
float:left;
height:30px;
width:100%;
#F0F4F9}

#bottomcontainerBox .buttons {
float:left;
height:30px;
width:110px;
margin:4px 4px 4px 4px;
}

</style>
<p>Precisiamo che si parla di script che permettono di portare in primo piano le immagini presenti sulla propria pagina web.</p>
<p>Dopo aver provato un po di script trovati qua e la, mi son messo a cercare tra i plugin di wordpress ed ecco fatto&#8230;</p>
<p>Il plugin in questione si chiama <a href="http://wordpress.org/extend/plugins/shadowbox-js/" target="_blank">ShadowBox JS</a>, l&#8217;installazione è standard, l&#8217;ultilizzo semplicissimo&#8230; non bisogna far niente per farlo andare <img src='http://www.ldlabs.org/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley colorbox-141' /> </p>
<p>Al massimo se volete potete aggiungere <em>rel=&#8221;shadowbox&#8221;</em> al link delle vostre immagini per non farla visualizzare come un album.</p>
<p>Buon lavoro.</p>
<p>P.S.<br />
Per le prove utilizzate ovviamente le immagini presenti in qualche mio articolo, ad esempio <a href="http://www.ldlabs.org/blog/2009/03/11/cartelle-condivise-con-virtualbox-ed-altre-cosette/" target="_blank">qui</a> potete vedere come funziona il parametro <em>rel </em>che è stato inserito nelle prime due immagini, nelle ultime due invece no.</p>
<div id="bottomcontainerBox">
			<div class="buttons">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.ldlabs.org%2Fblog%2F2009%2F03%2F20%2Fshadowbox-js-media-viewer-per-wordpress%2F&amp;layout=button_count&amp;show_faces=false&amp;width=100&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:100px; height:21px;" allowTransparency="true"></iframe></div>
			<div class="buttons">
			<g:plusone size="medium" href="http://www.ldlabs.org/blog/2009/03/20/shadowbox-js-media-viewer-per-wordpress/"></g:plusone>
			</div>
			<div class="buttons">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://www.ldlabs.org/blog/2009/03/20/shadowbox-js-media-viewer-per-wordpress/"  data-text="ShadowBox JS, media viewer per wordpress" data-count="horizontal">Tweet</a>
			</div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div>]]></content:encoded>
			<wfw:commentRss>http://www.ldlabs.org/blog/2009/03/20/shadowbox-js-media-viewer-per-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

