Questions tagged as 'ajax'

1
answer

Serialize and send text and image through AJAX

I have a form which contains a text field and a file field to upload images which I send via AJAX. How can I serialize both the input file and the input text to send the two data at the same time? I have serialized the text field and also...
asked by 23.07.2017 / 17:29
1
answer

Dynamically delete rows from HTML Table with AJAX

I have a code which should enter or delete the last row as we need an HTML table with AJAX These are my buttons: <button class="btn btn-success addmore" type="button" id="insert-more"> Agregar Artículo</button> <...
asked by 31.07.2017 / 21:06
1
answer

Bootstrap manners are not shown on my div that loads all my content with ajax

I have an index with a navigation made with AJAX and thus load all the other pages within the div that has the index.php, so that the browser does not recharge. My problem is when in that div I want to load a CRUD that uses the...
asked by 27.07.2017 / 22:49
1
answer

Why does not OnClick work on my td? [closed]

I have the following code in jquery , which adds a row to a table var fila = "<tr><td>" + $.trim(idProduct) + "</td>"; fila += "<td>" + $.trim(response.d.nombreProducto) + "</td>"; fila += "<td onclick='O...
asked by 12.07.2017 / 22:28
1
answer

Capture parameter when it is in checked status and I click on the button

I have this ajax $(function() { //function ajax $('#example-table .processPreset').click(function(e) { e.preventDefault(); var elemento = $(this); var idArt = elemento.parent().parent().find('#id_articulo...
asked by 10.07.2017 / 18:35
1
answer

AJAX error when sending data with files

Hello, I am trying to upload a file from exel to a database / SQL SERVER 2008 through AJAX . But I have a problem with the file when I send the data ... at this moment I have not managed to mount the file in the query to execute it, on the...
asked by 10.11.2017 / 22:51
2
answers

how to handle errors using $ .ajax ()?

I have tried everything and I can not catch the errors like for example when there is no internet connection or when you can not make the request with the server, I hope you understand me and can help me, I have said that you can handle the erro...
asked by 11.06.2017 / 19:37
1
answer

How to send a link through AJAX?

What I need specifically is that by clicking on a <div> or the label that was, act as a link, but only to request a JSON request, that is, it is a link that does not direct to any specific side, only performs a write job on the serv...
asked by 23.06.2017 / 16:34
2
answers

Give more time to show in ajax

I have this code and I want to give it a little more time when displaying the #result element. $(document).ready(function(){ $('.para_envio').submit(function(){ var x = confirm("Are you sure you want to update?"); if (x...
asked by 19.05.2017 / 05:47
1
answer

Error when selecting data from the database with ajax [closed]

I'm doing several cases in my code, but when I enter the listar case and execute it on my localhost it fails and it throws me an error    Fatal error: Uncaught Error: Call to undefined method mysqli_result :: feth_object () my code...
asked by 01.07.2017 / 09:55