Questions tagged as 'ajax'

2
answers

XMLHttpRequest wait response

I would like my XMLHttpRequest to wait for the answer. function UploadFile(campoFile, urlUpload, campoNome) { var img = $("#" + campoFile).val(); var resultado = false; if (img) { var file = document.getElementById(campoFil...
asked by 07.08.2014 / 21:30
2
answers

Load Value in Input

Good morning, I'm trying to load a value into the Input after the user clicks the button. // Este é o Botão <button type="button" class="btn btn-default" tabindex="-1" onclick="id_host()"> Identificar Nome </button> When...
asked by 25.09.2014 / 15:45
1
answer

Return and reply to sending the email in the layout

I have a mailing system that receives the name and email of the database and sends it. But when I call the function it will load all the emails on the screen with its result in front. [email protected] => enviado [email protected] => err...
asked by 30.03.2015 / 22:16
1
answer

How do I get the return data of a function via ajax?

I have an ajax in my view add that does an asynchronous request in an action test in my controller, in this function I need to return the $ balance variable for my view add, I would like to know how I can send this data and how they arrive in my...
asked by 06.04.2015 / 18:52
1
answer

MVC - Intermediate php file in View and Controller relationship

Hello everyone. I was reflecting on the existence of a structure relationship step in my project. The organization of my project is as follows: [1]Whenaccessingthepage,theusercanaccesseitherthenormaladdress(egcurso.php)orparameters(egcurs...
asked by 05.01.2019 / 16:36
1
answer

Return on failure to submit

I have a submit, which before I perform this function: $('#modelEditar').submit(function (e) { var cancelada = $("#Cancelada").val(); if (cancelada == "False") { e.preventDefault(); var id = document.getElementById("nfseid").value;...
asked by 04.01.2019 / 12:32
5
answers

Form submission via AJAX, method PUT

Problem: I am trying to send a form with ajax via PUT, but it is returning the following message in the chrome console: PUT http://intranet.dev/%7B%7B%20URL::to('upload/'.Auth::user()-%3Eid)%20%7D%7D 403 (Forbidden) Script: Follo...
asked by 30.01.2014 / 13:42
1
answer

Upload response comment with AJAX without refreshing the page

I am sending comments with AJAX and then loading it into the reply, it works fine except that the response link is not being rendered on the page, after clicking on post reply the page is being updated and returning the reply, but the right thin...
asked by 13.12.2018 / 01:35
1
answer

How to display the hidden div after reloading the page?

Hello, everyone. I'm developing a page where there is a hidden button that appears after a certain time. My code: HTML: <script src="https://f.vimeocdn.com/js/froogaloop2.min.js"></script><divclass="diminuir-video" styl...
asked by 06.12.2018 / 17:21
2
answers

Loading with Ajax

I wanted to know how to make an image, or something, to indicate that the page is loading. I have a process that takes about 7 seconds and for the user not to click on thinking it was not, I would like to display a loading image or something. He...
asked by 12.06.2014 / 18:50