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
-
2
votes2
answers546
views -
2
votes1
answer417
viewshow to prevent an element from being reloaded when accessing other pages of the same site?
How to keep an element fixed and without being changed even changing page, on a website. Like a music player, like websites http://letras.mus.br/ http://palcomp3.com/ but not with ajax, if at all…
-
2
votes1
answer247
viewsHow to insert data into mysql via ajax + php + Foundation 5
I was wondering how can I insert data into Mysql via Ajax + PHP using the Zurb Foundation 5 Framework? The "data-Reveal-ajax" property of the framework already replaces an Ajax insertion function?…
-
2
votes1
answer325
viewschange page 10 query in 10 seconds
I have a page that lists all my events from the event table (tbl_eventos). I want to list all the events of the first week of the year, last 10 seconds, list all the events in the second week of the…
-
2
votes1
answer577
viewsOpening page via AJAX with Lightbox
I’m using AJAX and Lightbox to upload a page. I will not post the whole code but the link I use to activate Lightbox and load the AJAX page is activated like this: <a class="lightbox" href="#"…
-
2
votes2
answers308
viewsDuplicate Ajax Records, Jquery
I have an HTML page to confirm items of a goods transfer. It is used jQuery, AJAX with the option async: false and Vraptor. I took the following test: I created a download with several items. After…
-
2
votes1
answer211
viewsjQuery Datapicker error page with Ajax
I am finishing a registration page and realized that jQuery Calendar after loading for the second time does not work. $(function() { //Mascaras para Calendário.... $(…
-
2
votes2
answers643
viewsUsing the callback of a function
$(function () { $("#formulario").submit(function() { var cidade_nome = $('#cidade option:selected'); var ano1 = $('#ano1').val(); var ano2 = $('#ano2').val(); var registro; var param_1; var…
-
2
votes1
answer201
viewsAjax and link how to make a:visited work when using ajax
I did a site recently this week, vhtvshows.com.br. When you click on a series to watch and choose the episode ajax takes the link and puts it in my div, but when I go back the link is not in the…
-
2
votes3
answers4590
viewsHow to create dropdownlist Razor in . net mvc via ajax?
I would like to dynamically load my dropdownlist without submitting the page! my project is in architecture . net mvc ! @Html.Label("Categoria do Veiculo: ") @Html.DropDownListFor(v =>…
-
2
votes1
answer719
viewsAjax Receive String List from a Webmethod
I need to pass a string list of a server method to ajax, but it doesn’t work. If I just pass a string it works. Follows the code: [System.Web.Services.WebMethod] public List<string>…
-
2
votes4
answers3898
viewsHow to open and hide fields from a form by checking on button radio?
I have a form and in it I have two radio fields that, depending on the choice it should open other fields to fill. Thank you
-
2
votes1
answer1004
viewsChanging td color without updating the page with ajax
How to solve this problem, I saw that there are solutions in ajax but I couldn’t develop, what I need is to change the color of td of a table without having to refresh the page, change the color of…
-
2
votes1
answer781
viewswindow.open is not opening the popup
I have an extension that sends things to an external server by ajax post (all in javascript) and the reply of the send (sent from the server) is received in the extension itself. I want to put this…
javascript ajax google-chrome-extension popup extensionasked 9 years, 7 months ago Luciano Zancan 321 -
2
votes1
answer1425
viewsHow do I use Node.js to run a PHP page?
My case is the following: the microcontroller sends data using GET to the server, it saves it in the Mysql database and tests if it needs to trigger the alert. This alert is made with a PHP page…
-
2
votes2
answers2343
viewsRequest Method Switching from GET to OPTIONS alone
I have the following code: $(function() { $('#method').change(function() { var method = $(this).val(); if (method == 'GET' || method == 'DELETE') $('#json-group').hide(); else…
-
2
votes1
answer914
viewsUpload ajax file Asp.net-mvc
I have the following problem when using file upload. ajax performs "at the same time" both actions. And I would like him to perform the ulpoad action and then the other. Or else another way to…
-
2
votes3
answers1520
viewsRemote PHP access with Ajax - Return is the code of the PHP file itself
I have a system as below: HTML on the client side, Javascript and PHP on the server side. The idea is to have a kind of Webservice, where an HTML page (it has to be HTML because it will run in an…
-
2
votes2
answers2713
viewsRecover URL variable and pass on in AJAX
I wonder if there is a way after recovering a variable from the URL pass to another page and return the result in a load. I’m using the following script that normally recovers the variable, but does…
-
2
votes1
answer810
viewsValue as Object when selecting item in Select2
The Select2 plugin works normally, the only problem is when I select the item the value put in hidden (mandatory to bring data via AJAX) is as [Object Value] and not the value specified by the…
-
2
votes1
answer171
viewsGoogle reCAPTCHA 2 with AJAX
I’m using the reCAPTCHA with AJAX. When the page is loaded the validation of the reCAPTCHA works normally, but when the form error and the page was not loaded the reCAPTCHA returns an error and the…
-
2
votes2
answers3265
views -
2
votes1
answer465
viewsDeploy dependent Select with AJAX and Jquery in Zend
I am new to programming and am putting together a small system for a specific collection control. But I need to fill in some fields without reloading the page (AJAX) and others when the select is…
-
2
votes3
answers319
viewsHow to display an ajax error through a url?
I have a login/password field, when some user does not fill in one of the inputs, I display a message using ajax like this: $('#loginform').submit(function(event) { // Values var login =…
-
2
votes1
answer1797
viewsHow to call code in jQuery from a form request?
I have a system with several forms calling jQuery and ajax to solve the problems and register the recovered data in mysql database. As a beginner, I am having problems due to lack of knowledge. What…
-
2
votes3
answers729
viewsLogin and password submit!
I have a simple form to login users with login and password... I’m not getting to give Submit via Jquery, look at the code: <div id="opcoes2"> <div id="fazerlogin2"> <form…
-
2
votes1
answer96
viewsJquery Event.target does not work on IE8
Hi. I have a problem with IE8. The code below works on Chrome and firefox, but not on IE. As soon as it reaches that first line, the IE error says "expected object". What I have is an img inside a…
-
2
votes1
answer148
viewsHow to stop $(window). scroll in an on-demand query
I make an on-demand query on my page, I bring the information from the bank while the user uses the scroll. $(window).scroll(function(evento){ evento.preventDefault(); var init = $(".canal .lista…
-
2
votes1
answer446
viewsTwo submits on the same page
I have a page with a list of checkbox and with two buttons: One is to View and the other to Send the report by e-mail. That is, the user will select the fields he needs to see in the report and he…
-
2
votes1
answer117
viewsMaking a Factory return data from an Ajax request
I’m trying to make a Factory that returns the JSON of an Ajax request that I’m making, only, I think because it’s asynchronous, the container with the users always comes back empty. So much so that…
-
2
votes2
answers1107
viewsDifficulty with AJAX and JSONP
I’m having a problem returning ajax with jsonp, it returns json, but I can’t work with it. Code: $.ajax({ method: "GET", url: "http://minasul.tecnologia.ws/previsao/index.php?tipo=TODAS", async:…
-
2
votes1
answer705
viewsHow to change href by select and onchange using javascript
My code is to change the url of 'href' every time the user changes the select. I did once to alter the 'src' of an image, but when I used href it just didn’t work out! <script…
-
2
votes1
answer450
viewsChange URL Ajax Partialview Request
I need to change the URL of the page according to the Partialview that I load via Ajax. @EDIT In addition, I also need to free direct access to Partialview via URL, but, bringing with you the page…
-
2
votes1
answer273
viewsSave REQUESTS AJAX to be executed later
Use jQuery and the Ajax library to make REQUESTS. There is a way to save REQUESTS, follow the example.. The user is there moving and suddenly the connection drops and the user does not notice it.…
-
2
votes1
answer2489
viewsReal-time monitoring with location
I’m creating an app on "Android" where I can locate moving cars on the map, which would be the right way to send my location and monitor cars on the go, which maps api I should use?
-
2
votes2
answers518
viewsJquery: Fadeout(), fadein() and Ajax calling do not work at the right time
Hello. I have this code in Jquery: $('#prods').fadeOut(300, function(event){ chamaM(id_m); }); $('#prods').fadeIn(300); ChamaM() is an AJAX function that makes a call to PHP code, displaying the…
-
2
votes1
answer163
viewsMsxml3.XMLHTTP In which case is it used?
I was reading the following topic: Ajax request with pure Javascript (no Apis) There they show the following line of code: var XMLHttpFactories = [ function () {return new XMLHttpRequest()},…
-
2
votes1
answer178
viewsMake ajax request with user IP
When I make the request in some site vi ajax, takes the server IP as requesting, I have to put the user IP as the responsible for the request?
-
2
votes1
answer163
viewsHow to register a data matrix in Django
I have an array of data in my Storage Session related to products from a store, and would like to register a sale as soon as the user registers all their products and click Finish Sale. This matrix…
-
2
votes1
answer7608
viewsHow to save a JSON locally?
Direct question: What is the best way to save a JSON file locally and how to do it? Details: I have a web application that receives user data using the Facebook API (Javascript SDK), I need to save…
-
2
votes2
answers14672
viewsRefresh the contents of a page without reloading it
I am working on a project for college where I would like to update the content of a page without reloading it. The page in question has its content received from a script PHP, which in turn picks up…
-
2
votes1
answer125
viewsHow do I validate a value without leaving the page?
I’m developing a system with the discount part, so I wanted the user to enter the discount and after he finished validating whether or not and show the discount percentage. $cupom =…
-
2
votes1
answer426
viewsConfiguring jsTree for AJAX
I’m using the plugin jsTree, trying to make you seek the information by AJAX. In the server side I have four tables on the bench, each one a tree level. Tabela1 -Tabela2 --Tabela3 ---Tabela4 Making…
-
2
votes2
answers65
viewsHow to make a link on my site open only when clicked on the same page?
I’m trying to make a plugin html file editor, css, js and php, my problem comes that after it reads all the files it creates a link to edit my created file and goes to another page only I want that…
-
2
votes2
answers330
viewsWhy do my Jquery events stop working after an AJAX request?
I have two buttons that when clicked make the call of a .on('click',function()) but before that an AJAX request is made and after that request they no longer work. Before I did the function to…
-
2
votes2
answers79
viewsHow to resolve ids problem in jQuery?
I have two almost equal forms, one for individuals and one for legal entities and these forms are hidden and appear as the result of a jQuery().change determining whether the form is for a natural…
-
2
votes2
answers355
viewsTokenmismatchexception after any ajax error on Laravel 5.1
I have been working with Laravel for a short time and am having a problem when using ajax requests. When my application returns any error and I try to send another request, Laravel sends me this…
-
2
votes1
answer43
viewsIs countdown on the PLACEHOLDER possible?
I would like to know first if it is possible this, and also disable the input where the placeholder is until the count is finished and when the count is finished enable again? any draft? jquery and…
-
2
votes2
answers11133
viewsNo 'Access-Control-Allow-Origin' header using php
I am trying to make a simple request via localhost to an external server, but without success. Can anyone help me? $(function(){ jQuery.support.cors = true; $.ajax({ type: 'get', crossDomain: true,…
-
2
votes1
answer336
viewsChange font color of a cell Table with ajax
Let’s say I have the following table: I have an option that I click to activate the users selected by the checkbox. Everything already working and even occurs the activation of users. I am using…