hayek Posted February 19, 2009 at 08:21 PM Report Share #245613 Posted February 19, 2009 at 08:21 PM Boa noite Gostaria de saber como implementar este código a funcionar em php function actualiza_precos() { jogo = document.encomendar.jogos.value; meses = document.encomendar.meses.value; slots = document.encomendar.slots.value; extra1 = document.encomendar.extra1.value; var xhrRec = xhrRequest(); xhrRec.open('GET', 'calculadora/ajax.php?tipo=0&jogo=' + jogo + '&meses=' + meses + '&slots=' + slots + '&extra1=' + extra1, true); xhrRec.onreadystatechange = function() { if (xhrRec.readyState == 4 && xhrRec.status == 200) { document.getElementById("ajax").innerHTML = xhrRec.responseText; xhrRec = null; } }; xhrRec.send(null); } function activar_campo() { if (document.encomendar.jogos.value == 7 || document.encomendar.jogos.value == 8 || document.encomendar.jogos.value == 13) document.encomendar.extra1.disabled = false; else document.encomendar.extra1.disabled = true; } function actualizar_slots() { jogo = document.encomendar.jogos.value; meses = document.encomendar.meses.value; slots = document.encomendar.slots.value; extra1 = document.encomendar.extra1.value; var xhrRec = xhrRequest(); xhrRec.open('GET', 'calculadora/ajax.php?tipo=1&jogo=' + jogo + '&meses=' + meses + '&slots=' + slots + '&extra1=' + extra1, true); xhrRec.onreadystatechange = function() { if (xhrRec.readyState == 4 && xhrRec.status == 200) { document.getElementById("select_slots").innerHTML = xhrRec.responseText; xhrRec = null; } }; xhrRec.send(null); } Link to comment Share on other sites More sharing options...
yoda Posted February 19, 2009 at 08:41 PM Report Share #245616 Posted February 19, 2009 at 08:41 PM Boas, Tens algum php já feito? before you post, what have you tried? - http://filipematias.info sense, purpose, direction Link to comment Share on other sites More sharing options...
hayek Posted February 19, 2009 at 09:38 PM Author Report Share #245662 Posted February 19, 2009 at 09:38 PM Boas, Tens algum php já feito? Não :/ Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now