<?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>Luongo Vincenzo - Blog &#187; Javascript</title>
	<atom:link href="http://history.luongovincenzo.it/websites/my_website/v6/blog/category/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>https://history.luongovincenzo.it/websites/my_website/v6/blog</link>
	<description>    CiÃ² che non conoscete vi potrebbe danneggiare - Kevin Mitnick</description>
	<lastBuildDate>Mon, 09 Dec 2013 11:04:30 +0000</lastBuildDate>
	<language>it-IT</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.7.1</generator>
	<item>
		<title>[Javascript] Strip Tags in javascript</title>
		<link>https://history.luongovincenzo.it/websites/my_website/v6/blog/javascript-strip-tags-in-javascript/</link>
		<comments>https://history.luongovincenzo.it/websites/my_website/v6/blog/javascript-strip-tags-in-javascript/#comments</comments>
		<pubDate>Wed, 13 Nov 2013 09:26:23 +0000</pubDate>
		<dc:creator><![CDATA[Vincenzo]]></dc:creator>
				<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://www.luongovincenzo.it/blog/?p=130</guid>
		<description><![CDATA[Salve a tutti, oggi avevo la necessitÃ  di ripulire delle variabili da codice HTML e restituire un normale testo. Per fare ciÃ² ho optato ad una funzione molto semplice che vi illustro di seguito: function strip_tags&#40;html&#41; &#123; var tmp = document.createElement&#40;&#34;DIV&#34;&#41;; tmp.innerHTML = html; return tmp.textContent &#124;&#124; tmp.innerText; &#125; Per utilizzarla basta semplicemente richiamarla cosÃ¬: [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Salve a tutti,</p>
<p>oggi avevo la necessitÃ  di ripulire delle variabili da codice HTML e restituire un normale testo.<br />
Per fare ciÃ² ho optato ad una funzione molto semplice che vi illustro di seguito:</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #000066; font-weight: bold;">function</span> strip_tags<span style="color: #009900;">&#40;</span>html<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000066; font-weight: bold;">var</span> tmp <span style="color: #339933;">=</span> document.<span style="color: #660066;">createElement</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;DIV&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    tmp.<span style="color: #660066;">innerHTML</span> <span style="color: #339933;">=</span> html<span style="color: #339933;">;</span>
    <span style="color: #000066; font-weight: bold;">return</span> tmp.<span style="color: #660066;">textContent</span> <span style="color: #339933;">||</span> tmp.<span style="color: #660066;">innerText</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>Per utilizzarla basta semplicemente richiamarla cosÃ¬:</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #000066; font-weight: bold;">var</span> variabile_sporca <span style="color: #339933;">=</span> <span style="color: #3366CC;">'&lt;html&gt;&lt;body&gt;&lt;a href=&quot;#1&quot;&gt;Go 1&lt;/a&gt;&lt;/body&gt;&lt;/html&gt;'</span><span style="color: #339933;">;</span>
<span style="color: #000066; font-weight: bold;">var</span> contenuto_pulito <span style="color: #339933;">=</span> strip_tags<span style="color: #009900;">&#40;</span>variabile_sporca<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>Enjoy <img src='http://history.luongovincenzo.it/websites/my_website/v6/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>https://history.luongovincenzo.it/websites/my_website/v6/blog/javascript-strip-tags-in-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Javascript/PHP] How to delete the last character from a string</title>
		<link>https://history.luongovincenzo.it/websites/my_website/v6/blog/javascriptphp-how-to-delete-the-last-character-from-a-string/</link>
		<comments>https://history.luongovincenzo.it/websites/my_website/v6/blog/javascriptphp-how-to-delete-the-last-character-from-a-string/#comments</comments>
		<pubDate>Wed, 09 Oct 2013 09:18:59 +0000</pubDate>
		<dc:creator><![CDATA[Vincenzo]]></dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.luongovincenzo.it/blog/?p=87</guid>
		<description><![CDATA[Salve a tutti, oggi scriverÃ² questo breve articolo per spiegare come eliminare l&#8217;ultimo carattere da una stringa, sia in linguaggio javascript che in PHP. Per far ciÃ² ci basta conoscere 2 funzioni dei relativi linguaggi, ovvero: substr (sia in javascript che in PHP) e strlen (in PHP) e l&#8217;equivalente in javascript ovvero .length . Bene [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Salve a tutti,</p>
<p>oggi scriverÃ² questo breve articolo per spiegare come eliminare l&#8217;ultimo carattere da una stringa, sia in linguaggio javascript che in PHP.</p>
<p>Per far ciÃ² ci basta conoscere 2 funzioni dei relativi linguaggi, ovvero: substr (sia in javascript che in PHP) e strlen (in PHP) e l&#8217;equivalente in javascript ovvero .length .</p>
<p>Bene ora passiamo alle due funzioni:</p>
<p>Javascript:</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #000066; font-weight: bold;">function</span> delete_last_character<span style="color: #009900;">&#40;</span>str<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000066; font-weight: bold;">var</span> charts_num <span style="color: #339933;">=</span> <span style="color: #CC0000;">1</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">//Questa variabil Ã¨ possibile manipolarla a seconda di quanti caratteri ULTIMI eliminare</span>
    <span style="color: #000066; font-weight: bold;">var</span> len <span style="color: #339933;">=</span> str.<span style="color: #660066;">length</span><span style="color: #339933;">;</span>
    str <span style="color: #339933;">=</span> str.<span style="color: #660066;">substr</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">0</span><span style="color: #339933;">,</span> len <span style="color: #339933;">-</span> charts_num<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000066; font-weight: bold;">return</span> str<span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>PHP:</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> delete_last_character<span style="color: #009900;">&#40;</span><span style="color: #000088;">$str</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$charts_num</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//Questa variabil Ã¨ possibile manipolarla a seconda di quanti caratteri ULTIMI eliminare</span>
    <span style="color: #b1b100;">return</span> <span style="color: #990000;">substr</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$str</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span> <span style="color: #990000;">strlen</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$str</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">-</span> <span style="color: #000088;">$charts_num</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>Questo Ã¨ tutto, utilizzando queste funzioni vi ritornerÃ  la stringa senza l&#8217;ultimo carattere finale o, modificando la variabile charts_num, vi permetterÃ  di eliminare tot caratteri asseconda del set di questa variabile.</p>
<p>Detto questo, un saluto a tutti e alla prossima.</p>
]]></content:encoded>
			<wfw:commentRss>https://history.luongovincenzo.it/websites/my_website/v6/blog/javascriptphp-how-to-delete-the-last-character-from-a-string/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[javascript] Convert a time from H:i:s to H:i AM/PM (American format)</title>
		<link>https://history.luongovincenzo.it/websites/my_website/v6/blog/javascript-convertire-un-time-da-his-a-hi-ampm-american-format/</link>
		<comments>https://history.luongovincenzo.it/websites/my_website/v6/blog/javascript-convertire-un-time-da-his-a-hi-ampm-american-format/#comments</comments>
		<pubDate>Wed, 25 Sep 2013 13:40:28 +0000</pubDate>
		<dc:creator><![CDATA[Vincenzo]]></dc:creator>
				<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://www.luongovincenzo.it/blog/?p=82</guid>
		<description><![CDATA[Salve a tutti, come il post precedente per la conversione delle date, ecco ora la conversione per l&#8217;orario da un formato europeo (H:i:s) ad uno americano (H:i AM o PM). Esempio: da 00:40:01 a 12:40 AM Per la conversione ho sviluppato una piccola funzione in javascript che permette di fare ciÃ²: function formatTime&#40;time&#41; &#123; &#160; [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Salve a tutti,</p>
<p>come il post precedente per la conversione delle date, ecco ora la conversione per l&#8217;orario da un formato europeo (H:i:s) ad uno americano (H:i AM o PM).</p>
<p>Esempio: </p>
<p>da 00:40:01 a 12:40 AM</p>
<p>Per la conversione ho sviluppato una piccola funzione in javascript che permette di fare ciÃ²:</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #000066; font-weight: bold;">function</span> formatTime<span style="color: #009900;">&#40;</span>time<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
    <span style="color: #000066; font-weight: bold;">var</span> type <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;AM&quot;</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">//PM</span>
&nbsp;
    <span style="color: #000066; font-weight: bold;">var</span> appo <span style="color: #339933;">=</span> time.<span style="color: #660066;">split</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">':'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #000066; font-weight: bold;">var</span> hour <span style="color: #339933;">=</span> appo<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>    
    <span style="color: #000066; font-weight: bold;">var</span> minu <span style="color: #339933;">=</span> appo<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
    <span style="color: #000066; font-weight: bold;">var</span> seco <span style="color: #339933;">=</span> appo<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">2</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>hour <span style="color: #339933;">&gt;=</span> <span style="color: #CC0000;">12</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        hour <span style="color: #339933;">=</span> hour<span style="color: #339933;">-</span><span style="color: #CC0000;">12</span><span style="color: #339933;">;</span>
        type <span style="color: #339933;">=</span> <span style="color: #3366CC;">&quot;PM&quot;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
&nbsp;
    <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>hour <span style="color: #339933;">==</span> <span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        hour <span style="color: #339933;">=</span> <span style="color: #CC0000;">12</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
&nbsp;
    <span style="color: #000066; font-weight: bold;">return</span> <span style="color: #009900;">&#40;</span>hour<span style="color: #339933;">+</span><span style="color: #3366CC;">':'</span><span style="color: #339933;">+</span>minu<span style="color: #339933;">+</span><span style="color: #3366CC;">' '</span><span style="color: #339933;">+</span>type<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>Ecco una DEMO per il corretto funzionamento: <a href="http://jsfiddle.net/b5aqx/">http://jsfiddle.net/b5aqx/</a></p>
<p>Spero serva a qualcuno, alla prossima.</p>
]]></content:encoded>
			<wfw:commentRss>https://history.luongovincenzo.it/websites/my_website/v6/blog/javascript-convertire-un-time-da-his-a-hi-ampm-american-format/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Javascript] Convert a date from YYYY-MM-DD to Month DD, YYYY</title>
		<link>https://history.luongovincenzo.it/websites/my_website/v6/blog/javascript-convertire-date-da-yyyy-mm-dd-a-month-dd-yyyy/</link>
		<comments>https://history.luongovincenzo.it/websites/my_website/v6/blog/javascript-convertire-date-da-yyyy-mm-dd-a-month-dd-yyyy/#comments</comments>
		<pubDate>Wed, 25 Sep 2013 13:19:44 +0000</pubDate>
		<dc:creator><![CDATA[Vincenzo]]></dc:creator>
				<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://www.luongovincenzo.it/blog/?p=80</guid>
		<description><![CDATA[Hola a tutti, oggi avevo il bisogno di convertire una data di tipo YYYY-MM-DD (MySQL Format) in una data in stile americano Month DD, YYYY. Esempio: Da 2013-01-01 a Jan 01, 2013 Per fare ciÃ² in javascript ho sviluppato una piccola funzione per la conversione della data: function formatDate&#40;input&#41; &#123; var datePart = input.match&#40;/\d+/g&#41;, year [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Hola a tutti,</p>
<p>oggi avevo il bisogno di convertire una data di tipo YYYY-MM-DD (MySQL Format) in una data in stile americano Month DD, YYYY.</p>
<p>Esempio: </p>
<p>Da 2013-01-01 a Jan 01, 2013</p>
<p>Per fare ciÃ² in javascript ho sviluppato una piccola funzione per la conversione della data:</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #000066; font-weight: bold;">function</span> formatDate<span style="color: #009900;">&#40;</span>input<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000066; font-weight: bold;">var</span> datePart <span style="color: #339933;">=</span> input.<span style="color: #660066;">match</span><span style="color: #009900;">&#40;</span><span style="color: #009966; font-style: italic;">/\d+/g</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
	year  <span style="color: #339933;">=</span> datePart<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#93;</span>.<span style="color: #660066;">substring</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> 
	month <span style="color: #339933;">=</span> datePart<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> 
	day <span style="color: #339933;">=</span> datePart<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">2</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>month <span style="color: #339933;">&lt;</span> <span style="color: #CC0000;">10</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		month <span style="color: #339933;">=</span> month.<span style="color: #660066;">substring</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">1</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;">var</span> month_arr <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">new</span> <span style="">Array</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	month_arr<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;Jan&quot;</span><span style="color: #339933;">;</span>
	month_arr<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">2</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;Feb&quot;</span><span style="color: #339933;">;</span>
	month_arr<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">3</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;Mar&quot;</span><span style="color: #339933;">;</span>
	month_arr<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">4</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;Apr&quot;</span><span style="color: #339933;">;</span>
	month_arr<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">5</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;May&quot;</span><span style="color: #339933;">;</span>
	month_arr<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">6</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;Jun&quot;</span><span style="color: #339933;">;</span>
	month_arr<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">7</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;Jul&quot;</span><span style="color: #339933;">;</span>
	month_arr<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">8</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;Aug&quot;</span><span style="color: #339933;">;</span>
	month_arr<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">9</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;Sep&quot;</span><span style="color: #339933;">;</span>
	month_arr<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">10</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;Oct&quot;</span><span style="color: #339933;">;</span>
	month_arr<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">11</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;Nov&quot;</span><span style="color: #339933;">;</span>
	month_arr<span style="color: #009900;">&#91;</span><span style="color: #CC0000;">12</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;Dec&quot;</span><span style="color: #339933;">;</span>
	<span style="color: #000066; font-weight: bold;">var</span> month_final <span style="color: #339933;">=</span> month_arr<span style="color: #009900;">&#91;</span>parseInt<span style="color: #009900;">&#40;</span>month<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> 
&nbsp;
	<span style="color: #000066; font-weight: bold;">return</span> month_final<span style="color: #339933;">+</span><span style="color: #3366CC;">' '</span><span style="color: #339933;">+</span>day<span style="color: #339933;">+</span><span style="color: #3366CC;">', '</span><span style="color: #339933;">+</span>year<span style="color: #339933;">;</span>      
&nbsp;
&nbsp;
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>Ecco una demo per il corretto utilizzo: <a href="http://jsfiddle.net/7xVRe/" title="http://jsfiddle.net/7xVRe/">http://jsfiddle.net/7xVRe/</a></p>
<p>Spero sarÃ  utile a qualcuno, saluti <img src='http://history.luongovincenzo.it/websites/my_website/v6/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>https://history.luongovincenzo.it/websites/my_website/v6/blog/javascript-convertire-date-da-yyyy-mm-dd-a-month-dd-yyyy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[jQuery Mobile] How to delete the border-radius from the tag Flip Switch</title>
		<link>https://history.luongovincenzo.it/websites/my_website/v6/blog/jquery-mobile-eliminare-il-border-radius-dal-tag-flip-switch/</link>
		<comments>https://history.luongovincenzo.it/websites/my_website/v6/blog/jquery-mobile-eliminare-il-border-radius-dal-tag-flip-switch/#comments</comments>
		<pubDate>Wed, 25 Sep 2013 13:13:20 +0000</pubDate>
		<dc:creator><![CDATA[Vincenzo]]></dc:creator>
				<category><![CDATA[HTML5/CSS]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[jQuery Mobile]]></category>
		<category><![CDATA[Mobile]]></category>

		<guid isPermaLink="false">http://www.luongovincenzo.it/blog/?p=77</guid>
		<description><![CDATA[Salve a tutti, in questo articolo spiegerÃ² come eliminare il border radius dal tag custom Flip Switch. La versione che andremo a trattare Ã¨ l&#8217;ultima stabile, ovvero la 1.3.2 . Le classi che richiedono la personalizzazione sono: .ui-btn-corner-all .ui-corner-all .ui-slider-switch Per eliminare il border-radious (bombatura o arrotondamento) di questi &#8220;oggetti&#8221; basta implementare dopo l&#8217;inclusione del [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Salve a tutti,</p>
<p>in questo articolo spiegerÃ² come eliminare il border radius dal tag custom <a href="http://view.jquerymobile.com/1.3.2/dist/demos/widgets/sliders/switch.html" title="Flip Switch Toggle" target="_blank">Flip Switch</a>.</p>
<p>La versione che andremo a trattare Ã¨ l&#8217;ultima stabile, ovvero la 1.3.2 .</p>
<p>Le classi che richiedono la personalizzazione sono:</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="text" style="font-family:monospace;">.ui-btn-corner-all
.ui-corner-all
.ui-slider-switch</pre></td></tr></table></div>

<p>Per eliminare il border-radious (bombatura o arrotondamento) di questi &#8220;oggetti&#8221; basta implementare <strong>dopo</strong> l&#8217;inclusione del css di jquery mobile il seguente style:</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="css" style="font-family:monospace;">&nbsp;
.ui-btn-corner-all<span style="color: #00AA00;">,</span>
.ui-corner-all<span style="color: #00AA00;">,</span>
<span style="color: #6666ff;">.ui-slider-switch</span> <span style="color: #00AA00;">&#123;</span>
&nbsp;
    -webkit-border-top-left-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span> !important<span style="color: #00AA00;">;</span>
    -webkit-border-top-right-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span> !important<span style="color: #00AA00;">;</span>
    -webkit-border-bottom-right-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span> !important<span style="color: #00AA00;">;</span>
    -webkit-border-bottom-left-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span> !important<span style="color: #00AA00;">;</span>
&nbsp;
    -moz-border-radius-topleft<span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span> !important<span style="color: #00AA00;">;</span>
    -moz-border-radius-topright<span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span> !important<span style="color: #00AA00;">;</span>
    -moz-border-radius-bottomright<span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span> !important<span style="color: #00AA00;">;</span>
    -moz-border-radius-bottomleft<span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span> !important<span style="color: #00AA00;">;</span>
&nbsp;
    <span style="color: #000000; font-weight: bold;">border-top-left-radius</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span> !important<span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">border-top-right-radius</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span> !important<span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">border-bottom-right-radius</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span> !important<span style="color: #00AA00;">;</span>
    <span style="color: #000000; font-weight: bold;">border-bottom-left-radius</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span> !important<span style="color: #00AA00;">;</span>
&nbsp;
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>CosÃ¬ facendo avrete il vostro flip switch completamente esente dal border radius.</p>
<p>DEMO: <a href="http://jsfiddle.net/e26ac/1/" title="http://jsfiddle.net/e26ac/1/" target="_blank">http://jsfiddle.net/e26ac/1/</a></p>
<p>Saluti <img src='http://history.luongovincenzo.it/websites/my_website/v6/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>https://history.luongovincenzo.it/websites/my_website/v6/blog/jquery-mobile-eliminare-il-border-radius-dal-tag-flip-switch/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>[WEB/jQuery] How to resolving conflicts of jquery javascript framework by others</title>
		<link>https://history.luongovincenzo.it/websites/my_website/v6/blog/webjquery-rendere-jquery-immune-da-conflitti-di-altri-framework-javascript/</link>
		<comments>https://history.luongovincenzo.it/websites/my_website/v6/blog/webjquery-rendere-jquery-immune-da-conflitti-di-altri-framework-javascript/#comments</comments>
		<pubDate>Sun, 02 Jun 2013 20:48:34 +0000</pubDate>
		<dc:creator><![CDATA[Vincenzo]]></dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.luongovincenzo.it/blog/?p=21</guid>
		<description><![CDATA[La cosa piÃ¹ fastidiosa oggi e riuscire a far sÃ¬ che si possa utilizzare piÃ¹ framework javascript (tipo jQuery, prototype, moderz, mootool, ecc&#8230;). Per jQuery esiste un bel trucchetto che ci aiuterÃ  ad isolare le funzioni jquery con le altre funzioni di altri Framework. La funzione in questione Ã¨: noConflict DOCS: http://api.jquery.com/jQuery.noConflict/ Questa funzione non [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>La cosa piÃ¹ fastidiosa oggi e riuscire a far sÃ¬ che si possa utilizzare piÃ¹ framework javascript (tipo jQuery, prototype, moderz, mootool, ecc&#8230;).</p>
<p>Per jQuery esiste un bel trucchetto che ci aiuterÃ  ad isolare le funzioni jquery con le altre funzioni di altri Framework.</p>
<p>La funzione in questione Ã¨: noConflict</p>
<p>DOCS: <a href="http://api.jquery.com/jQuery.noConflict/" target="_blank">http://api.jquery.com/jQuery.noConflict/</a></p>
<p>Questa funzione non fa altro che impostare al posto del classico $ un qualsiasi altro carattere.</p>
<p>Esempo:</p>
<p>&nbsp;</p>

<div class="wp_syntax"><table><tr><td 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> src<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;jquery.js&quot;</span><span style="color: #339933;">&gt;&lt;/</span>script<span style="color: #339933;">&gt;</span>
<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>
JQ <span style="color: #339933;">=</span> jQuery.<span style="color: #660066;">noConflict</span><span style="color: #009900;">&#40;</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></td></tr></table></div>

<p>Come da esempio dopo l&#8217;inclusione di jQuery si crea il nuovo &#8220;oggetto&#8221; JQ che andrÃ  al posto del famoso $.<br />
Dopo aver fatto questo &#8220;hack&#8221; potrete inserire altre librerie come prototype e utilizzarle normelmente.<br />
Per le funzioni jQuery basta inserire al posto del $ iniziale il JQ oppure qualsiasi carattere o serie di caratteri che vogliate impostare.</p>
]]></content:encoded>
			<wfw:commentRss>https://history.luongovincenzo.it/websites/my_website/v6/blog/webjquery-rendere-jquery-immune-da-conflitti-di-altri-framework-javascript/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
