Questions tagged as 'ajax'

2
answers

Access the data returned in the success of an ajax request, within a $ ('form'). on ('submit' ...)

I have a $ ('form'). on ('submit', function ()); and inside it I would like to make a call from a function that runs an ajax and returns an array of data. however when saving the return of the function in a variable it becomes "undifined" can no...
asked by 21.07.2017 / 13:47
1
answer

Remove html element created dynamically in ajax success

I created an ajax request for success to dynamically create a new li element, however I also have a function in ajax to delete the registry and in success remove the li created. The problem is that, in all elements that were created dynamica...
asked by 22.06.2017 / 13:20
1
answer

Deleting Table Row in Jquery

I have a table with a delete button where it should be clicked to delete the record in question, but when I click delete it performs the correct deletion in the database and when updating the table it deletes the line from the top...
asked by 20.06.2017 / 17:12
1
answer

How to start a function with onclick?

I have a script that basically reads a .log in real time and shows it on the screen, but the question is that it starts with the DOM, I would like it to start just from the click of the button, could you help me? / p> <?php if (isset($_GET['...
asked by 28.07.2017 / 13:39
1
answer

Request not working in firefox

I am making an Ajax request, where it works in Chrome perfectly however in firefox it does not work. It tells me that event is not defined function pegarValor() { dado = event.srcElement.innerText; var XMLHttp = generateX...
asked by 28.07.2017 / 13:58
1
answer

Jquery autocomplete for city search, does not distinguish data from cities with the same name

I'm using JQuery, Ajax, PHP and MYSQL to do the Autocomplete in a search field for cities in Brazil. When I type the name of the city the suggestions appear and when I move the mouse over each city the code automatically fill in the form with...
asked by 04.07.2017 / 06:19
1
answer

Each row of the database enters a separate DIV

Good afternoon I'm trying to make a MySQLi query, that is, I want each row of the database to go into a separate div, I searched and did not find anything similar to what I think it gets in a difficult way to understand HTML code <div id...
asked by 07.06.2017 / 19:40
1
answer

Error consuming json using ajax

I have the following return in json: { "ConsultarRegistroPorCodigoResult": { "Codigo": 2, "CodigoSetor": 1, "Login": "ednilson1", "Nome": "Ednilson", "RegistroAtivo": true, "Senha": "123456",...
asked by 10.05.2017 / 12:45
1
answer

Problem with tag select in form

I have developed a contact form in my site but in this form it has a select unde the person will be able to choose a service but I have no idea how to insert this into my code I would like to know if it is possible. At first my code wor...
asked by 19.04.2017 / 18:53
2
answers

Is it possible to return 2 values in an Ajax?

I have the following script: ('#AjaxUpdateClient').submit(function(e){ var id = $(this).attr("id"); var form = $(this).serialize(); $.ajax({ type: "POST", url: "/updateClient", data: form, dataType:...
asked by 22.04.2017 / 17:41