Questions tagged as 'ajax'

1
answer

Call PHP method with ajax

I have a code that does a validation in javascript, and would like it if validated as true, change a table from the database. I thought of using ajax, so as to validate as true, call a method in a .php file, however I do not know how to do it....
asked by 14.05.2015 / 00:38
1
answer

how to pass data to a php function through url ajax?

People try to give me strength here, I've already looked and I do not find an answer that suits me. Come on! I'm working with classes in php, I would like to pass data from a form via ajax. But I have doubts on running the URL, I do not kn...
asked by 24.01.2016 / 18:12
2
answers

Ajax does not return text in utf-8

By ajax, I am querying the Database, but if the field has special characters, they appear wrong. I'm making the request in the following JS function, the result is shown in a div with the id="txtHint" <script charset="UTF-8"> functio...
asked by 16.06.2014 / 13:52
2
answers

Check jQuery variables?

Is there a smarter way to write this verification code, IF ? jQuery("#oformulario").submit(function(){ var nome = jQuery("#nome").val(); var email = jQuery("#email").val(); var telefone...
asked by 09.08.2014 / 20:41
3
answers

Limit for uploading files

I have a project in Asp Net MVC .NET Framework 4 as follows: View: <div class="file-content"> <label class="custom-file-upload"> <input type="file" id="importar-arquivos" multiple accept=".pdf" name="arquivo" re...
asked by 30.09.2016 / 14:52
1
answer

Difficulty in getting a certain type of return in C #

I have a return that I send via Ajax that it returns in the URL as follows: "http://localhost:11910/ProtocoloExterno/Inserir?itensContrato[0][id]=4&itensContrato[0][valorUsado]=150000,00&itensContrato[1][id]=9&itensContrato[1][valo...
asked by 14.05.2018 / 16:41
2
answers

Sending data with ajax

I have an online chat that works with ajax and PHP . However, strangely, when I type only an interrogation ( ? ) and send the jQuery , it returns an error in the console. ajax enters error() and the query ( ? ) is inse...
asked by 12.08.2018 / 21:32
2
answers

Send form data via GET to server (no page refresh)

I have this form and would like to give a GET to variables with their value when clicking the button, without refreshing the page because I have other forms on the same page, is it possible with PHP, or do you have to use AJAX? / p> Fo...
asked by 22.11.2014 / 17:58
2
answers

Remove element when clicking the link with jquery

I need to make that when clicking the link it removes this tr element that is the link, can someone help me? <?php foreach ($emails as $v): ?> <tr> <td><?= $v->id; ?></td> <td><?= $v-...
asked by 31.03.2017 / 07:19
5
answers

Automatically delete inputs afterwards

I have this code to send data by POST method, but then it does not clean the inputs: <script type="text/javascript"> $(".btn_contact").click(function () { $.ajax({ type: "POST", ur...
asked by 27.05.2018 / 21:11