Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <script>
- function nuevoAjax(){
- var xmlhttp=false;
- try {
- xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
- } catch (e) {
- try {
- xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
- } catch (E) {
- xmlhttp = false;
- }
- }
- if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
- xmlhttp = new XMLHttpRequest();
- }
- return xmlhttp;
- }
- function cargarContenido(){
- var t1, t2, contenedor;
- contenedor = document.getElementById('contenido');
- t1 = document.getElementById('senha1').value;
- t2 = document.getElementById('senha2').value;
- ajax=nuevoAjax();
- ajax.open("GET", "Retorna_ajax.php?t1="+t1+"&t2="+t2,true);
- ajax.onreadystatechange=function() {
- if (ajax.readyState==4) {
- contenedor.innerHTML=ajax.responseText;
- }
- }
- ajax.send(null)
- }
- </script>
- </head>
- <body>
- <hr width="50%" align="tr">
- <table border="0" width="23%" borderColor="purple" align="center">
- <caption><font color="#800080">Verifica Senha</font></caption>
- <tr>
- <td><font color="#404000">Senha</font>:</td>
- <td><input type="password" value="" id="senha1"></td>
- </tr>
- <tr>
- <td><font color="#404000">Confirm Senha</font>:</td>
- <td><input type="password" value="" id="senha2" onBlur=cargarContenido()></td>
- </tr>
- </table>
- <table border="0" width="23%" align="center">
- <tr>
- <td><p id="contenido"></p></td>
- </tr>
- </table>
- <hr width="50%" align="tr">
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement