Visualizzazione dei risultati da 1 a 8 su 8

Hybrid View

  1. #1
    Moderatore di Annunci siti web, Offro lavoro/collaborazione, Cerco lavoro L'avatar di cavicchiandrea
    Registrato dal
    Aug 2001
    Messaggi
    26,134
    Non proprio
    codice:
    <script language='javascript' type="text/javascript">
    function mostra()
    {
    var hostname = document.getElementById('hostname');
    
    document.getElementById("risposta").innerHTML = hostname.value+' '+gateway.value;
    }
    </script>
    body:
    <div id="risposta"></div>
    Se posso, studiati una guida base che trovi in rete o qui html.it
    Cavicchi Andrea
    Problemi con javascript, jquery, ajax clicca qui

  2. #2
    Quote Originariamente inviata da cavicchiandrea Visualizza il messaggio
    Non proprio
    codice:
    <script language='javascript' type="text/javascript">
    function mostra()
    {
    var hostname = document.getElementById('hostname');
    
    document.getElementById("risposta").innerHTML = hostname.value+' '+gateway.value;
    }
    </script>
    body:
    <div id="risposta"></div>
    Se posso, studiati una guida base che trovi in rete o qui html.it

    Grazie per le dritte...qualcosa ho capito, ma evidentemente non del tutto...visto che non mi funziona...potresti dirmi gentilmente dove sbaglio?

    codice:
    <html>
    <head>
    
    
    <script language='javascript' type="text/javascript">
    function mostra()
    {
    var hostname = document.getElementById("hostname").value;
    var gateway = document.getElementById("gateway").value;
    
    
    
    
    document.getElementById("risposta").innerHTML = "set hostname" +hostname+ "set gateway" +gateway+;
    }
    </script>
    
    
    
    
    
    
    </head>
    
    
    <body>
    <form method="get" name="dati" action="risposta.html">
    	<table align="left">
    		<tr>
    			<td>HOSTNAME </td>
    			<td><input type='text' id='hostname' /> </td>
    		</tr>
    		
    		<tr>
    			<td>GATEWAY </td>
    			<td><input type='text' id='gateway' /> </td>
    		</tr>
    		<tr>
    			<td ><input type="submit" value="invia" onClick="javascript:mostra()"></td>
    		</tr>
    	</table>
    </form>
    
    
    
    
    
    
    
    
    <div id="risposta">
    
    
    </div>
    
    
    
    
    </body>
    </html>

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