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
votes1
answer2179
viewsAjax is returning me an array and now, how to separate?
My Ajax request is returning 3 records of a PHP query (yes, I’m sure), so we have arrays of the type: array 1 ["João", "19/05/1986", "masculino", "Programador", "Campo Grande"] array 2 ["Maria",…
-
1
votes1
answer52
viewsI used setcookie on my local server and everything worked out, but when I climbed to the local server does not work
I used setcookie("votados".$_POST['votacao'], 'yes', time()+86400*300); on my local server and worked divinely well, but when climbing it does not work. Like, he was supposed to check whether the…
-
1
votes4
answers791
viewsTaking data via ajax
I need to get content from a div. I’m actually building a dynamic menu, where I define <li class="menuLi"> <div class="acao">-3</div> <div class="desc">Inicio</div>…
-
1
votes1
answer659
viewsRequest ajax in a Google Chrome app
I was developing an application in Chrome and needed to use the Instagram api to display some photos but when I went to do the tests the following error appeared: What I found strange because the…
-
1
votes2
answers586
viewsInsert mysql using ajax
I am trying to enter registration in BD via ajax but am having problems, I was using the format: 'json' but I was giving permission error and Alz, now I’m using type: "POST", dataType: "jsonp".…
-
1
votes1
answer481
viewsChanging the status of a checkbox component in the database using AJAX
very good evening to all! Well, I have a table in which there is a checkbox component. This component has the task of enabling and disabling a destination on my website. The figure below shows a…
-
1
votes4
answers706
viewsPlace a url in the text field and show it in a DIV next door
How can I do that? I have a form that has some input text, I would like when the user pastes a url of an image on the web appears next to a div with that image. I think it would be with Ajax but I…
-
1
votes1
answer4184
viewsLoad content into a DIV using Javascript
I need to upload the video.html page to div with video id using Javascript. I have the following script: function video() { $.ajax({ url: "video.html", cache: false, success: function(html){…
-
1
votes1
answer42
viewsAppend Infinite arrays returned from PHP to AJAX
function CheckNewsFeed() { $.ajax({ url: ProcurarPorNovosDados.php, success: function(texto) { *Aqui que está minha dúvida, como fazer o Append de resultados dinâmicos retornado pelo PHP?*…
-
1
votes1
answer196
viewsAlgorithm takes 5sec but the page takes 1.5m to load
After calling a process via ajax if ($('#content-recommendation').length) { $.ajax({ url:'/get_content_recommendation/' + gon.item_id + '.js', type:"get" }); } I do this in…
-
1
votes2
answers808
viewsDo not rotate iframe until clicking
Hello. I have the Pagina1.php that has an iframe that sits in an invisible div display:none, which shows the iframe only when I click on a button with the ajax function to show the invisible div…
-
1
votes2
answers987
viewsAngularjs | How to define a boot process for a controller?
I have an app full of Ajax that needs to get data via Webservice when the page loads. I’ve already initialized via ng-init but I don’t know how to have the controller "load" and execute the code…
-
1
votes1
answer1185
viewsUse EJS with NODE
I need help changing my html index to EJS. I am using Node, and I have already made the changes in my configuration file for EJS to work properly. In my index.ejs I have a table tr: <div…
-
1
votes0
answers85
viewsPlugin javascript or jquery stars
Obs: I don’t know if you can ask this question here, if not! Please disregard/delete. Does anyone know any plugin that I can make this screen(the rating): Where this classification I’m trying to do,…
-
1
votes1
answer496
viewsParsererror error when making an AJAX crossDomain request
I created this page to test a request cross Domain with AJAX: <html> <head> <script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"> </script>…
-
1
votes1
answer137
viewsOne controller method works correctly and another similar returns error
I have two Controller files and two JSP files with the same structure. In JSP I have the following structure for AJAX: $.ajax({ method: "POST", url: '/modulo1/funcao1', data: { 'atributo1':…
-
1
votes1
answer983
viewsDifference between Synchronous AJAX and POST/GET
There is some difference in performance and functioning between a AJAX Synchronous and a connection POST/GET? Both lock the thread (browser freezes) but there are other differentials between types…
-
1
votes2
answers89
views -
1
votes1
answer34
viewsCapture file size and extension and inform via HTML
I have a list of files on a page I’m developing. The HTML is like this: <li class="downloadsCont"> <div class="grid_365 f-left"> <div class="downloadsContImg f-left"> <img…
-
1
votes1
answer945
viewsHow to call information in an html from a page . jsp
I am developing a good HTML5 Hybrid mobile app and my backend will be done with Java and Mysql. I’m using Phonegap and the same to generate the APP needs my files to be extension .html .css .js, to…
-
1
votes0
answers58
viewscall an http request control on Angularjs
how can I call a control file from an http request (get) $http({ method: 'GET', url: 'dashboard.do' }).then(function successCallback(response) { // this callback will be called asynchronously //…
-
1
votes3
answers1241
viewsSlider in jQuery (Nivo Slider) does not work when it is inside a content loaded via Ajax
I’m using the Nivo Slider plugin to create a slider on my page. If I put the slider structure directly on the page, it loads right... but if it is inside a content loaded via ajax, just nothing…
-
1
votes2
answers1508
viewshow to select an option and update the values (price, images ...) that are in the database?
I have a system of computer budgets on the site, with several options, and I want to update the page values when selecting an option without refresh. So I searched I will need to use ajax, but I…
-
1
votes1
answer983
viewsGroup clicks into "more" and "less" buttons to make fewer requests in a row
On a site I have a button "more" and "less" to change the amount of an item in the cart, only the item is updated when you click. If the client clicks 10 times in a row, 10 requests are made, and…
-
1
votes2
answers271
viewsHow do I select exactly the element searched for in jQuery regardless of classes or ids?
If you execute the code you will see that the second form is influenced by the first one and does not take the data for itself. Of course this is a flaw in my jQuery. The first form works perfectly,…
-
1
votes1
answer628
viewsHow to check a login form without giving refresh?
I want something that when clicked on the button Entrar it sees if everything is ok password and email correct. A como fazer em Javascript (preferencia)ou em AJAX?
-
1
votes0
answers40
viewsI want to access a PHP function from Ajax
My doubt is the ajax URL, I want to know how to access the function of my class Ajax with jQuery $.ajax({ type:'post', url: "Usuario.php?apagar", data: {titulo: 'Ola mundo'}, success: function( data…
-
1
votes1
answer43
viewsAjax does not return to view using find()
Hello, I am creating an ajax but if I use find to return in the desired div it does not return success: function (ret) { if (ret == "sucesso") { $(this).find(".msg-envio").html("<p…
-
1
votes2
answers1245
viewsTake the value of a <TD> tag by jquery and send to Controller method
How do I take the value of a tag when I double-click it and take that value and move to a method in my controller. Double click function is working. $('#nmUsuario').on("dblclick", '.clique',…
-
1
votes1
answer112
viewsData grid with function 0 in the rest PHP or PHP+Ajax
I’m an Intermediate Programmer, and I’m at an impasse, I need to display some items and what’s missing I need you to fill out with a mayor model. Let’s explain the logic ok? In My Table (I will use…
-
1
votes1
answer49
viewsWhat is the best way to work with user data coming from the server?
I’m on a project for an online sales (mobile) app. What is the best way to work with data from tables? Sqlite, JSON, creating a class, Localstorage? For example, when soon, I don’t want to be on the…
-
1
votes2
answers972
viewsHow to change the data type in $.post request in jQuery?
var envio = $.post("processamento/busca.php", { unidade: $("#unidade").val() }) I have this request, I would like to change the datatype to json, in ajax you have a datatype parameter, but I don’t…
-
1
votes0
answers88
viewsClarification on jQuery ajax content-type
What would be the difference/utility to use: beforeSend: function(jqXHR) { jqXHR.overrideMimeType('text/plain; charset=iso-8859-1') } and contentType: 'text/plain; charset=iso-8859-1', contenttype…
-
1
votes1
answer77
viewsPick up service html and display DIV on my website
I have an Ajax function that returns me the html of a service that I have exposed, I would like to take this html and put inside the DIV of a site of my. My function is already picking up html, but…
-
1
votes0
answers19
viewsproblems with haml to html/erb conversion
Hello. I have the following excerpt in haml: %a.btn.btn-small.notes_campaign{:role => "button", :data => {:campaign_group_id => campaign_group.id}} %i.icon-tasks Notes And drop to pass it…
-
1
votes1
answer7205
viewsValidation of input with "real time" query to the database, to check whether the information is already registered or not
I would like to do a form validation in real time. For example, I have a input name="TituloFilme" type="text", i in my database I have the following columns ID | TituloFilme . When I am registering…
-
1
votes2
answers360
viewsReplace CRON
I made a script PHP which has to be executed at all times, usually from 1 to 1 seconds or at most 2 to 2 seconds. The problem is that I have configured several command lines in CRON to run every 1…
-
1
votes1
answer770
viewsSend form data by Ajax in MVC project
To begin I will illustrate a bit of the system for you, my directory structure is the following: >leganto(raiz) ---> controller -------> ControllerGlobal.php ------->…
-
1
votes1
answer1118
viewsHow to pass a php array as a $.ajax data parameter?
How to pass a php array as a $.ajax data parameter? Ex: <?php $nomes = array('maria','joao','jose'); ?> $.ajax({ url: 'pagina.php', dataType: 'json', method: 'POST', data: {'nomes' : <?php…
-
1
votes1
answer220
viewsAjax query to display multiple content
At the moment I have some banners that are loaded via ajax, and each one makes a request to load the html. Now I’m trying to optimize these processes and decided to make a single request to load as…
-
1
votes3
answers761
viewsForm.serialize() does not work
I am developing an application in which I have several tables and dialogs using the form.serialize(), but this particular one isn’t working and I can’t find the reason why. Form: <form…
-
1
votes1
answer48
viewsEmail appraisal
I have a problem analyzing the email on form registration, what I would like to do is that as soon as the user insert his email in the field email, the site already evaluate the email in the…
-
1
votes2
answers373
viewsOpening dialog() not working
Well, in a way I made some changes to my code, which is instead of using a table i am using a list hierarchy in HTML li. The code in the fiddle is exactly the same as my code within the system (with…
-
1
votes1
answer136
viewsAPP 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 the Json that this webservice will return, popular a listview. Simpleton. The webservice is…
-
1
votes2
answers1381
viewsCapture Variable Image Content
I have an HTML5 application that captures a webcam image through the browser that I need to capture and record to the database as a binary. On the server side, in PHP, I have: $directory = $img;…
-
1
votes1
answer561
viewsAjax with Python - I want to call function that is in default
I want to do a validation in Mysql Database through Ajax. I created a function called validaCNPJ() that is in the controller called Default. But I don’t know how to put this function in the…
-
1
votes1
answer498
viewsTake 2 select value and display the data of each
I’m putting together a page where the person will be able to compare 2 products. I have 2 tables, categories and products. The 1st combobox, make a select in the table of categories. When choosing a…
-
1
votes1
answer5544
viewsOn(change) event on radio button
In the project I have a file that makes inquiries of freight prices and that at the same time returns two radio Buttons with the freight values. The return of the HTML is as follows: <p>…
-
1
votes2
answers1338
viewsMake Ubmit from a form via ajax
I have following code in my controller: [HttpGet] public ActionResult Mensagem(long idT, long idD) { string raaluno = acr.getAlunoLogado().ToString(); ViewBag.idT = idT.ToString(); ViewBag.idD =…
-
1
votes1
answer419
viewsHow to use the "Answer" of an XMLHTTPREQUEST in Cakephp (2.5)
CONCLUSION: I put it up here to get a quick look, I was using onClick to get this function, but I was leaving the request(request) out of function so it wasn’t working. I have an action in the Posts…