mirror of
https://gitlab.com/CodeSolutionsProject/CodeShare.git
synced 2026-02-16 10:01:34 +01:00
#5 finished
This commit is contained in:
@@ -5,7 +5,7 @@ function doAjax(postValue) {
|
||||
// Preparar la funcion de respuesta
|
||||
conexion.onreadystatechange = ajaxresponse; //Cuando el ajax sea procesado y suceda algo, se ejecuta esta funcion
|
||||
// Realizar peticion HTTP
|
||||
conexion.open('POST', 'ajax.php');
|
||||
conexion.open('POST', '/');
|
||||
conexion.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
|
||||
conexion.send(postValue); //Las variables a mandar, en este caso POST
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user