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...
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...
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...
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...
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...
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...
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...
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...
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...
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...