Questions tagged as 'ajax'

1
answer

function is not defined

This code was working without showing me any errors. Then I put a setTimeOut, it keeps working, but it gives a annoying error in the browser log, saying that the function is not defined. I should be putting setTimeOut in the wrong way. Here is t...
asked by 10.05.2018 / 16:33
1
answer

How to get values from an array without array.push

I'm trying to get a user's location and it keeps updating from time to time, searching, I found this method, but I can not just do this with the current value of the array, it concatenates (push) and adds infinitely .. does anyone know how I can...
asked by 06.05.2018 / 23:09
3
answers

Show image after loading via ajax

Hello, I'm setting up a site without refresh. When the user clicks on the clients tab they are loaded blades of the same, however as the embedded images have a 2mb and end up loading per part. I wonder if there is an event that checks if a...
asked by 03.05.2018 / 21:13
1
answer

Insert XML into MySQL table [closed]

I have an xml with the name of some movies, I want it when I press a button in html the names are inserted into a table in the database. I made the connection to php using ajax. The problem is that when I do the insertion, the first title is ski...
asked by 15.04.2018 / 19:43
1
answer

Request sent more than once when selecting a form field

When I select some specific field of a form, I trigger a request to load some essential information to complete the form, but when selecting a form field it triggers 3, 4 requests and this causes my data of an option for example get duplicates i...
asked by 11.04.2018 / 13:41
1
answer

Select with filter on entity being generated duplicate

I have a droplist that lists the states, which when a state is selected it filters the cities for that state. It turns out that when I select cities it comes duplicated. For example, I have states in select that are São Paulo, Minas Gerais...
asked by 11.04.2018 / 18:17
1
answer

Objects with javascript

How do I access the data from this Json file. For example return the name: { "potions": { "1": { "id": 1, "name": "Aging Potion", "image": "aging-potion.png", "price": 29.99, "effect": "Causes the drinker to...
asked by 10.04.2018 / 23:13
1
answer

Execute function from one page to another

I have a question regarding my project. I have a button on an "x" page that upon clicking it checks the geolocation in Google maps (fills the inputs with the coordinates). So far so good, I need to do this function also on a page and y with...
asked by 06.04.2018 / 18:56
1
answer

Inserting HTML elements inside another HTML Generated with Jquery in the same function

In my next code below I would like to insert the data coming from the ajax request, along with the append () HTML only in elements whose input hidden ids are equal to item.id (of objItens ). But all the ways I figured out did not wo...
asked by 12.04.2018 / 15:47
2
answers

jQuery bring value from table Mysql

I am putting together a list of music lists for a karaoke site. It works like this: Search for pre-recorded music Get this input song and insert it into a li list I have the following: <input id="musica" type="text"> <button typ...
asked by 09.04.2018 / 23:17