Pagina 8 di 9 primaprima ... 6 7 8 9 ultimoultimo
Visualizzazione dei risultati da 71 a 80 su 87
  1. #71
    Utente di HTML.it L'avatar di wallrider
    Registrato dal
    Apr 2003
    Messaggi
    2,747
    qualcuno ha aggiornamenti per il copia-incolla, magari crossbrowser?
    RIP Cicciobenzina 9/11/2010

    "Riseminaciceli, i ceci nell'orto"

  2. #72
    Utente di HTML.it L'avatar di carlomarx
    Registrato dal
    Oct 2009
    Messaggi
    1,669
    Convertire un documento XML in un albero di oggetti JavaScript (JXON)

    codice:
    function buildValue (sValue) {
    	if (sValue.search(/^\s*$/) > -1) { return(null); }
    	else if (sValue.search(/^(true|false)$/i) > -1) { return(sValue.toLowerCase() === "true"); }
    	else if (isFinite(sValue)) { return(parseFloat(sValue)); }
    	else if (isFinite(Date.parse(sValue))) { return(new Date(sValue)); }
    	else { return(sValue); }
    }
    
    function getXMLData (oXMLParent) {
    	var vResult = true; nLength = 0, sTxtContent = "";
    	if (oXMLParent.hasAttributes()) {
    		vResult = {};
    		for (nLength; nLength < oXMLParent.attributes.length; nLength++) {
    			iAttrib = oXMLParent.attributes.item(nLength);
    			vResult["@" + iAttrib.nodeName.toLowerCase()] = buildValue(iAttrib.nodeValue.replace(/^\s+|\s+$/g, ""));
    		}
    	}
    	if (oXMLParent.hasChildNodes()) {
    		var iKey, iValue, iXMLChild;
    		for (var iChildId = 0; iChildId < oXMLParent.childNodes.length; iChildId++) {
    			iXMLChild = oXMLParent.childNodes.item(iChildId);
    			if (iXMLChild.nodeType === 1 && !iXMLChild.prefix) {
    				if (nLength === 0) { vResult = {}; }
    				iKey = iXMLChild.nodeName.toLowerCase();
    				iValue = getXMLData(iXMLChild);
    				if (vResult.hasOwnProperty(iKey)) {
    					if (vResult[iKey].constructor !== Array) { vResult[iKey] = [vResult[iKey]]; }
    					vResult[iKey].push(iValue);
    				} else { vResult[iKey] = iValue; nLength++; }
    			} else if (iXMLChild.nodeType === 3) { sTxtContent += iXMLChild.nodeValue.replace(/^\s+|\s+$/g, ""); }
    			else if (iXMLChild.nodeType === 4) { sTxtContent += iXMLChild.nodeValue; }
    		}
    	}
    	if (nLength > 0) { vResult.keyValue = buildValue(sTxtContent); Object.freeze(vResult); }
    	else if (sTxtContent) { vResult = buildValue(sTxtContent); }
    
    	return(vResult);
    }
    
    var xml = getXMLData(doc);
    // we got our javascript object! try: alert(JSON.stringify(xml));
    Lo script l'ho anche postato qui: https://developer.mozilla.org/en/Par...erializing_XML

    P.S. È passato tanto tempo e... ho riletto solo ora l'ammonimento di Xinod Quindi invito chiunque voglia discuterne in maniera più approfondita a non farlo qui ma ad aprire una nuova discussione!

  3. #73
    Davvero delle utilissime info!! Bravissimi

  4. #74
    Utente di HTML.it L'avatar di carlomarx
    Registrato dal
    Oct 2009
    Messaggi
    1,669
    Da questa discussione è possibile estrarre il codice necessario per verificare che una data immessa in un campo testo sia una data valida e che sia espressa nel formato gg/mm/(aa)aa:

    codice:
    <!doctype html>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Esempio</title>
    <script type="text/javascript">
    	// le seguenti righe di codice sono necessarie per rendere lo script compatibile con i vecchi browser; possono essere rimosse senza danno per i nuovi browser.
    	if (!Array.prototype.every) {
    		Array.prototype.every = function(fValidator /*, oThisObj */) {
    			"use strict";
    			if (this === void 0 || this === null) { throw new TypeError(); }
    			var aThisArray = Object(this);
    			var nLength = aThisArray.length >>> 0;
    			if (typeof fValidator !== "function") { throw new TypeError(); }
    			var oThisObj = arguments[1];
    			for (var iIndex = 0; iIndex < nLength; iIndex++) { if (iIndex in aThisArray && !fValidator.call(oThisObj, aThisArray[iIndex], iIndex, aThisArray)) { return false; } }
    			return true;
    		};
    	}
    	// fine delle righe di codice per la compatibilità
    
    	function validateForm() {
    		var iDateSegm, aInputDate = document.myForm.dateField.value.split("\/"), nInDateLen = aInputDate.length;
    		if (nInDateLen !== 3) { alert("Inserire una data nel formato gg\/mm\/(aa)aa"); return false; }
    		else {
    			for (var iSegmId = 0; iSegmId < nInDateLen; iSegmId++) {
    				iDateSegm = aInputDate[iSegmId];
    				if (/\D/.test(iDateSegm)) { alert("La data pu\u00F2 contenere solo numeri separati da \"\/\"."); return false; }
    				else { aInputDate[iSegmId] = parseFloat(iDateSegm); }
    			}
    			var oParsedDate = new Date(aInputDate[2], aInputDate[1] - 1, aInputDate[0]), aOutputDate = [oParsedDate.getDate(), oParsedDate.getMonth() + 1, oParsedDate.getFullYear()];
    			if (!aOutputDate.every(function (vThisValue, nThisIndex /*, aTheArray */) {
    				if (this[nThisIndex] === vThisValue) { return true };
    				return false;
    			}, aInputDate)) { return confirm("La data immessa \u00E8 stata corretta in " + aOutputDate.join("\/") + ". Confermare se la data corrisponde al valore che si voleva indicare, altrimenti annullare per apportare le dovute modifiche."); }
    			return false;
    			
    		}
    		return true;
    	}
    </script>
    </head>
    
    <body>
    						
    <form method="POST" name="myForm" onsubmit="return(validateForm());">
    Inserire data: <input type="text" name="dateField" id="dateField" /> <input type="submit" value="Invia">
    </form>
    
    </body>
    </html>

  5. #75
    Utente di HTML.it L'avatar di carlomarx
    Registrato dal
    Oct 2009
    Messaggi
    1,669
    Ottenere la proprietà selectedIndex per i l'oggetto radio nei forms come avviene per il campo select:

    http://forum.html.it/forum/showthrea...1#post13366515

    È utilizzabile anche in scrittura (es.: document.tuoForm.tuoRadioGroup.selectedIndex = 3).

  6. #76
    Utente di HTML.it L'avatar di carlomarx
    Registrato dal
    Oct 2009
    Messaggi
    1,669

    Rich Text Editor più piccolo del mondo :-)

    codice:
    <!doctype html>
    <html>
    <head>
    <title>Rich Text</title>
    <script type="text/javascript">
    var oDoc, sDefTxt = "
    
    Lorem ipsum<\/p>";
    
    function initDoc() {
    	oDoc = document.getElementById("editDiv");
    	oDoc.innerHTML = sDefTxt;
    	if (document.compForm.switchMode.checked) { setDocMode(true); }
    }
    
    function formatDoc(sCmd, sValue) {
    	if (validateMode()) { document.execCommand(sCmd, false, sValue); oDoc.focus(); }
    }
    
    function validateMode() {
    	if (!document.compForm.switchMode.checked) { return true ; }
    	alert("Deselezionare \"Visualizza HTML\".");
    	oDoc.focus();
    	return false;
    }
    
    function setDocMode(bToSource) {
    	var oContent;
    	if (bToSource) {
    		oContent = document.createTextNode(oDoc.innerHTML);
    		oDoc.innerHTML = "";
    		var oPre = document.createElement("pre");
    		oDoc.contentEditable = false;
    		oPre.id = "sourcePre";
    		oPre.contentEditable = true;
    		oPre.appendChild(oContent);
    		oDoc.appendChild(oPre);
    	} else {
    		if (document.all) {
    			oDoc.innerHTML = oDoc.innerText;
    		} else {
    			oContent = document.createRange();
    			oContent.selectNodeContents(oDoc.firstChild);
    			oDoc.innerHTML = oContent.toString();
    		}
    		oDoc.contentEditable = true;
    	}
    	oDoc.focus();
    }
    
    function printDoc() {
    	if (!validateMode()) { return; }
    	var oPrntWin = window.open("","_blank","width=450,height=470,left=400,top=100,menubar=yes,toolbar=no,location=no,scrollbars=yes");
    	oPrntWin.document.open();
    	oPrntWin.document.write("<!doctype html><html><head><title>Stampa<\/title><\/head><body onload=\"print();\">" + oDoc.innerHTML + "<\/body><\/html>");
    	oPrntWin.document.close();
    }
    </script>
    <style type="text/css">
    .intLink {
    	cursor: pointer;
    }
    img.intLink {
    	border: 0;
    }
    #paragrBar select {
    	font-size:10px;
    }
    #editDiv {
    	width: 540px;
    	height: 200px;
    	border: 1px #000000 solid;
    	padding: 12px;
    	overflow: scroll;
    }
    #editDiv #sourcePre {
    	padding: 0;
    	margin: 0;
    	min-width: 498px;
    	min-height: 200px;
    }
    #editMode label {
    	cursor: pointer;
    }
    </style>
    </head>
    <body onload="initDoc();">
    <form name="compForm" onsubmit="if(validateMode()){this.myDoc.value=oDoc.innerHTML;return true;}return false;">
    <input type="hidden" name="myDoc">
    <div id="paragrBar">
    <select onchange="formatDoc('formatblock',this[this.selectedIndex].value);this.selectedIndex=0;">
    <option selected>- formattazione -</option>
    <option value="&lt;h1&gt;">Titolo 1 &lt;h1&gt;</option>
    <option value="&lt;h2&gt;">Titolo 2 &lt;h2&gt;</option>
    <option value="&lt;h3&gt;">Titolo 3 &lt;h3&gt;</option>
    <option value="&lt;h4&gt;">Titolo 4 &lt;h4&gt;</option>
    <option value="&lt;h5&gt;">Titolo 5 &lt;h5&gt;</option>
    <option value="&lt;h6&gt;">Sottotitolo &lt;h6&gt;</option>
    <option value="&lt;p&gt;">Paragrafo &lt;p&gt;</option>
    <option value="&lt;pre&gt;">Formattato &lt;pre&gt;</option>
    </select>
    <select onchange="formatDoc('fontname',this[this.selectedIndex].value);this.selectedIndex=0;">
    <option class="heading" selected>- carattere -</option>
    <option>Arial</option>
    <option>Arial Black</option>
    <option>Courier New</option>
    <option>Times New Roman</option>
    </select>
    <select onchange="formatDoc('fontsize',this[this.selectedIndex].value);this.selectedIndex=0;">
    <option class="heading" selected>- dimensione -</option>
    <option value="1">Molto piccolo</option>
    <option value="2">Ridotto</option>
    <option value="3">Normale</option>
    <option value="4">Medio-grande</option>
    <option value="5">Grande</option>
    <option value="6">Molto grande</option>
    <option value="7">Massimo</option>
    </select>
    <select onchange="formatDoc('forecolor',this[this.selectedIndex].value);this.selectedIndex=0;">
    <option class="heading" selected>- colore -</option>
    <option value="red">rosso</option>
    <option value="blue">blu</option>
    <option value="green">verde</option>
    <option value="black">nero</option>
    </select>
    <select onchange="formatDoc('backcolor',this[this.selectedIndex].value);this.selectedIndex=0;">
    <option class="heading" selected>- sfondo -</option>
    <option value="red">rosso</option>
    <option value="green">verde</option>
    <option value="black">nero</option>
    </select>
    </div>
    <div>
    [img]data:image/gif;base64,R0lGODlhFgAWAIQbAD04KTRLYzFRjlldZl9vj1dusY14WYODhpWIbbSVFY6O7IOXw5qbms+wUbCztca0ccS4kdDQjdTLtMrL1O3YitHa7OPcsd/f4PfvrvDv8Pv5xv///////////////////yH5BAEKAB8ALAAAAAAWABYAAAV84CeOZGmeaKqubMteyzK547QoBcFWTm/jgsHq4rhMLoxFIehQQSAWR+Z4IAyaJ0kEgtFoLIzLwRE4oCQWrxoTOTAIhMCZ0tVgMBQKZHAYyFEWEV14eQ8IflhnEHmFDQkAiSkQCI2PDC4QBg+OAJc0ewadNCOgo6anqKkoIQA7[/img]
    [img]data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAAABGdBTUEAALGPC/xhBQAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9oEBxcZFmGboiwAAAAIdEVYdENvbW1lbnQA9syWvwAAAuFJREFUOMvtlUtsjFEUx//n3nn0YdpBh1abRpt4LFqtqkc3jRKkNEIsiIRIBBEhJJpKlIVo4m1RRMKKjQiRMJRUqUdKPT71qpIpiRKPaqdF55tv5vvusZjQTjOlseUkd3Xu/3dPzusC/22wtu2wRn+jG5So/OCDh8ycMJDflehMlkJkVK7KUYN+ufzA/RttH76zaVocDptRxzQtNi3mRWuPc+6cKtlXZ/sddP2uu9uXlmYXZ6Qm8v4Tz8lhF1H+zDQXt7S8oLMXtbF4e8QaFHjj3kbP2MzkktHpiTjp9VH6iHiA+whtAsX5brpwueMGdONdf/2A4M7ukDs1JW662+XkqTkeUoqjKtOjm2h53YFL15pSJ04Zc94wdtibr26fXlC2mzRvBccEbz2kiRFD414tKMlEZbVGT33+qCoHgha81SWYsew0r1uzfNylmtpx80pngQQ91LwVk2JGvGnfvZG6YcYRAT16GFtW5kKKfo1EQLtfh5Q2etT0BIWF+aitq4fDbk+ImYo1OxvGF03waFJQvBCkvDffRyEtxQiFFYgAZTHS0zwAGD7fG5TNnYNTp8/FzvGwJOfmgG7GOx0SAKKgQgDMgKBI0NJGMEImpGDk5+WACEwEd0ywblhGUZ4Hw5OdUekRBLT7DTgdEgxACsIznx8zpmWh7k4rkpJcuHDxCul6MDsmmBXDlWCH2+XozSgBnzsNCEE4euYV4pwCpsWYPW0UHDYBKSWu1NYjENDReqtKjwn2+zvtTc1vMSTB/mvev/WEYSlASsLimcOhOBJxw+N3aP/SjefNL5GePZmpu4kG7OPr1+tOfPyUu3BecWYKcwQcDFmwFKAUo90fhKDInBCAmvqnyMgqUEagQwCoHBDc1rjv9pIlD8IbVkz6qYViIBQGTJPx4k0XpIgEZoRN1Da0cij4VfR0ta3WvBXH/rjdCufv6R2zPgPH/e4pxSBCpeatqPrjNiso203/5s/zA171Mv8+w1LOAAAAAElFTkSuQmCC[/img]
    [img]data:image/gif;base64,R0lGODlhFgAWAOMKADljwliE33mOrpGjuYKl8aezxqPD+7/I19DV3NHa7P///////////////////////yH5BAEKAA8ALAAAAAAWABYAAARR8MlJq7046807TkaYeJJBnES4EeUJvIGapWYAC0CsocQ7SDlWJkAkCA6ToMYWIARGQF3mRQVIEjkkSVLIbSfEwhdRIH4fh/DZMICe3/C4nBQBADs=[/img]
    [img]data:image/gif;base64,R0lGODlhFgAWAMIHAB1ChDljwl9vj1iE34Kl8aPD+7/I1////yH5BAEKAAcALAAAAAAWABYAAANKeLrc/jDKSesyphi7SiEgsVXZEATDICqBVJjpqWZt9NaEDNbQK1wCQsxlYnxMAImhyDoFAElJasRRvAZVRqqQXUy7Cgx4TC6bswkAOw==[/img]
    [img]data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAAABGdBTUEAALGPC/xhBQAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAAd0SU1FB9oECQMCKPI8CIIAAAAIdEVYdENvbW1lbnQA9syWvwAAAuhJREFUOMtjYBgFxAB501ZWBvVaL2nHnlmk6mXCJbF69zU+Hz/9fB5O1lx+bg45qhl8/fYr5it3XrP/YWTUvvvk3VeqGXz70TvbJy8+Wv39+2/Hz19/mGwjZzuTYjALuoBv9jImaXHeyD3H7kU8fPj2ICML8z92dlbtMzdeiG3fco7J08foH1kurkm3E9iw54YvKwuTuom+LPt/BgbWf3//sf37/1/c02cCG1lB8f//f95DZx74MTMzshhoSm6szrQ/a6Ir/Z2RkfEjBxuLYFpDiDi6Af///2ckaHBp7+7wmavP5n76+P2ClrLIYl8H9W36auJCbCxM4szMTJac7Kza////R3H1w2cfWAgafPbqs5g7D95++/P1B4+ECK8tAwMDw/1H7159+/7r7ZcvPz4fOHbzEwMDwx8GBgaGnNatfHZx8zqrJ+4VJBh5CQEGOySEua/v3n7hXmqI8WUGBgYGL3vVG7fuPK3i5GD9/fja7ZsMDAzMG/Ze52mZeSj4yu1XEq/ff7W5dvfVAS1lsXc4Db7z8C3r8p7Qjf///2dnZGxlqJuyr3rPqQd/Hhyu7oSpYWScylDQsd3kzvnH738wMDzj5GBN1VIWW4c3KDon7VOvm7S3paB9u5qsU5/x5KUnlY+eexQbkLNsErK61+++VnAJcfkyMTIwffj0QwZbJDKjcETs1Y8evyd48toz8y/ffzv//vPP4veffxpX77z6l5JewHPu8MqTDAwMDLzyrjb/mZm0JcT5Lj+89+Ybm6zz95oMh7s4XbygN3Sluq4Mj5K8iKMgP4f0////fv77//8nLy+7MCcXmyYDAwODS9jM9tcvPypd35pne3ljdjvj26+H2dhYpuENikgfvQeXNmSl3tqepxXsqhXPyc666s+fv1fMdKR3TK72zpix8nTc7bdfhfkEeVbC9KhbK/9iYWHiErbu6MWbY/7//8/4//9/pgOnH6jGVazvFDRtq2VgiBIZrUTIBgCk+ivHvuEKwAAAAABJRU5ErkJggg==[/img]
    [img]data:image/gif;base64,R0lGODlhFgAWAID/AMDAwAAAACH5BAEAAAAALAAAAAAWABYAQAInhI+pa+H9mJy0LhdgtrxzDG5WGFVk6aXqyk6Y9kXvKKNuLbb6zgMFADs=[/img]
    [img]data:image/gif;base64,R0lGODlhFgAWAKEDAAAAAF9vj5WIbf///yH5BAEAAAMALAAAAAAWABYAAAIjnI+py+0Po5x0gXvruEKHrF2BB1YiCWgbMFIYpsbyTNd2UwAAOw==[/img]
    [img]data:image/gif;base64,R0lGODlhFgAWAKECAAAAAF9vj////////yH5BAEAAAIALAAAAAAWABYAAAIrlI+py+0Po5zUgAsEzvEeL4Ea15EiJJ5PSqJmuwKBEKgxVuXWtun+DwxCCgA7[/img]
    [img]data:image/gif;base64,R0lGODlhFgAWAID/AMDAwAAAACH5BAEAAAAALAAAAAAWABYAQAIghI+py+0Po5y02ouz3jL4D4JMGELkGYxo+qzl4nKyXAAAOw==[/img]
    [img]data:image/gif;base64,R0lGODlhFgAWAID/AMDAwAAAACH5BAEAAAAALAAAAAAWABYAQAIfhI+py+0Po5y02ouz3jL4D4JOGI7kaZ5Bqn4sycVbAQA7[/img]
    [img]data:image/gif;base64,R0lGODlhFgAWAID/AMDAwAAAACH5BAEAAAAALAAAAAAWABYAQAIghI+py+0Po5y02ouz3jL4D4JQGDLkGYxouqzl43JyVgAAOw==[/img]
    [img]data:image/gif;base64,R0lGODlhFgAWAMIGAAAAADljwliE35GjuaezxtHa7P///////yH5BAEAAAcALAAAAAAWABYAAAM2eLrc/jDKSespwjoRFvggCBUBoTFBeq6QIAysQnRHaEOzyaZ07Lu9lUBnC0UGQU1K52s6n5oEADs=[/img]
    [img]data:image/gif;base64,R0lGODlhFgAWAMIGAAAAAB1ChF9vj1iE33mOrqezxv///////yH5BAEAAAcALAAAAAAWABYAAAMyeLrc/jDKSesppNhGRlBAKIZRERBbqm6YtnbfMY7lud64UwiuKnigGQliQuWOyKQykgAAOw==[/img]
    [img]data:image/gif;base64,R0lGODlhFgAWAIQXAC1NqjFRjkBgmT9nqUJnsk9xrFJ7u2R9qmKBt1iGzHmOrm6Sz4OXw3Odz4Cl2ZSnw6KxyqO306K63bG70bTB0rDI3bvI4P///////////////////////////////////yH5BAEKAB8ALAAAAAAWABYAAAVP4CeOZGmeaKqubEs2CekkErvEI1zZuOgYFlakECEZFi0GgTGKEBATFmJAVXweVOoKEQgABB9IQDCmrLpjETrQQlhHjINrTq/b7/i8fp8PAQA7[/img]
    [img]data:image/gif;base64,R0lGODlhFgAWAMIHAAAAADljwliE35GjuaezxtDV3NHa7P///yH5BAEAAAcALAAAAAAWABYAAAM2eLrc/jDKCQG9F2i7u8agQgyK1z2EIBil+TWqEMxhMczsYVJ3e4ahk+sFnAgtxSQDqWw6n5cEADs=[/img]
    [img]data:image/gif;base64,R0lGODlhFgAWAOMIAAAAADljwl9vj1iE35GjuaezxtDV3NHa7P///////////////////////////////yH5BAEAAAgALAAAAAAWABYAAAQ7EMlJq704650B/x8gemMpgugwHJNZXodKsO5oqUOgo5KhBwWESyMQsCRDHu9VOyk5TM9zSpFSr9gsJwIAOw==[/img]
    [img]data:image/gif;base64,R0lGODlhFgAWAOMKAB1ChDRLY19vj3mOrpGjuaezxrCztb/I19Ha7Pv8/f///////////////////////yH5BAEKAA8ALAAAAAAWABYAAARY8MlJq7046827/2BYIQVhHg9pEgVGIklyDEUBy/RlE4FQF4dCj2AQXAiJQDCWQCAEBwIioEMQBgSAFhDAGghGi9XgHAhMNoSZgJkJei33UESv2+/4vD4TAQA7[/img]
    [img]data:image/gif;base64,R0lGODlhFgAWAIQSAB1ChBFNsRJTySJYwjljwkxwl19vj1dusYODhl6MnHmOrpqbmpGjuaezxrCztcDCxL/I18rL1P///////////////////////////////////////////////////////yH5BAEAAB8ALAAAAAAWABYAAAVu4CeOZGmeaKqubDs6TNnEbGNApNG0kbGMi5trwcA9GArXh+FAfBAw5UexUDAQESkRsfhJPwaH4YsEGAAJGisRGAQY7UCC9ZAXBB+74LGCRxIEHwAHdWooDgGJcwpxDisQBQRjIgkDCVlfmZqbmiEAOw==[/img]
    [img]data:image/gif;base64,R0lGODlhFgAWAIQcAB1ChBFNsTRLYyJYwjljwl9vj1iE31iGzF6MnHWX9HOdz5GjuYCl2YKl8ZOt4qezxqK63aK/9KPD+7DI3b/I17LM/MrL1MLY9NHa7OPs++bx/Pv8/f///////////////yH5BAEAAB8ALAAAAAAWABYAAAWG4CeOZGmeaKqubOum1SQ/kPVOW749BeVSus2CgrCxHptLBbOQxCSNCCaF1GUqwQbBd0JGJAyGJJiobE+LnCaDcXAaEoxhQACgNw0FQx9kP+wmaRgYFBQNeAoGihCAJQsCkJAKOhgXEw8BLQYciooHf5o7EA+kC40qBKkAAAGrpy+wsbKzIiEAOw==[/img]
    [img]data:image/gif;base64,R0lGODlhFgAWAIQUAD04KTRLY2tXQF9vj414WZWIbXmOrpqbmpGjudClFaezxsa0cb/I1+3YitHa7PrkIPHvbuPs+/fvrvv8/f///////////////////////////////////////////////yH5BAEAAB8ALAAAAAAWABYAAAWN4CeOZGmeaKqubGsusPvBSyFJjVDs6nJLB0khR4AkBCmfsCGBQAoCwjF5gwquVykSFbwZE+AwIBV0GhFog2EwIDchjwRiQo9E2Fx4XD5R+B0DDAEnBXBhBhN2DgwDAQFjJYVhCQYRfgoIDGiQJAWTCQMRiwwMfgicnVcAAAMOaK+bLAOrtLUyt7i5uiUhADs=[/img]
    </div>
    <div id="editDiv" contenteditable="true"></div>
    <p id="editMode"><input type="checkbox" name="switchMode" id="switchBox" onchange="setDocMode(this.checked);" /> <label for="switchBox">Visualizza HTML</label></p>
    </form>
    </body>
    </html>

  7. #77
    Utente di HTML.it L'avatar di Xinod
    Registrato dal
    Sep 2000
    Messaggi
    13,651
    Originariamente inviato da Xinod
    per favore Carlo, non postare gli script direttamente qui,
    apri una discussione apposita per lo script, anche nell' eventualita' se ne voglia discutere piu' approfonditamente

  8. #78
    Utente di HTML.it L'avatar di carlomarx
    Registrato dal
    Oct 2009
    Messaggi
    1,669
    Per coloro ai quali dovesse servire&hellip;

    Textarea con numero massimo di caratteri per riga e numero massimo di righe.


    Originariamente inviato da Xinod
    per favore Carlo, non postare gli script direttamente qui,
    apri una discussione apposita per lo script, anche nell' eventualita' se ne voglia discutere piu' approfonditamente

  9. #79
    Utente di HTML.it L'avatar di carlomarx
    Registrato dal
    Oct 2009
    Messaggi
    1,669
    Creare un archivio .zip con javascript:

    http://jszip.stuartk.co.uk/

  10. #80
    Utente di HTML.it L'avatar di carlomarx
    Registrato dal
    Oct 2009
    Messaggi
    1,669
    Estrarre le pagine da un pdf e trasformarle in immagini in puro javascript:

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2020 vBulletin Solutions, Inc. All rights reserved.