Pagina 2 di 2 primaprima 1 2
Visualizzazione dei risultati da 11 a 16 su 16
  1. #11
    Utente di HTML.it L'avatar di barnico
    Registrato dal
    Oct 2001
    Messaggi
    490
    ok, ma poi come faccio a leggermi i valori spostati e inserirli in un db?

  2. #12
    Utente di HTML.it L'avatar di killer
    Registrato dal
    Jan 2002
    Messaggi
    279
    be... questa non è + una questione riguardante il forum Scripting.
    Vai sul forum di ASP.. o PHP a seconda di quello che stai utilizzando.
    Magari possiamo discuterne lì..

    _| killer |_

  3. #13
    Utente di HTML.it L'avatar di barnico
    Registrato dal
    Oct 2001
    Messaggi
    490
    esatto scusa, allora scrivo su php
    ciao grazie

  4. #14
    Utente di HTML.it L'avatar di killer
    Registrato dal
    Jan 2002
    Messaggi
    279
    di nulla

    _| killer |_

  5. #15
    Utente di HTML.it L'avatar di badaze
    Registrato dal
    Jun 2002
    residenza
    Lyon
    Messaggi
    5,372
    Originariamente inviato da barnico
    grazie funziona che è una meraviglio, il problema e farlo funzionare con mozzilla firefox come si può fare?
    scusami ma potresti darmi un'ultimo aiuto?
    grazie
    Cosi

    codice:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <title>test</title>
    <script language="javascript">
    	function moveItem(theListBox1, theListBox2, theWay)
    	{
    	
    		if(theWay == "right")
    		{
    			if(theListBox1.selectedIndex == -1)
    					return false;
    			theListBox2.options[theListBox2.length] = new Option(theListBox1.options[theListBox1.selectedIndex].label, theListBox1.options[theListBox1.selectedIndex].value);
    			theListBox2.options[theListBox2.length-1].label = theListBox1.options[theListBox1.selectedIndex].label;
    			theListBox1.options[theListBox1.selectedIndex] = null;
    		}
    
    		if(theWay == "left")
    		{
    			if(theListBox2.selectedIndex == -1)
    					return false;
    			theListBox1.options[theListBox1.length] = new Option(theListBox2.options[theListBox2.selectedIndex].label, theListBox2.options[theListBox2.selectedIndex].value);
    			theListBox1.options[theListBox1.length-1].label = theListBox2.options[theListBox2.selectedIndex].label;
    			theListBox2.options[theListBox2.selectedIndex] = null;
    		}
    	}
    </script>
    </head>
    
    <body>
    <table>
    <tr>
    <td>
    <select name="myListboxOne" id="myListboxOne" size="10"> 
    	<option label="Valore 1" value="1">Valore 1</option>
    	<option label="Valore 2" value="2">Valore 2</option>
    	<option label="Valore 3" value="3">Valore 3</option>
    	<option label="Valore 4" value="4">Valore 4</option>
    	<option label="Valore 5" value="5">Valore 5</option>
    </select> 
    </td>
    <td>
    <input type="button" value=">>" id="myCmd" onClick="javascript:moveItem(document.getElementById('myListboxOne'), document.getElementById('myListboxTwo'), 'right');">
    
    <input type="button" value="<<" id="myCmd" onClick="javascript:moveItem(document.getElementById('myListboxOne'), document.getElementById('myListboxTwo'), 'left');">
    </td>
    <td>
    <select name="myListboxTwo" id="myListboxTwo" size="10"> 
    </select> 
    
    </td>
    </tr>
    </table>
    </body>
    </html>

  6. #16
    Utente di HTML.it L'avatar di killer
    Registrato dal
    Jan 2002
    Messaggi
    279
    ovvero basta aggiungere gli id alle listiboxes..
    non lo sapevo.

    _| killer |_

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