Questions tagged as 'ajax'

2
answers

Print list content with jquery ajax

I have a jquery ajax code that returns me data from a request, but it returns me a line and then erases and plays the next one on top of the previous one, I want it to print on the screen 1 result below another as a list, how can I do this?...
asked by 08.07.2017 / 02:34
2
answers

What does this line mean? - $ .ajaxSetup ({scriptCharset: "utf-8", contentType: "application / x-www-form-urlencoded; charset = UTF-8"

Hello, I'm analyzing a programming already done to learn, it's working, but I've arrived in this part and I'm not finding the meaning of it online. Could anyone help me? Follow the line of code: $.ajaxSetup({ scriptCharset: "utf-8" ,cont...
asked by 04.07.2017 / 15:57
1
answer

I need to have the form fill in the info from the search by cnpj

Below is a snippet of code. I have doubts on how to do so, when clicking SEARCH, the CNPJ can be found on the receivers site and the fields below are filled in: link using the $ .ajax function of the jQuery library. (Where "00000000000000"...
asked by 02.09.2017 / 20:04
2
answers

Removing .append () jQuery

I have several buttons where in the click of the same directs to an Ajax request passing as parameter the id of a product and through an external file, as the same is added to the cart however this is not so relevant. Another thing not so import...
asked by 31.08.2017 / 21:26
2
answers

Uncaught TypeError: Can not read property 'split' of undefined at XMLHttpRequest.alertContents

var prof1 = 0, prof2 = 0,prof3 = 0, prof4 = 0,prof5 = 0, prof6 = 0,prof7 = 0, prof8 = 0,prof9 = 0, prof10 = 0,prof11 = 0, mat1 = 0,mat2 = 0, mat3 = 0, mat4 = 0,mat5 = 0, mat6 = 0, mat7 = 0,mat8 = 0, mat9 = 0, mat10 = 0,mat11 = 0; v...
asked by 02.09.2017 / 00:06
1
answer

(Json with object) Ajax [closed]

How can I consume in ajax the following Json (coming from a Rest Web Api?) [ { "usuario": { "id": 1, "login": "gleyson", "senha": "123", "ativo": "S" }, "id": 1, "tipo"...
asked by 14.06.2017 / 15:15
1
answer

Clicking the button makes two ajax requests, how to avoid it?

When I click the "Hire" button it makes two requests on the server at once, how can I avoid this? <button type="button" class="pagar" id="10.00">Contratar</button> Ajax $(document).on('click', ".pagar", function () { preco...
asked by 26.06.2017 / 22:12
1
answer

Words with an accent do not work

I have Ajax which loads data from the database and in type json: $.ajax({ type:'post', dataType: 'json', url: '../model/dao/CursoDao.php?acao=1', success: function(dados){ for(var i=0; dados.length > i; i++){...
asked by 24.08.2017 / 23:33
2
answers

Filter select fields using the value of other selects with Ruby on Rails

Good afternoon, I have a problem to solve here in my application. The problem is to filter the HTML "Solution" select field, based on the values of the other selects fields above it. The image shows an example of these fields. Currently,theappl...
asked by 07.08.2017 / 17:43
2
answers

Autocomplete with jquery and mysql does not list options when typing

I have the following form: <?php //CHAMA A CONEXÃO COM O BANCO DE DADOS require('../db/conexao.php'); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatib...
asked by 07.04.2017 / 21:23