Questions tagged as 'ajax'

1
answer

Remote: true error using in RAILS, for POST of a JS file

I have a problem with my code, I want Rails to remote: true from "Login" with a class and an id as below, but the server passes a GET, but I want it to look in the controller format.js to send a POST type JS function, I need to know if the code...
asked by 11.11.2016 / 22:23
1
answer

Table filled in incorrectly HTML and Java script

I have the following situation, when I insert data from the database, my table is populated as follows: Andthismessageappears:"No data available in table", as if the data that is inserted were not for the table. The HTML code is this: &...
asked by 13.02.2017 / 21:30
3
answers

$ .getJSON - How to store responseJSON in a Variable?

I am assembling a Javascript Object with the following constructor: var jsonResult = ""; // Inciei uma variável fora do escopo da Função function criarDicionario(lang) { this.lang = lang; this.dicio = $.getJSON('pt-br.json').done(func...
asked by 13.02.2017 / 17:56
1
answer

Receiving Json via post Ajax PHP

Good morning! I have this code that sends an array containing data in json format: Json Array: {"cliente":[{"Code":"1","Name":"A"},{"Code":"2","Name":"B"}]} Ajax: $('#btn-sinc').click(function(){ $.ajax({...
asked by 21.10.2016 / 13:49
1
answer

How to make the Google map dynamic

I'm creating a car tracking app and I'm having a problem, I'm trying to make the map update dynamically without the need to update the page manually, this page receives the location through a .json file in the code I'm calling a file, but the in...
asked by 29.12.2015 / 19:44
1
answer

Error in Ajax request

I need to send the value of a table that is in a modal to the server and then open another modal using the information from the first table, however the variable always returns me null, I already tried to use ajax however it did not work, it doe...
asked by 05.12.2016 / 13:00
1
answer

jQuery function stops working after Ajax search

I made a system in Codeigniter that does real-time search. In my search, I send the parameters via Ajax to the controller and I make the query. I put all HTML for a view. Then I get all the HTML of that view through ajax and feed my page repl...
asked by 19.11.2016 / 20:30
1
answer

Dynamic Combobox with Codeigniter 3

The basic idea is similar to the combobox of states and cities , that when selecting a state, the next select returns the referring cities. In my case I can not list these fields in the second select (which would be equivalent to cities)....
asked by 07.10.2016 / 21:59
1
answer

BASE64 + Ajax Image Editor

I'm implementing an image editor with the cut and upload tool via Ajax. Image Editor: link Upload via Ajax: link Converting from image to base64 and blob from image editor restricts me to a 500px (server-side error) image while uplo...
asked by 26.10.2016 / 15:28
1
answer

how to make a POST request?

It's the following, I'm using google api to build an app. But I came in this part below and I can not at all. How do I POST that he asks me? I already have all the parameter data. Below the google help excerpt: Supondo que o usuário tenha a...
asked by 30.09.2016 / 19:21