Questions tagged as 'ajax'

0
answers

Ajax / JSON returning undefined

When doing an ajax request with return from JSON I'm getting undefined, while displaying the data in the console, I get the code from the php page. Can anyone help me to identify the error? Page: ranking.php <?php /** * Created by Php...
asked by 16.01.2018 / 15:54
1
answer

Put Variable within FormData

How can I put a jquery variable inside FormData? Example: I have a CKEDITOR, however I am not able to save in the database, but I am using the ajax send format, which I found on a website, to upload images, and this way, uses FormData, how...
asked by 13.01.2018 / 22:47
1
answer

Inserting items into a table using Jquery

I have a form where I enter in the bank the sale and the items of the sale. When opening a particular sale, the items in that sale are then displayed in a table. When I want to add a new item to this sale, my form gets "stale." It disappears fro...
asked by 11.01.2018 / 21:22
0
answers

Recover Json after success and use in PHP

I have the javascript code that returns me in a variable 'msg' the result of a query made in PHP. var page = "busca.php"; $.ajax({ type: 'POST', dataType: 'html', url: page, data: {idtabela: idtabela},...
asked by 16.01.2018 / 21:02
1
answer

Error in include_once using AJAX

The code is in the link because is in a folder system. PROBLEM: I have an MVC architecture. Inside the view I have a class that contains a registration form that is in the initial_shield class. The form field data are sent to a script that...
asked by 10.01.2018 / 17:21
1
answer

Hide a table after the click

I have a table that lists the clients of a company. The user selects the client he wants through the links in each. Clicking the data in the table feeds the inputs of the form. But now I want to hide the table, since the user has already selecte...
asked by 09.01.2018 / 14:15
1
answer

Remove 'R $' before converting to Double

I have a list of products in a table, and in order to leave the interface more friendly, in the column 'price' concatenei the 'R $' next to the value. Now I need to capture this value to do a math operation and need to convert to float: //cap...
asked by 09.01.2018 / 22:09
0
answers

Angular: Ajax request

Should not the code be working? I already tried the console and the text in the test file is coming normally, it just does not appear when I call with //demo.msg// . Where am I going wrong? SCRIPT var app = angular.module('app',...
asked by 14.01.2018 / 19:28
1
answer

Ajax does not work on android

I am making an ajax request that works perfectly on the Desktop, however when I test on android it does not work, if anyone can help me jQuery(document).ready(function($){ $("#loginform").on('submit', function() { v...
asked by 11.01.2018 / 09:13
2
answers

C # Calling the Asp.Net MVC5 Controller method with Ajax

Hello, I have a method called GetData() in my HomeController that returns a JSON, I would like to pass the data to my View, but it always comes empty, I'm starting as a developer, and I'm already a few days into it, been clear and someone...
asked by 04.01.2018 / 14:29