Questions tagged as 'ajax'

1
answer

How to identify the type of request sent to the server?

I do not want my ajax.php page to display anything when accessed by the user's browser. AJAX.PHP<?$nome=$_POST['nome'];$email=$_POST['email'];$senha=$_POST['senha'];if(!$nome){echo'Escrevaseunome!';}else{if(!$email){echo'Escrevaseuemail!'...
asked by 23.07.2015 / 20:08
1
answer

Index and automatic values

I have the following Json: {"result":[ [ {"ID_CTE":"1","ABREV":"301CAGSP","MODELO":"CT","NUMLANCTO":" 71","NUMCONHEC":" 5911","NUMFATURA":"0000173","NUMREMET":"23.643.315\/0094-51","NUMDESTIN":"23.643.315\/0110-06","NUMRED...
asked by 28.07.2015 / 20:43
3
answers

How to use multiselect value in php

I'm getting a value from a multiselect and sending it via ajax: Assuming the value of the multiselect to be: ["1","2","3"] // é esse valor que está sendo enviado (value do multiselect) After rescuing this value in the php file that you...
asked by 06.12.2015 / 17:38
2
answers

File Download via Ajax

In my Asp.Net MVC 4 project, I have a View with a button and the following script: <input type="button" value="Teste" id="baixarArquivo" /> <script> (function () { $("#baixarArquivo").off("click").on("click", function () {...
asked by 01.06.2016 / 14:44
1
answer

Ajax and php protection

Using ajax in my case, can it bring some security flaw? If so, how do I solve it? javascript: $(function() { if($('#login_submit').length !== 0) { $('#login_submit').on('click', function() { if(!$('#login_submit').hasCl...
asked by 21.07.2015 / 00:43
2
answers

How to make an XMLHTTPRequest to send values to the page itself?

What I have: I created several buttons through PHP and to distinguish them I used the $botoes_criados variable. So I have the value of the $botoes_criados variable in PHP that is passed to a button as follows: echo("<li&g...
asked by 02.10.2015 / 10:58
2
answers

How to overtake XMLHttpRequest can not load?

This error appears to me. How to overcome it?    XMLHttpRequest can not load "url example". In 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access. Code var url = "htt...
asked by 14.04.2015 / 11:48
4
answers

Is there any way to detect if there is any asynchronous call being routed?

I need to loop asynchronous calls, but they can not run simultaneously, I have to wait for the end to run another. I just do not have control over this call ( It's a js function Sharepoint CSOM ). So I at the beginning of my idea is just to d...
asked by 26.01.2015 / 13:59
1
answer

Handle data returned from ajax request with JQuery

My request: $.post( "http://painel.thomerson.com.br/imagens/escolher-template", $(this).serialize(), function(data){ $("#Resultado").html(data); } ); What is happening is that by inserting the contents...
asked by 26.01.2015 / 23:13
1
answer

Play Framework and AJAX (SPA)

Is it possible to develop SPA with Play? Has anyone had this experience and has something to report?     
asked by 12.11.2014 / 17:26