Questions tagged as 'ajax'

1
answer

how to redirect from ajax?

Very good I have a problem to redirect from use ajax post request The problems are as follows: I have a div which receives only all the validation texts that could occur in the application <div id="resultado"> </div...
asked by 17.07.2017 / 22:25
1
answer

Return .done s string in a Jquery Ajax response

I have the following code: function GET_URLAsync(strUrl, aParm) { var response = $.ajax({ type: "POST", url: "../Paginas/" + strUrl, data: JSON.stringify(aParm), contentType: "application/json; charset=utf-...
asked by 19.07.2017 / 22:26
1
answer

Error when passing variable from Javascript to PHP from the same file?

First of all mention that I found similar questions to this with possible solutions or closed because they are duplicated but without a solution. To pass the variable from JavaScript to php I decided to do it with Ajax in...
asked by 12.07.2017 / 05:14
2
answers

MySQL query in php does not recognize variable sent from ajax

To pass the variable from JavaScript to php I do it with Ajax in this way: <script type="text/javascript"> function ejecutar(num_js){ $.ajax({ url: 'mi_php.php', type:'POST',...
asked by 14.07.2017 / 23:52
1
answer

Insert array in a table from ajax [closed]

I have the following Ajax $(function() { //function ajax $('#example-table #btn-analisisInterno').click(function(e) { e.preventDefault(); var elemento = $(this); var idArt = elemento.parent().parent().fin...
asked by 30.06.2017 / 15:47
3
answers

Increase variables dynamically [duplicated]

I want to increase the variable of each of the fields ( NUMERO_ITEM1 , DESCRIPCION_ITEM1 ) dynamically, that is DESCRIPCION_ITEM1 , DESCRIPCION_ITEM2 ... DESCRIPCION_ITEMn ... By means of variable $post...
asked by 14.06.2017 / 21:53
1
answer

Evaluate variable received with request to the server with ajax

Good afternoon, I have the following 3 codes. Using the javascript code with ajax made the request and it is done correctly, this is the login of a user, in case of being correct the data says "Welcome" otherwise "There are no registered user...
asked by 25.06.2017 / 00:59
1
answer

Edit record with dependent combo Ajax

I have a form with 2 dependent comboboxes: Combo A and Combo B: When I make a new record there is no problem I select A and it shows in B what belongs to it, I select it and it registers in my DB. My drawback is when I already want to edit...
asked by 16.06.2017 / 05:08
1
answer

Undefined in the PHP return to the front with JSON

I am trying to create a session validation with Jquery, AJAX, JSON and PHP. I have this code. This is the generic function that I invoke in each query, I modified the code because apparently I was doing the return inside the AJAX function, I...
asked by 20.06.2017 / 21:44
1
answer

Upload an image by Ajax and CI

I want to know if my JQuery is well declared or set. In the capture part I capture it for the .val() nose if it will be bad or good, because at the time of recording it says that no image has been selected MTML: <d...
asked by 21.06.2017 / 00:06