Questions tagged as 'ajax'

1
answer

How to return checked check value via ajax

I have a student enrollment form. It's all ready, the only thing I'm having difficulties is to return the value of a checkbox, which in the register refers to whether the student is active or not. In the form it looks like this: <label&g...
asked by 05.12.2015 / 13:50
1
answer

Send form without updating page [duplicate]

I have a registration page and I wanted my form to be sent to the page so it did not update and open% hidden%. With script below does not let my page update, but it also does not send my form to the database: <script>...
asked by 04.12.2015 / 18:50
2
answers

Help with concatenating

I need to pass a variable inside an array of items, a parameter that only accepts string, but when I pass a variable the API does not accept, it says the parameter is incorrect. Better explaining: var userstocreate = [ { username: 'a...
asked by 19.11.2015 / 12:01
1
answer

Ajax / JQuery - Select / mark an option disabled automatically [closed]

Talk about it! It is as follows, I have a dynamic page where the elements of the selects are loaded via Ajax according to the elements previously selected in other selects, for example, when you select the City in a select and the town combo l...
asked by 22.12.2015 / 20:53
5
answers

How to use ajax and php to call a function in php?

I'm having trouble requesting a PHP function via Ajax AJAX Code: $.ajax({ url: 'geraSenhaProvisoria.php', type: 'POST', cache: false, data: {geraSenha(6, true, true, true)}, error: function() { alert('Erro ao t...
asked by 04.02.2015 / 12:24
2
answers

How to change status with AJAX?

I have a system where the administrator can approve or disapprove the user, everything is ready, but I want to know how to do this process with ajax, so that every time I approve or disapprove a user the page does not give refresh . App...
asked by 05.07.2016 / 01:08
1
answer

Upload image on server Ajax serialize and PHP [duplicate]

Good afternoon friends, I'm making a website that the person does the registration in my form and I, using AJAX, play the data in the bank. I wanted to know how to save this image that the person put in the form in some variable, so that my up...
asked by 08.12.2015 / 19:18
2
answers

Problems in returning a JSONP

I'm trying to get a response from my API like JSONP but it's not right. Ajax code is this: $.ajax({ type: 'GET', url: url, async: false, contentType: "application/json", dataType: 'js...
asked by 25.09.2015 / 16:22
1
answer

Update DIV content [duplicate]

Is it possible to update the contents of a DIV? I have a DIV in which I get data present in the browser cookies and I make a foreach for listing the items of the cookies showing them to the user. On that same page I have a button that when I c...
asked by 25.11.2015 / 13:29
0
answers

call a control from an http request in angularjs [closed]

How can I call a control file from an http (get) request $http({ method: 'GET', url: 'dashboard.do' }).then(function successCallback(response) { // this callback will be called...
asked by 25.11.2015 / 14:36