Questions tagged as 'ajax'

1
answer

Load table from view with JSON object

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...
asked by 26.11.2015 / 17:56
1
answer

Inside ajax I want to create a variable and use it in several places outside of ajax

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 &...
asked by 19.04.2016 / 14:36
1
answer

Retrieve ajax response value

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...
asked by 19.01.2016 / 11:23
1
answer

php calls by ajax

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...
asked by 23.09.2015 / 12:18
1
answer

One method of the controller works correctly and another similar one returns error

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,...
asked by 20.10.2015 / 15:48
1
answer

Problem with validation of several forms with ajax and php

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...
asked by 23.08.2015 / 22:37
2
answers

AngularJS | How to define a boot process for a controller?

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...
asked by 04.09.2015 / 03:17
1
answer

Upload content into a DIV using JavaScript

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"...
asked by 21.07.2015 / 20:39
3
answers

Multiple parameters in xmlhttp.send ();

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...
asked by 01.08.2015 / 20:04
1
answer

My ajax form is not valid

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...
asked by 10.07.2015 / 06:22