Questions tagged as 'ajax'

1
answer

Laravel and Ajax - Doubt about route

Using the laravel 5.5 framework, how do I call the following route in Ajax? Route: Route::group(['prefix' =>'paineladmin', 'namespace' =>'PainelAdmin', ], function(){ Route::post('galeriaArquivos', 'GaleriaimgController@arquivos')-&g...
asked by 20.10.2017 / 19:19
3
answers

Ajax problems in PHP MVC project

I'm having trouble using ajax with html. I have an html file that answers questions from a chat and I put the ajax below ajax. It redirects to the controller questions and the answer method. The request status is 200, but nothing happens. I h...
asked by 05.07.2018 / 02:28
1
answer

AJAX without response from SUCCESS

First of all, this code is only a small part of the complete code, I have a simple problem, but I could not solve it. First, I have an HTML form, which sends by POST method, field values to a javascript file. In the javascript file, I make...
asked by 01.03.2017 / 01:49
1
answer

Laravel 5.7 - Ajax call and Session :: get ()

There are days when I'm banging my head to read data from a Session through a ajax call . In an application without Framework I do this normally using PHPSESSION , but in Laravel 5.7 I can not do it at...
asked by 26.10.2018 / 15:05
1
answer

How to update data without auto refresh, through PHP and Ajax functions?

Hello, I'm a beginner in PHP and the web world and I'm doing a project with hardware (NodeMCU, MPU6050, LM35) where the data read by the sensors is being sent to a server, and on the client side the data is being presented in a table and a graph...
asked by 18.07.2018 / 14:33
1
answer

Block submit if the verification in "real time" acknowledge that the email is already registered

I'm using AJAX and PHP to check in real time if the email is already registered in my DB, it shows a message in the DIV # response, whether the email already exists or not, so long. But if the email already exists it simply continues and accepts...
asked by 30.09.2016 / 21:55
1
answer

Insert data in db with codeIgniter and ajax

Hello I'm trying to insert data into my bank with ajax but I'm not getting it, it always returns me the error message Controller: public function insert_user_data(){ $this->load->model('crud'); $this->crud->insert...
asked by 28.03.2016 / 19:28
2
answers

Error trying to submit form with AJAX file

I have the following code that I deployed before testing in my project: index.php <form method="post" id="formulario" enctype="multipart/form-data"> <input name="nome" type="text"/> <input name="img" type="file"/> &l...
asked by 08.04.2016 / 20:07
1
answer

___ ___ erkimt Reading json correctly to generate the data for the chart (Ajax and Morris) ______ qstntxt ___

link

I am not able to return json via ajax, I tried with console.log but it is returning the function itself that I mounted

%pre%

How do I return the json I had ridden before?

All this is to generate the graph, but it is not reading json correctly.

I'm following the tutorial on this site

link

    
______ azszpr99132 ___
%pre%     
___

link I am not able to return json via ajax, I tried with console.log but it is returning the function itself that I mounted function (){ var json = null; $.ajax({ async: false, globa...
asked by 19.11.2015 / 03:03
2
answers

How to get a .JSON from a URL with JS

I looked at some examples of the jQuery documentation, but I still could not. Code: <!DOCTYPE html> <html lang="pt-BR"> <head> <meta charset="UTF-8"> <title>Document</title> <script src="ht...
asked by 28.10.2015 / 18:29