Questions tagged as 'ajax'

1
answer

Problem with return message in form with Ajax

I am passing form data via Ajax, and would like the return to be displayed on my html page on <div id=resposta></div> , on the original page of the form, however for some reason the return is always displayed on the PHP page, I...
asked by 13.07.2018 / 17:18
1
answer

CKeditor + ajax registering empty in bank

When I do an insert in the database, it only saves the date, time, idAgenda and idFk ... since the other fields of the textarea are registered as empty ... I believe it is the problem of instantiating the ckeditor, and if I manually enter in the...
asked by 09.07.2018 / 21:40
2
answers

Post php only with all fields filled out

My form is always being sent, even if there is nothing in the input, can someone give me a light? HTML: <form id="ajax" method="post"> <div class="form-group"> <input type="text" name="name" class="form-control...
asked by 29.05.2018 / 22:38
2
answers

Nothing happens when calling .php file via Ajax call in pure Javascript

I'm creating persistence on MySql server for my own web application. For this I am using xampp and phpmyadmin. I created a database in phpMyAdmin and in my application, in a javascript I have an Ajax request for a .php file that makes this co...
asked by 28.05.2018 / 23:27
2
answers

What's wrong with this query?

Right, I'm trying to do a select in a database via ajax using jQuery. Here are some excerpts from the code I'm using and more explanations: Ajax function function carregaRegistros(dia, mes, ano) { dia = parseInt(dia); mes = parse...
asked by 01.06.2018 / 20:39
1
answer

Validation if any form input was changed

I need to check if the form has changed, ie if some input data has changed, etc. So that when you do submit , or leave the page, make some button click, or the menu is informed to the user that the data has been changed, and that have not...
asked by 24.09.2018 / 16:47
1
answer

Return PHP error for Ajax

I am making an insert of an input field in the database using ajax and PHP . In the code below I am returning ajax a success message if everything happens well, but how do I return a message if there is an error? function fInserir(){...
asked by 19.04.2018 / 06:04
2
answers

Ajax with clean url how to use browser back

Hello, Does anyone know how to use the back of the browser with some ajax / jquery resource, considering that the url is clean? For example, when browsing, a php session is created, so when I navigate between page1, page2 and 3, the url...
asked by 06.04.2018 / 14:14
1
answer

How do I get php variables and pass to a different JS file with ajax?

$(document).ready(function(){ $("#botao").click(function(){ $.ajax({ url:'../../../consulta.php', type: 'POST', var senha = document.getElementById('#senha').value; data: { senhap: 'senha', succ...
asked by 03.04.2018 / 14:15
1
answer

Error consuming webservice in C #

I'm doing a web service in C #, to consume its data via javascript (without being an application made in ASP.NET or any .NET technology, I want to use only html and javascript). My web service has been configured like this: [WebService(Name...
asked by 11.04.2018 / 15:18