Visualizzazione dei risultati da 1 a 10 su 19

Hybrid View

  1. #1
    Ho modificato il form. Ho anche cambiato la funzione js:

    codice HTML:
    function richieste(){
        oggetto = document.getElementById('item_name').value;
        var ajax = new XMLHttpRequest();
        if(ajax){
            ajax.open("post", "prezzi.php", true);
            ajax.setRequestHeader("content-type", "application/x-www-form-urlencoded");
            ajax.send("oggetto=" + oggetto);
            ajax.onreadystatechange = function(){
                if(ajax.readyState == 4 && ajax.status == 200){
                        var testo = ajax.responseText;
                        document.getElementById('amount').value = testo;
                        document.getElementById('amount').removeAttribute('disabled');
                        document.getElementById('prezzo').value = testo;
                    }
                }
            }
        }
    Ultima modifica di masternick; 19-08-2015 a 15:35

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.