This commit is contained in:
JoseluCross
2018-10-01 16:05:19 +02:00
parent 94d28dc292
commit e796883167
3 changed files with 37 additions and 14 deletions

View File

@@ -27,7 +27,7 @@
<li>
<form class="nav navbar-nav navbar-form navbar-left" method="post">
<div class="form-group">
<input type="text" class="form-control" name="search" placeholder="Search">
<input type="text" class="form-control" name="globalSearch" placeholder="Search">
</div>
<button type="submit" class="btn btn-primary btn-sm">Submit</button>
</form>

View File

@@ -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
}