Questions tagged as 'ajax'

1
answer

ajax with jquery - data format

A doubt. In this example: This is just a test where the api-clients-edit.php page receives the data, saves it and returns the status. var dados = $("#editarClientes").serialize(); dados += "&id="+meuID; console.log(dados); $.ajax({...
asked by 24.12.2018 / 18:25
1
answer

Success message with ajax with boostrap validation 4

I have this code that works perfectly. In the page cadastrarFuncionario.php an INSERT is made in the database and an upload of an image and if successful in upload has a echo "Upload efetuado com sucesso!"; that is displayed in...
asked by 18.12.2018 / 15:43
2
answers

Return Json from php to jquery ui

I have a code in php that does a return of data in JSON. When it has only one value it returns as it should:    ["[email protected]"] When more than one value is found it returns as follows:    [ "[email protected]", "ezekielEBurt@d...
asked by 11.02.2016 / 11:42
1
answer

Dynamic forms on the same page in Jquery and PHP

I'm trying to make a comment portal, so I'll have a text input on every POST for people to comment, these POSTS will be on the same page (Facebook style), as well as the inputs, which will have to be dynamic. I made this function using Jquery...
asked by 27.10.2016 / 08:34
1
answer

Browser message after AJAX request

I have an ajax request responsible for sending a file to the servlet, it is performing the process correctly. But when I update the page the following message is displayed by the browser (When I give an f5):    The page you are looking for ha...
asked by 21.04.2016 / 17:33
1
answer

Use closure as a function return

I need to use a variable of a closure as a function return to which this closure is nested. How can I do this? response must be the return of ajaxRequest() : function ajaxRequest(type, url) { const ajax = new XM...
asked by 21.12.2016 / 20:42
1
answer

Passing DataTime javascript to ASP.NET MVC Controller by Ajax

I'm having trouble passing javascript date to the Controller via ajax .. Model: public class ModelA{ .... [Required] DataType(DataType.Date)] DisplayFormat(DataFormatString = "{0:dd/MM/yyyy}")] Display(Name = "Data de Nascime...
asked by 31.08.2016 / 20:18
2
answers

Space Lock with REGEX

My code for blocking characters looks like this: $('#rg').on('keypress', function() { var regex = new RegExp("^[ 0-9]+$"); var _this = this; // Curta pausa para esperar colar para completar setTimeout( function(){...
asked by 02.12.2015 / 17:52
2
answers

Jquery consuming Web Service Rest

I would like to list the json's ceps, follow it: [ { "id": 1, "nome": "Hospital Da Mulher", "cep": "60508090" }, { "id": 2, "nome": "Hospital Maria jose", "cep": "2" } ] And this is where I'm calling you:...
asked by 30.10.2015 / 02:35
1
answer

Creating a search link?

I have a problem in a project, there are 3 product search fields and a search button. example: link I wanted as the fields were filled out, the browse button would load the link built. Example: There are 3 fields so they would look li...
asked by 26.08.2015 / 19:49