Moderators Dragos Posted June 7, 2010 Moderators Report Posted June 7, 2010 (edited) <script> function stringtocode(string){ if (string == "") { alert('Nu ai completat sectiunea cu ?irul de caractere alfanumerice.') } else { inceput = "String.fromCharCode(" for (i=0;i<string.length;i++) { inceput+=string.charCodeAt(i)+"," } inceput = inceput.substring(0,inceput.length-1) inceput += ")" document.getElementById('valoare').value = inceput }}</script>?ir de caractere alfanumerice<br/><br/><input id="sir" type="text" size="60"><input type="button" value="Calculeaz?" onclick="stringtocode(sir.value)"><br/><br/><textarea rows="10" cols="56" id="valoare"></textarea> Edited July 5, 2010 by Dragos Quote
DarkIceee Posted June 7, 2010 Report Posted June 7, 2010 Din cate vad versiunea online nu merge . alfanumerice în Unicod ?? recunoaste si caractere gen : sau , sau . ?? Quote
Moderators Dragos Posted June 7, 2010 Author Moderators Report Posted June 7, 2010 (edited) Recunoaste si ?, ; etc.Mie imi merge versiunea online.. Edited June 7, 2010 by Dragos Quote