Latest Questions tagged Ajax

Browse all latest questions tagged Ajax

66
Votes
Published 05 Aug, 2022
Jquery - Stopping redirect after AJAX request with jQuery

I'm trying to get a simple form to submit via AJAX to the submit.php page where it is sent to a database. When I submit it, it redirects to submit.php. I want it to submit without redirecting. Thanks...

80
Votes
Published 03 Aug, 2022
Jquery - Ajax call to asp.net c# method returning custom object list

I'm trying to calling this WebMethod: [System.Web.Services.WebMethod] public static List<CustomObject> Carica(int ID) { List<CustomObject> elenco = new List<CustomObject>();...

109
Votes
Published 09 Aug, 2022
Jquery - how to get two arrays from php using json,jquery ajax?

I want to build a graph in jqchart where i need to get two arrays Now i want to perform operation as given below.Which is giving error ofcourse. html $.ajax( { type: "GET",...

55
Votes
Published 03 Aug, 2022
Jquery - Assigning variable from jquery ajax call returns undefined

I am new to jquery and I am trying to assign a value to a variable after an ajax call but it returns undefined. My code is below: function prepareDocument() { var a = getAverageRating(1); alert(a); }...

47
Votes
Published 10 Aug, 2022
Jquery - jQuery calling php script onload

I am trying to use jQuery's ajax to call a php script onload. This script will return xml from a url web service, parse through it, and then display bits and pieces of it into a div tag when the page...

11
Votes
Published 09 Aug, 2022
Jquery - AJAX results issue - Data.Results is Undefined

I am trying to setup Select2 to use Ajax and am rather stuck. I have debugged in IE and confirmed that my AJAX is returning results, so that doesn't appear to be the issue. The input box loads, but wh...

45
Votes
Published 09 Aug, 2022
Jquery - Insert a variable into data attribute, AJAX

I'm pretty sure this has a simple solution that I'm missing. I have the following ajax script. <!DOCTYPE html> <html> <head> <script src="http://ajax.googleapis.com/ajax/libs/j...

62
Votes
Published 13 Aug, 2022
Jquery - ParseInt not working on Jquery ajax response

I am having a peculiar problem with getting an integer from an ajax response. Whenever I call the following code, parseInt(data) returns NaN despite data being a string. function poll() { $.ajax(...

38
Votes
Published 08 Aug, 2022
Jquery - is it possible to load existing href links with jquery into a div tag without reloading?

I don't really understand how ajax works, but I have seen tutorials that allow me to change a div to a web page by clicking on a button. Is there a way to load the clicked link into the div tag wi...

59
Votes
Published 04 Aug, 2022
Jquery - How to display an animated icon during Ajax request processing - Rails 3

I am trying to display an loading indicator for every ajax request, I working in a rails 3 app. HTML: <div id="loading-indicator"> <%= image_tag("loading.gif", :id => "loading-indicat...

101
Votes
Published 03 Aug, 2022
Jquery - Disable button programmatically in oracle apex using javascript/jQuery

I'm trying to disable a button inside of a form region in Oracle Application Express (Apex v3) in an ajax-ified manner. I'm using jQuery to accomplish the ajax part. $('#P16_MYBUTTON').hide(); D...

48
Votes
Published 09 Aug, 2022
Jquery - How to load php file into div using jQuery Load with passing parameter

I've an element <div id="search_result"></div>, and then I used $.ajax to retrieve some data (search result). $.ajax({ url: "url to server", dataType: "json", data: keyword, type:...

101
Votes
Published 04 Aug, 2022
Jquery - Dynamically total input field values, after they have been entered, but before they are submitted

I don't usually use js, so am hoping for a quick win. Although I can't find the answer on SO in spite of quite a few similar questions out there. I have a form... <input type="text" size="5" id=...

48
Votes
Published 04 Aug, 2022
Jquery - Facebook login integration to website on localhost

My index.php file include this: <div id="fb-root"></div> <script type="text/javascript"> window.fbAsyncInit = function () { FB.init({ appId: '<?php echo $appId; ?>...

29
Votes
Published 02 Aug, 2022
Jquery - show progressbar while loading pages using jquery ajax in single page website

I have a basic page with a navigation bar on top, and a wrapper body. Whenever a user clicks on a navigation link it uses .load to load the page content into the wrapper div. $(this).ajaxStart(funct...