Questions tagged as 'ajax'

0
answers

Identifying data format in web service

Good evening! I am implementing a service on a system for other systems to consume. This system consumes data in XML and JSON formats. I want to know if you have any way to identify when the user sends a string in XML format. Here's my code....
asked by 07.07.2016 / 22:24
1
answer

Refresh DIV without refresh with Ajax

I have an ajax that sends through post , some information in PHP to another page. I save this information in session . I would like to update the div where I have a modal. In case, this modal would have to refresh without g...
asked by 08.07.2016 / 21:09
0
answers

Upload with AJAX, do not go with files with more than 2 megabytes

I have a UPLOAD code of images with AJAX: $.ajax({url:"php/upload.php", type:"POST", data:new FormData(this), contentType:false,cache:true,processData:false,success: function(resposta){ It only works with images up to 2 megs, more than that...
asked by 27.06.2016 / 16:49
1
answer

"Uncaught SyntaxError: Unexpected token:" error when trying to fetch data in JSON format from another URL

I'm trying to get data from a URL that returns JSON to use on my page. Apparently I'm getting the data, but for some reason I get the following error in the browser console:    "Uncaught SyntaxError: Unexpected token:". For...
asked by 26.07.2016 / 03:27
0
answers

Bootstrap modal window display condition with Ajax / Post

I created a client registration method with Ajax via Post. But somehow my code must contain some error when I establish a certain condition. Note below: When the value returned from register.php is "Registered", I would like it to open a particu...
asked by 25.07.2016 / 07:32
0
answers

Help - Uncaught Error: Syntax error, unrecognized expression: # [object HTMLFormElement] [closed]

Probleminnotvalidatingaformwithajax,followtheerror..$.ajax({type:"POST", url: "adicionaConcorrente", cache: false, data: $("#" + varForm).serialize(), beforeSend: function() { // Faz alguma coisa antes de enviar },...
asked by 27.05.2016 / 16:38
0
answers

Contributors do not work in JavaScript

Good morning Guys, I do not know if I'll be clear, but I have a problem here. I need to set the URL path in my JavaScript. define('URL', 'http://' . $_SERVER['HTTP_HOST'] . '/sistema/'); $html = str_replace('#URL#' ,URL ,$ht...
asked by 16.05.2016 / 14:40
1
answer

Write FileUpload Path within an ASP.NET UpdatePanel

Expensive, The question of my doubt is quite simple. How do I save the path of my FileUpload file to some control or ViewState, with that FileUpload being inside an UpdatePanel? I am actually using the AsyncFileUpload AJAX control, since a...
asked by 16.05.2016 / 20:18
0
answers

How do I show a sort of update log while the query is being run?

$("#gerar-senha").on("click", function(){ $.ajax({ url: "gerar-valores-randomicamente.php", type: "POST", data: $("#formulario").serialize(), success: function(data){ $("...
asked by 04.08.2016 / 17:01
1
answer

APP works on XDK debug but does not work on smartphone

Hello I'm new to mobile development. I'm writing an app that should consume a webservice in PHP and from Json this webservice will return a popular listview. Simple thing. The webservice is working and has the following return: [{"id_uf...
asked by 12.05.2016 / 02:59