Visualizzazione dei risultati da 1 a 3 su 3

Discussione: Cosa fa questo script

  1. #1

    Cosa fa questo script

    Cortesemente potete spiegarmi cosa dovrebbe fare questo script?
    codice:
    //<![CDATA[
    //Inserire la funzione myOnSubmitEventHandler() nel form
    function myOnSubmitEventHandler() {
    		try {
    					if(typeof(document.getElementById('editor1').EscapeUnicode) == 'undefined') {
    				throw "Error"
     		 } else {
    			document.getElementById('editor1').EscapeUnicode = true;
    			document.getElementById('xhtml1').value = document.getElementById('editor1').value;
    					
    					}			
    				}
    		catch(er) {
    		document.getElementById('xhtml1').value = document.getElementById('alternate1').value;
    
    				}
    			}
    		//]]>

  2. #2
    restituisce il valore di un campo form (non textarea)
    Cristiano
    ---
    Originariamente inviato da rebelia : solo un nerd puo' pensare di tacchinare in un forum di informatica

  3. #3
    ma quel throw e quel catch?

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 © 2024 vBulletin Solutions, Inc. All rights reserved.