Primer commit del sistema avantika sin cambios
This commit is contained in:
40
javascript/envios-traspasos.js
Executable file
40
javascript/envios-traspasos.js
Executable file
@@ -0,0 +1,40 @@
|
||||
function Search()
|
||||
{
|
||||
new Ajax.Request(WEB_ROOT+'/ajax/envios.php',
|
||||
{
|
||||
method:'post',
|
||||
parameters: $('frmSearch').serialize(),
|
||||
onLoading: function(){
|
||||
$('loadBusqueda').show();
|
||||
$('contenido').innerHTML = '';
|
||||
},
|
||||
onSuccess: function(transport){
|
||||
var response = transport.responseText || "no response text";
|
||||
var splitResponse = response.split("[#]");
|
||||
|
||||
$('loadBusqueda').hide();
|
||||
|
||||
if(splitResponse[0] == "ok")
|
||||
$('contenido').innerHTML = splitResponse[1];
|
||||
},
|
||||
onFailure: function(){ alert('Something went wrong...') }
|
||||
});
|
||||
}
|
||||
|
||||
function ExportPdf(){
|
||||
|
||||
$("frmSearch").submit();
|
||||
|
||||
}
|
||||
|
||||
function CheckKey(e){
|
||||
|
||||
if(window.event)
|
||||
keyCode = window.event.keyCode;
|
||||
else if(e)
|
||||
keyCode=e.which;
|
||||
|
||||
if(keyCode == 13)
|
||||
Search();
|
||||
|
||||
}//CheckKey
|
||||
Reference in New Issue
Block a user