I have the following code in my controller :
public JsonResult List(string nome){
IList<ClienteDto> clientes = string.IsNullOrEmpty(nome)
? _repositoryCliente.Get()
: _repositoryCliente.GetByName(nome);
var mo...
I want to create a variable inside ajax and use it in several other places, this only works when I use async:false and I know this is no longer recommended, how to do this in a way correct?
follow the codes below:
JAVASCRIPT
&...
I have a service that registers on a system (from the code below)
var userstocreate = [
{
username: '' + usuario + '',
password: 'E@d123456',
firstname: '' + primeiro +'',
lastname: '' + lastname + '',
emai...
I have a PHP file that returns a Json.
This PHP file is called by Ajax, I do not have functions in the PHP file. I get the POST variables in the PHP file ...
This is all working, but now I want to add in PHP functions and receive the data...
I have two Controller files and two JSP files with the same structure.
In JSP I have the following structure for AJAX:
$.ajax({
method: "POST",
url: '/modulo1/funcao1',
data: {
'atributo1': atributo1,...
On my site I have several forms: real estate filter form, contact form, form talk to the president and the form of suggestions.
Is there any way to retrieve all forms except the real estate filter form and send to different urls in ajax?
I...
I have a full Ajax app that needs to get data via WebService when the page loads. I have already initialized via ng-init but I do not know how to send the controller "load" and execute the block of code that retrieves the data. When I ent...
I need to load the video.html page in the div with video id using JavaScript.
I have the following script:
function video() {
$.ajax({
url: "video.html",
cache: false,
success: function(html){
$("#video"...
I'm doing an insert in the database with ajax, ajax is working, but the insertion is not being done correctly, I believe it's because I'm passing the parameters incorrectly in the send (); I need to get the name and age in the method. Here is th...
I'm trying to validate a form by ajax and it's not working.
ajax page looks like this: link
jQuery('#enviar-contato').click(function(){
var _name = jQuery('#name').val();
var _email = jQuery('#email').val();
var _assu...