Most voted "ajax" questions
AJAX (Asynchronous Javascript and XML) is a technique for creating interactive websites uniformly through asynchronous data exchange between client and server. AJAX facilitates server communication or partial page updates without a traditional page update.
Learn more…3,397 questions
Sort by count of
-
1
votes2
answers604
viewsDisable a p:inputText by focusing the cursor on another p:inputText
Hello! I’m having trouble getting a validation. Here’s the thing... I have a form made inside the components Primefaces 4.0 that has the fields "Cellular" and "Telephone". My intention is that the…
-
1
votes0
answers59
viewsAjax does not pass information to Servlet
I have a problem with the code, Servlet is not called. It only works if I put action="Fileuploader" in the form. Is there an error? Is there any other way? What I need: an array of images, where…
-
1
votes1
answer503
viewsFocus on the last line of the div with scroll
I have a div chat-history attribute-ridden overflow-y:scroll. Through jQuery I insert information into the database and then update to display in the div chat-history. I need that when updating the…
-
1
votes1
answer168
viewsRequest Ajax jquery Jsonp Returning Undefined
I need to process the feedback of the following code below. Remembering that it works correctly but, at some point, the search term does not exist returning "Undefined" and shows nothing on the…
-
1
votes1
answer860
viewsproblem with "inspect element"
Friends; I am developing an application and have a manager where I list the database records. The information is arranged in a table and I have a checkbox for selecting the records that can be…
-
1
votes2
answers3408
viewsCheck if URL exists
I would like to know how to valid (know if there are) URL’s of social networks, I am using the AngularJS, AJAX and http requests but I can get the status of a URL I created in a mock, but I can’t…
-
1
votes1
answer143
viewsInside the ajax I want to create a variable and use it in several places outside the ajax
I want to create a variable within the ajax and uses it in several other places, it only works when I use the async:false and I know this is no longer recommended, how to do this properly? follow…
-
1
votes1
answer200
viewsJson defaults when I request via angular http
I’m making an add-on to Firefox and this is powered by json that comes from an ajax request, which I do via http get method. When I print the json by calling the address directly on the screen, it…
-
1
votes0
answers336
viewsCodeigniter + Progressbar
Hello. I’m trying to develop a file upload system which when doing the post generates and loads a progressbar according to the course of my file unzip script, read and store in the bank. It’s the…
-
1
votes1
answer191
viewsHow to verify if the connection has dropped before sending a data via ajax?
var erroEnvio = false; //global $(".proxima-questao").on("click",function(){ $(".loading").show(); $.ajax({ url: urlBase+"123123123/adasdasdasdas", type: "POST", data: $("#form").serialize(),…
-
1
votes1
answer17867
viewsResponse to preflight request doesn’t pass access control check
When I try to give a GET on a link here on my server that is not in host location happens this message: Xmlhttprequest cannot load…
-
1
votes0
answers60
viewsHow to load only if clicked
I’m creating a video page, where it lists the last 10. Only this page is very heavy, because I have the codes of the videos and even using the hide/show feature it ends up loading all players. I…
-
1
votes0
answers391
viewsRequest in Twitter API using Jquery and Ajax
I’m trying to get the data from a Twitter page, unsuccessful so far. I got the access token through the PHP Controller, and I intend to use it to make requests. var token = 'Bearer <?php echo…
-
1
votes2
answers2529
viewsRemove record in database without giving refresh
Buenas! I looked for some topics about the same doubt as mine - and I found, but I could not understand how to do... I have the following code snippet: $c = array(); $c = buscaUsuario($conexao);…
-
1
votes0
answers305
views -
1
votes1
answer383
viewsRequest problem - Phonegap + Ajax
was doing a test to test the phonegap, but I’m not able to make an Ajax request in the app, but the request works in the browser. $( "#botaoBusca" ).click(function(){ var cep = $( "#cep" ).val();…
-
1
votes0
answers91
viewsFetch PHP data from Ajax
I have an Ajax script here that his function is as follows.. I have a news system, which by clicking on the title will open a modal and show me the news data (title, text, author).. but I don’t know…
-
1
votes1
answer1079
viewsProblem in modal bootstrap form
Is there a restriction to bootstrap modal form? When I put the form inside the modal, I do not receive the Ajax Alert, however, if I take the form from inside the modal, the data passes and I…
-
1
votes0
answers33
viewsConstants do not work in Javascript
Good morning Guys, I don’t know if I’ll be clear, but I’m having a hard time here. I need to set the URL path in my Javascript. define('URL', 'http://' . $_SERVER['HTTP_HOST'] . '/sistema/'); $html…
-
1
votes1
answer101
viewsAJAX receives JSONP as "Undefined"
first I wanted to say that I have been researching for this here in the forum and I found some similar questions, but no answer worked here. Next, I have a php file on the server that connects to…
-
1
votes1
answer655
viewsFacebook API - Grab photo(with set size) with other information(name, email, id)?
I need to get the id, name, email, and photo of the person by clicking sign in. I’m doing it so far but you’re in trouble: <script type="text/javascript"> function…
-
1
votes1
answer156
viewsError sending Ajax data to PHP script
I’m trying to take an email by an input, stream to the server through Ajax, and on the server side there’s a script that uses the Phpmailer class, to send an email, and the PHP code without…
-
1
votes0
answers609
viewsHelp - Uncaught Error: Syntax error, unrecognized Expression: #[Object Htmlformelement]
Problem in validating a form with ajax, follow the error.. $.ajax({ type: "POST", url: "adicionaConcorrente", cache: false, data: $("#" + varForm).serialize(), beforeSend: function() { // Faz alguma…
-
1
votes1
answer130
viewsDisplay error in jquery mobile table
Hello, I’m trying to display some data that caught by ajax and put them in a responsive table using the Jquery Mobile framework. The problem is that, the first time I do the operation, it works…
-
1
votes1
answer699
viewsValidate field with ajax and php
I am with a simple form, to validate if a name and email exist. function valida_nome(){ var filter_nome = /^([a-zA-Zà-úÀ-Ú0-9]|\s)+$/ ;…
-
1
votes1
answer51
viewsJavascript error, function stops working when I add another
The following code stops working when I add another almost identical one. Although the first part works perfectly, by inserting a continuation with similar logic not even the first part works. I…
-
1
votes1
answer326
viewsSend array to Controller and insert into DB, with Ajax and Codeigniter
Hello, I am unable to receive (in the controller) the array that is sent from a View via ajax. I already tested it in the console.log and the array is sent but nothing happens in the controller. the…
-
1
votes4
answers659
viewsSubmit does not call function
After changing the code, I left this way but I analyzed the browser console and realized that the Submit button still not calling the function: <div class="container"> <div…
-
1
votes2
answers112
viewsHow to lock commit via an ajax request by a bind() event on button
The ajax request, returns me "1" or "0". Every time I click the next button, but it is not blocking the commit. As I should do to validate the values, if I have a "0" answer, it should lock the…
-
1
votes1
answer489
views -
1
votes1
answer53
viewsIs it possible to redirect a page and send a value from a field at the same time in jQuery?
I needed to get a value from a clicked select option and send it to another page, only I would like to be redirecting to that same page. I am using jQuery mobile library, below follows my code in…
-
1
votes2
answers479
viewsHow to change status with AJAX?
I have a system where the administrator can approve or disapprove the user, It is all ready, but I want to know how to do this process with ajax, so that every time I approve or disapprove a user…
-
1
votes0
answers29
viewsWeb service data format identification
Good night! I am implemented a service in one system for other systems to consume. This system consumes data in XML and JSON formats. I want to know if there is any way to identify when the user…
-
1
votes1
answer1389
viewsUpdate DIV without refresh with Ajax
I have an ajax that runs through post, some information in PHP to another page. I saved this information in session. I would like to update the div where I have a modal. In this case, this modal…
-
1
votes1
answer1277
viewsI want to use ajax to simply update a table that reflects the database, without updating the page
I have index.php, which has side by side an insert form and a table that reflects the database, do not need to have timeout, I just want that when I make a new record in the table, it will appear in…
-
1
votes1
answer715
viewsUpdate table html after registering user using ajax
Hello, I have a following js code to register a user. $(function() { $('#cadastrar_usuario').submit(function(event) { event.preventDefault(); var formDados = new FormData($(this)[0]); $.ajax({ url:…
-
1
votes1
answer98
viewsNhibernate is modifying property when returning by Web Api
I have a web service api where a query to the bank is relaunched through nhibernate, but when returning the object, its referenced properties are overwritten, I believe it is because of the…
-
1
votes1
answer584
viewsJson Post Unsupported Media Type Spring MVC
I’m performing a POST using ajax data format JSON for a controller in Spring MVC, but the server is refusing such a request Unsupported Media Type stating that the type is not supported. Have some…
-
1
votes1
answer281
viewsAutomatically populate a text box with a database value
I have a form with 5 fields, and I need the local field to be filled with a value of the database corresponding to the field Postal Code that was previously filled in. I’m using the codeigniter…
-
1
votes0
answers329
viewsBootstrap modal window display condition with Ajax/Post
I created a client registration method with Ajax via Post. But somehow my code should contain some error when I establish a certain condition. Note below: when the value returned from…
-
1
votes1
answer3799
viewsSend ajax requests using pure javascript POST method
I am trying to submit a form using AJAX through the POST method but I am not succeeding. Can someone help me? function gooSubmit(url,id){ //declaração das variáveis var sd =…
-
1
votes1
answer94
viewsfile upload with json return error
I am uploading a file with jquery+ajax using the jquery form plugin. The form processing is all ok, the file goes up and the data is recorded in the database. The problem is in the return with the…
-
1
votes3
answers129
viewsJavascript start code from a certain line
I have a code that goes through a file . ofx for reading your markings. However, the code . ofx has a header that makes it impossible to read it (that is, for the javascript code to work I have to…
-
1
votes2
answers613
viewsHow to return a collection of objects via ajax?
I created this function in my Controller to return a list of employees in my ajax request, but it is not returning anything. public function getFuncionarios(Request $request){ if($info =…
-
1
votes3
answers5484
viewsRedirect page by passing "Answer" from ajax to a div
I know this is a strange question, and it may seem pointless, but I need an answer, even if it’s for impossível. I do a search in my indexand need to pass the result in the same to another page…
-
1
votes1
answer160
viewsReturn with multiple json with jquery . net
I need to return to ajax a json, or rather several json, being city,neighborhood,state,parents, each being a json in the same method, however as not possible to make several return put the list of…
-
1
votes0
answers18
viewsHow do I show doing a kind 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){ $("#myModal").modal();…
ajaxasked 8 years, 3 months ago denalioasis 51 -
1
votes0
answers265
viewsJquery ajax does not work on mobile device only works on desktop version
To in the following situation, my login form is working perfectly in desktop version, I went to test on android and Ios it does not work and not even an error on the console... just waiting for the…
-
1
votes1
answer166
viewsOpen Ajax with addition to url
I’m wanting that when I open the "#portfolioModal54" and run the ajax add in front of the url the name and id of the clicked block. Example: BLOCK 1: #portfolioModal54 opened with the $name = quad…
-
1
votes1
answer927
viewsGoogle Recaptcha with AJAX
I’m trying to make a form with the validation of the Google recaptcha. What happens is that if not validating the recaptcha gives the error message asking to "check" the recaptcha but if I check the…