Questions tagged as 'ajax'

2
answers

Access JSON data (PHP, AJAX)

I have the following code which makes the query correctly in the database: <?php $serverName = "SERVIDORSQL"; $connectionInfo = array( "Database" => "bd_test", "UID" => "supervisor", "PWD" => "supervisor", "Characte...
asked by 26.01.2017 / 21:44
1
answer

Jaax-jquery Status "processing" for Pace.js bar

I'm using pace.js (which is like the top loading bar from youtube) for the loading bar on my web page, and to detect the ajax requests I use: $(document).ajaxStart(function() { Pace.restart(); }); Which executes the pause bar when the reque...
asked by 03.02.2017 / 19:54
2
answers

Problem when passing an image and a checkbox group through ajax

Good morning, I have a problem when passing the parameters of a file type form and a checkbox group through ajax. My code is as follows $("#form_img").submit(function(event){ $('#p2').show(); //disable the default form subm...
asked by 09.01.2017 / 18:09
2
answers

Send data from a table in a modal to a php table using php and jquery

I have a bootstrap modal to which I load data from my database in mysql what I want it to do, is that by clicking on the add button I add the product of the modal row to a table in php in another page and when I gave it to another product, I add...
asked by 16.01.2017 / 02:09
1
answer

Problems with validations using Ajax in Rails

I'm trying to show the validation errors in Rails using ajax in a modal, but I can not show them, I hope they can help me, I will greatly appreciate, I share my code: _form.html.erb <%= form_for @enterprise, remote: true, html: { multi...
asked by 29.12.2016 / 20:46
3
answers

Update only the field that has been sent using PHP and MySQL

I'm doing a blog, and when I edit that blog for example the title, the other variables are declared as undefinex , what can be done in this case? $body = $_POST['body-post']; $title = $_POST['title-post']; $img = $_POST['avatar...
asked by 16.12.2016 / 00:05
1
answer

Pass Variables from JavaScript to Php

Well I want to pass a variable of js to another php document they told me that the most practical thing is using ajax, but I think something is not right: / I want to pass the variable from a document .js to one .php. when passing the variable d...
asked by 04.03.2017 / 05:00
1
answer

Jquery autocomplete plugin Can not read property 'length' of undefined

I am using this wonderful plugin developed by Devbridge. Using your examples one works well and the other does not: The one that works: // Obtengo listaDeProfesionales desde /profesionales/get_lista/ $('#autocompleteInput').autocomplete({...
asked by 02.03.2017 / 17:05
1
answer

I can not call a javascript function

Well, my problem is that I want to get the data of the 'function success: function(json) ', the problem is that it does not read it ... What's wrong? $('#chat-form').on('submit', function(event){ event.preventDefault(); $.ajax({...
asked by 23.01.2017 / 19:16
1
answer

validation of a form through ajax and jquery-validate

Good I have the following problem, I made a function to update my data with PHP and Codeigniter, using AJAX too .. everything works fine, but it turns out that I want to validate my form using jquery-validate before making the AJAX request, for...
asked by 24.01.2017 / 15:05