Question:
Date: 22-04-2018 14:07:44
(In Spanish)
Como debo hacerlo ? Votes: 0 - Answers: 3 - Views: 10 Share on: Google Facebook Twitter LinkedIn Link
Hacer que la pagina no se cargue al publicar, si no al estelo facebook[Unresolved]
Hola amigos, cuando publico algo en mi pagina web, la pagina se recarga y yo quiero que solo lo haga estilo facebook que se refresque la publicación abajoComo debo hacerlo ? Votes: 0 - Answers: 3 - Views: 10 Share on: Google Facebook Twitter LinkedIn Link
Answers:
-
Date: 22-04-2018 17:30:30 para ello debes utilizar ajax, aunque no se como estas programando tu timeline, con ajax puedes hacer la publicación sin recargar la web Votes: 0 - Link answer
-
Date: 22-04-2018 17:58:51 Hola Compañero Braylin lo que usted quiere hacer, se hace con Ajax
ya sea usando Jquery o Javascript puro veamos un simple ejemplo usando javascript:
// definimos el objeto XMLHttpRequest De Ajax const xmlhr = (window.XMLHttpRequest) ? new XMLHttpRequest() : new ActiveXObject("Microsoft.XMLHTTP"); // abrimos la peticion Ajax: en primer lugar iria ya sea GET o POST luego en segundo parametro iria la url de archivo el cual tendra que regresar algo ojo hay un 3 parametro de tipo booleano true o false xmlhr.open('GET', 'https://tuweb.com/registerAccount.php'); xmlhr.send(null); // invocamos al evento onreadystatechange xmlhr.onreadystatechange = function() { if(this.readyState === 4 && this.status === 200) { document.getElementById('idetiquetahtml').innerText = this.responseText; }
Votes: 1 - Link answer -
Date: 22-04-2018 20:18:33
<form action="<?php echo $editFormAction; ?>" method="post" name="form1" id="form1"> <table align="center"> <tr valign="baseline"> <td><textarea name="texto" cols="60" rows="3" class="placeholder" placeholder="Escribe algo, <?php echo $row_myusuario['nombre']; ?>"></textarea></td> </tr> <tr valign="baseline"> <td align="right"><input type="submit" class="botonpublicar" value=" Publicar " /></td> </tr> </table> <input type="hidden" name="correo" value="<?php echo $row_myusuario['correo']; ?>" /> <input type="hidden" name="imagen" value="" /> <input type="hidden" name="amigo" value="<?php echo $row_myusuario['correo']; ?>" /> <input type="hidden" name="video" value="" /> <input type="hidden" name="fecha" value="" /> <input type="hidden" name="MM_insert" value="form1" /> </form>
Votes: 0 - Link answer
To actively participate in the community first must authenticate, enter the system.Sign In