Questions tagged as 'ajax'

1
answer

Code reuse?

Good afternoon people! I have a question, is my logic correct? And it is possible to reduce this code or just have this way to solve ... var aluno = new Object(){ function adicionar_aluno{ document.getElementById("a...
asked by 11.09.2018 / 19:44
1
answer

Scraping data from a site with dynamic tables filtering [closed]

The platform of search of the programs conceptualized in Capes has a dynamic filtering for the own query. I would like to know how I collect the data from an output using Python. Why, using just the bs4 libs and requests I can not get output of...
asked by 06.06.2017 / 23:37
3
answers

Wrong encoding in MySQL when I enter through AJAX

I'm having trouble finding a solution to my problem. Briefly: I send data to a table, using a php file that does the querry, and an ajax call that sends all the values I need to the php file. When it is inserted in the table the accents of th...
asked by 01.02.2017 / 20:12
1
answer

How to send a Javascript vector to php and display them?

I can create my javascript array and store the values inside an array called ArmazenaIds ArmazenaIds = new Array(); $('.checkboxs').each(function () { var estadoDoCheck = $(this).prop('checked'); if(estadoDoCheck ==...
asked by 19.11.2017 / 01:29
1
answer

Jquery does not work with the input loaded with Ajax

The jQuery function works normally but by including input ajax jQuery does not work for the input that has been included! I have the function: $('.alerta').on('input', function() { alert('Olá mundo!'); }) I have in...
asked by 10.11.2017 / 22:57
2
answers

How do I get field values?

My code $(document).ready(function(){ $('.formulario').submit(function(e){ e.preventDefault(); var inputId = $('.inputId').val(); $.ajax({ method: "GET" ,url:"localhost/api/32327ed48666154acb54810521d6f01e0d5de59e/m...
asked by 01.11.2017 / 13:32
1
answer

List data in a table using ajax php and bootstrap

I am facing a series of problems and doubts with ajax! Have the following function that updates the data and list in a table: function atualiza(){ $.ajax({ dataType: 'json', url: 'ge...
asked by 26.10.2017 / 02:01
1
answer

Problem with category and subcategory checkbox to display their respective products

I have a problem with jquery, I do not really have much practice with jquery, but I work with ajax and json to query the database and return data. Well I have a page that the client wants me to take from example: link , on the left side we h...
asked by 26.10.2017 / 16:11
1
answer

Javascript Ajax error [duplicate]

Well I have the following Javascript code function fun() { $.ajax({ url: 'aposta.php', success: function(a){ if(a) { a = JSON.parse(a); $("#tempo").html(a.time);...
asked by 06.03.2016 / 13:23
1
answer

showimagepreview does not work on safari

I have this script to give a preview of the image before the upload works perfectly in ie chrome and firefox except on the safari ... has anyone had problems with safari ?? if anyone can give a tip ... grace <head> <script type="text/...
asked by 13.09.2014 / 20:27