Questions tagged as 'ajax'

0
answers

AJAX + PHP - Order Form

I'm creating a contact form where the user places their personal data and then selects the products for which they want a quote. Product fields are select and quantity input type="number" . But in PHP does not get this Array,...
asked by 23.11.2017 / 18:14
0
answers

How to split two values from an array?

I have the following code, where only index 0 is string: $row[0] = $row[0]; $row[1] =(float) $row[1]; $row[2] =(float) $row[2]; $row[3] =(float) $row[3]; $row[4] =(float) $row[4]; $row[5] =(float...
asked by 23.11.2017 / 13:55
1
answer

How to use "debounce" to execute function only after a while

Hello. I'm developing a script that runs when the user arrives at the end of page scrolling. What I have so far is the following code: $(document).ready(function() { var posicaoAtual = $(window).scrollTop(); $(window).scroll(functi...
asked by 23.11.2017 / 16:17
1
answer

Cordova: Ajax works in browser but not Android device [duplicate]

I need to make an ajax request using Cordova in visual studio, and ajax through JQuery. When I do the test through the browser works correctly, but when I do Android test it returns error with "0" stats and no message. What could it be? func...
asked by 05.12.2017 / 17:20
0
answers

Edit input suggestions

Hi, I would like to know some way to edit the suggestions of the input exp: when the user writes something in the input in the suggestions of him to show the results of the request by ajax so he can select with the directional arrows (up or down)...
asked by 22.11.2017 / 20:22
0
answers

Categories and Subcategories do not update - PHP7

Starting in programming I'm developing an application with PHP 7 and MySql based on a lost and found site, but with problems creating MENU where my base is in the photo below:    I can list the categories and subcatego...
asked by 20.11.2017 / 14:10
0
answers

(Flask) Ajax JSON with JQuery-Datatable

Good luck. I'm trying to show my data (JSON) in a Datatable table via Ajax. The HTML is: <div class="x_content"> <table id="exemplo" name="exemplo" class="table table-striped table-bordered">...
asked by 20.11.2017 / 17:11
1
answer

jquery maskMoney function does not work in div loaded via ajax

I have a page where I am refreshing with ajax only on div conteúdo . It is configured like this: div1: I load 2 selects where the user will choose these 2 data (class and bimester) div 2: I load the application menu (menu.php)...
asked by 14.11.2017 / 19:26
1
answer

Return array in SQL in a php variable, for later assembly of HTML

I need to do a database search on a variable date and return only the Years. For this I did the following: In Control: public static function getDataAnos() { $bd = new Banco(BANCO_HOST, BANCO_USUARIO, BANCO_SENHA, BANCO_BASE_DADOS);...
asked by 14.11.2017 / 21:41
1
answer

Datatable return from select

I am using the datatable with ajax, getting among others a column with select, but I do not know why onchange does not work. Here's the ajax return: {"data": [[ 1, "17020161", "Marina Costa Vasconcelos", "<select da...
asked by 13.11.2017 / 19:04