Questions tagged as 'ajax'

2
answers

How can I refresh a form made with ajax so that the inputs are clean?

I have a form made with ajax using Ajax.BeginForm this I have it in a modal, the problem that I have is that when I send the form I make the modal one close with jQuery but if I open the modal the values of the inputs that I had pr...
asked by 22.06.2018 / 16:42
1
answer

Query runs twice

the following ajax function sends the parameters correctly: function concatenaredicion(idarchivoaeditar) { var contenidoagregar = CKEDITOR.instances['editor1'].getData(); data = { "texto":contenidoagregar, "idinform...
asked by 28.08.2018 / 23:25
2
answers

How can I extract a certain element from an html string returned by AJAX?

As I say in my question. What happens is that through Ajax I make a call to an HTML document, but I only want to obtain a certain element, let's say that only the content of the body. How can I do it? Well, what I'm trying to do is impl...
asked by 05.02.2018 / 00:36
2
answers

Why does not the value that I send from the controller to the javascript of the view arrive?

I work ASP.NET MVC, Visual Studio 2015, the problem that is happening to me is that when I register a new record it sends me a json, it is more redirecting me showing me the json since my method is a JsonResul, then it does not It's nothing abno...
asked by 19.12.2017 / 23:50
1
answer

Multiple file upload by AJAX and problem with post_max_size

Good afternoon! I am creating a multiple file upload with jQuery / AJAX and PHP. Doing tests, I've noticed that when I select a total of + 3mb of files, it does not upload me. When it's less than that, it does. I have looked at my phpinfo and...
asked by 25.01.2018 / 13:07
2
answers

IF conditional on jQuery

Good morning, The purpose of this code is to check if a record (number), sent through the form, exists in the database. The submit button (which is invisible) must be displayed on screen if it is confirmed that the record entered exists in th...
asked by 30.08.2017 / 05:00
2
answers

How to do a POST of a variable and receive it as an object in PHP using AJAX?

Practicing AJAX, the following question arose: When we want to do a POST towards PHP, we put in the attribute data of the AJAX object, the variable that we want its content to be sent. Then in the PHP file we must make a POST of sai...
asked by 07.08.2017 / 20:21
1
answer

Jquery.Ajax does not work in Chrome, but if it works in Firefox

I am using a method that loads information from a database in a combobox, but what is shown depends on the previous selection in another combobox ... A dynamic combobox. It happens to work perfectly in Mozilla Firefox (v.54.0) but does not...
asked by 16.06.2017 / 17:54
2
answers

Update div every X seconds

I need a function to recharge one every X seconds because the value of the BBDD can change. I have the following, but I do not update the value. What fails me? div: <div id="results">valor a cargar</div> The script: functio...
asked by 30.03.2018 / 21:30
2
answers

Pass fix by ajax jquery to PHP post

I have the following arrangement that I want to send by ajax jquery by post to php codeigniter    var array = []; (2) [Object, Object] 0 : Object Codigo : "11111" Descripción : "caja" Eliminar : " Eliminar" Precio : "$46" __proto__ : Objec...
asked by 10.05.2017 / 20:47