Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //IMPORT BD
- function importar_bd(){
- var formData = new FormData();
- formData.append("archivo", document.getElementById("importar_bd_file").files[0]);
- var ruta = "upload.php";
- $.ajax({
- url: ruta,
- type: "POST",
- data: formData,
- contentType: false,
- processData: false,
- success: function(respuesta)
- {
- alert(respuesta);
- },
- error: function() {
- alert("Some error message here");
- }
- });
- return false;
- }
- //EXPORT BD
- function exportar_bd(){
- window.location.href = "my_db.db";
- }
Add Comment
Please, Sign In to add comment