Questions tagged as 'ajax'

2
answers

Ajax query "undefined"

My query is as follows, my code is: $("#sPedido").change(function(){ var codigo_c=$("#sPedido").val(); $.post("traertabla.php", function(datos){ $("#midiv").html(datos); alert(datos.mensaje); }); }); The line:...
asked by 09.03.2017 / 01:06
1
answer

POST method to send form data with AJAX without JQUERY [duplicate]

Hi, I have a script in js that sends the form data from a page to the server and it works well with a Jquery function but I would like to be able to do it without the use of Jquery. script with jQuery (works) $("#contact-form").on("submit...
asked by 29.04.2018 / 13:09
1
answer

Help in laravel 5 and ajax. Get a value from the database

I want that in my view, when selecting something in my dropdown, I execute a method that I have in my controller, it performs another function (query) in my model, which takes a data (int) from a table . I have an error when debugging with chrom...
asked by 10.06.2016 / 20:10
2
answers

download file from url with ajax and asp.net mvc 5

I'm trying to download a file from a URL with ajax and asp.net mvc 5 This is my controller: [HttpPost] public ActionResult DownloadDocument(DownloadModel model){ urlFile = "http://www.storage.net/data/pdf-xml/" + model.nombre.ToLower() + mo...
asked by 06.06.2016 / 19:47
1
answer

Force download or show in another window a pdf using html2pdf

Can you please support me? I am developing a simple system for a company, they want to generate service orders. It is a form with various inputs that the client fills in order to generate a PDF with all this information. Using htmltopdf l...
asked by 28.01.2018 / 07:31
1
answer

Click counter with ajax and PHP

I would like to know if you have an example of how to count a click in a label <a></a> and that% click is stored in a database so that after the total number of times clicked is counted. < br> In the network you...
asked by 09.08.2018 / 18:58
2
answers

How to use serialize in a form with File type input?

I have a form in html to register a product for it use ajax, when I make a serialize to the form I get all the fields of the same except for the field of type file that with FormData (), I can get this field but I like to know there is a way wit...
asked by 30.03.2018 / 12:30
1
answer

how to wait for 2 AJAX requests to finish before processing with the answer of 2? Without JQuery

I am doing several tests to get together the information of two different AJAX (Without JQuery) requests (therefore with their different times etc ...) but I can not "get" the information of the function that processes the AJAX response. I gi...
asked by 01.04.2018 / 12:03
2
answers

function clickbutton without jquery

I have a code that clicks on a button, but I want to do the same without jquery, since jquery makes my page very slow, like I do with javascript? this is the code: <script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>...
asked by 29.07.2018 / 04:24
1
answer

Upload image to the server and rename it

Good day, basically I need to take a picture and re-name it with the name that the user provides in an input and upload it to the server. With this code, the images are already uploaded to the server, it would only be necessary to name them w...
asked by 22.01.2018 / 19:32