Questions tagged as 'ajax'

1
answer

How to put a success alert on a data entry via ajax?

I'm moving on a project in progress and what I need to do in it is to put an alert and refresh the page after inserting data into the database. The data is being inserted through a worksheet, that is, each item is a row in the worksheet that con...
asked by 23.07.2017 / 01:49
0
answers

Is it possible to perform an external UPLOAD with ajax?

I have this code: function uploadFile(x){ //DEFINIÇÃO E RECEPÇÃO DAS VARIAVEIS PRA ENVIAR COM O AJAX var file = document.getElementById("id_arq_documento_" + x ).files[0]; var id = document.getElementById("i...
asked by 29.07.2017 / 15:21
0
answers

doubts with session

I'm trying to open a session in php but it does not write value, I wondered if it's the way I do the redirect so I wanted to get my question answered, basically what I do is get the login and password and move to a login page by ajax, in this lo...
asked by 24.07.2017 / 19:22
1
answer

Fill in two inputs automatically, using input and select data from a bank

I'm having a problem, I was developing in PHP that I already have some knowledge. But a customer asked me to make a system for him and got something that was kind of unusual for me. The client needs that in the registration form, the user that i...
asked by 31.07.2017 / 03:21
1
answer

Pass and receive data for servlet in the same AJAX function

Is there any way to send parameter to servlet and receive a json in the same AJAX function? Example of what I need: function UpdateGrafico(){ $(function () { //--------------------- //aqui preciso enviar uma...
asked by 16.07.2017 / 01:51
2
answers

Use PHP variable in Ajax

By clicking on the positive frame (indicated in the figure by an arrow), the user accepts the friendship invitation. Ineedtopasstheuserid(value15)totheupdate-friends.phppage.Theeventishostedbytheinvitations.jspage:$(document).ready(function(...
asked by 16.07.2017 / 01:13
0
answers

Do not enter the ajax block

Good morning! I have the following code: <?php $titulo = "Site"; ?> <html> <head> <title><?php echo $titulo; ?></title> <link rel="shortcut icon" href="_imgs/favicon.ico">...
asked by 25.07.2017 / 15:50
1
answer

Change the status (online / offline) in the bank when closing the page

I'm doing a chat system for a panel, and I already have it ready practically, everything connected to the database, when it logs on it switches to online and when it exits (clicks on the button) it changes to offline in db. / p> The problem is...
asked by 07.07.2017 / 16:21
0
answers

Program expect response ajax request?

Well, I need to make multiple ajax requests within a loop and the program can only continue after the request is completed. I'm using "async: false", but it locks the whole page while waiting for the return. Does anyone know of any way the code...
asked by 23.07.2017 / 04:47
1
answer

Validation with AJAX in Laravel

I'm not sure what to do with AJAX, but I'm not sure how to do it. You have some tutorial (can be in English) with examples of controller, view and script, being POST request. Of course, obg.     
asked by 29.06.2017 / 22:06