Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Everything / Ajax

Ajax

Ajax

Great Reads

by Bryian Tan
The author is sharing an article on how to create a help tooltip for a HTML element using Web API, Bootstrap Popover and jQuery UI dialog
by Piotr Gałecki
SecureXHR aims at providing a simple but sufficient interface for the XMLHttpRequest object and increase its safety
by Necmettin Demir
"How to series" about MVC, jQuery, JSON, paging, mapRoute.
by Wayne Ye
"Unique URL Pattern" in Ajax Web Application

Latest Articles

by Bryian Tan
The author is sharing an article on how to create a help tooltip for a HTML element using Web API, Bootstrap Popover and jQuery UI dialog
by Piotr Gałecki
SecureXHR aims at providing a simple but sufficient interface for the XMLHttpRequest object and increase its safety
by Necmettin Demir
"How to series" about MVC, jQuery, JSON, paging, mapRoute.
by Wayne Ye
"Unique URL Pattern" in Ajax Web Application

All Articles

Sort by Score

Ajax 

by SimbarasheM
A .NET v4 Library for converting DataTable row(s) to JSON String for WCFServices
by SrikantSahu
This is a simple application developed using C# MVC and jquery for basic CRUD operations. The application can be unit tested using selenium web drivers.
by SrikantSahu
This tip can be used to know more about how dojo templated widgets can be created and used inside a portlet programmatically.
by Sitang Ruan
How to display a spinner with disabled background when doing postback or Ajax call
by Michael Bergman
Using Windows Communication Foundation to build a simple web server
by UberGeoff
This tip explains how to display a jQuery modal pop-up message using server side events.
by John Bhatt
How to create a nice Accordion Panel with CSS
by Voicent Support
Delay load g+1 button to make web page loads faster and more responsive
by Sky Sanders
Mixing and matching security to get something like this locked down and providing the desired exposure might be challenging but I didn't offer to solve that in the title, did I?                    <behavior...
by Vinay Jade
ImageButton control can be used as AdRotator with help of UpdatePanel
by BradodarB
Simple example outlining how to optionally employ AHAH based views in an MVC application.
by Vinay Jade
Using Seadragon, you can simply zoom-in and zoom-out an image
by Anuraj Parameswaran
Ajax file upload with ASP.NET 5
by Sympletech
A little guide to introduce you how to create a JQuery Extension Method
by Yogesh Jamkhindikar
Solution if Ajax method not calling Controller method every time its invoked
by Mehul M Thakkar
In Javascript if you want to access any control, the syntax would be like thisdocument.getElementById('');The alternative of this syntax while using Ajax is$get(''); Enjoy CodingMehul Thakkar
by Albin Abel
Though update panel keeps the page responsive while paritially post back, it will not avoid a round trip of complete page and control events. So care needs for a better performance
by Peter Leow
This is a simple web application to illustrate visually the difference between Ajax and non-Ajax calls that take place all in a single web page.
by J a a n s
There will be some scenarios where we may have to identify the sender that caused the async postback(While using update panel) . Normally we will try to identify the control by checking the sender element . This wont be always giving the correct value as multiple clicks/ elements under the...
by J a a n s
We can display a page mask (for avoiding unnecessary clicks) during a async postbacks with the help of an modalpopup extender.1. Add a new modalpopup extender in the page.<ajaxToolkit:ModalPopupExtender ID="MPE001" BackgroundCssClass="maskbg" runat="server" TargetControlID="dummyLink"...
by massimiliano aronica
Speed up the loading of the main view by automatically loading partial views in async
by Bert O Neill
AngularJS and Web API Active Directory Security (Authorisation)
by Yaseer Mumtaz
AngularJS ng-grid export to CSV workaround for Internet Explorer to avoid showing "Save" dialog box.
by Bert O Neill
AngularJS RibbonBar written with HTML & CSS (and a little JQuery)
by Anurag Prajesh
How to add banner and slideshow in your website with adrotator
by Ameet Parse
ASP.Net Ajax AutoCompleteExtender without using Web Service
by Karthik_Mahalingam
Show/hide the loading GIF image while exporting a file from server
by Hovhannes Bantikyan
This is a simple infinite scroll with Ajax post and JSON. Have fun :)
by Bryian Tan
How ASP.NET redirects web page with AJAX loading indicator image
by Pathak Ashwin
Asynchronous Web Service Call
by kas ibabu
An easy way to understand Ajax help in ASP.NET
by Tadit Dash (ତଡିତ୍ କୁମାର ଦାଶ)
Struggling to attach a Client Side Event to AJAX HtmlEditorExtender? Apply the trick and enjoy.
by sumit_kapadia
AutoComplete Texbox with comma separated insertions
by Eduardo Yost
Creating a Web User Control containing an AutoCompleteExtender for data through WCF (JSON) allowing to store the entity selected through EntityFramework. Entity object serialization from the server to the client and the client to the server.
by Bhushan Mulmule
This is terribly unorganized document with mix of MVC, Entity Framework, LINQ, HTML 5 and JQuery how tos...
by Amol Jadhao
How to bind dropdownlist in ASP.NET using JQuery Ajax
by Nirav Prabtani
Bind gridview using Ajax post method and jQuery
by Yaseer Mumtaz
This tip will explain step by step Bootstrap basic development for beginners. Attached is small application having three pages using Bootstrap CSS, Components and JS.
by Lyubomir Rumenov Velchev
Display Bootstrap Modal Dialog using Version Bootstrap v3.2.0 and v3.0.0 - issue
by Jon Woo
Consolidating all the information that I have found on cross domain interaction in the web world
by UberGeoff
An all-in-one callback gridview
by Mahesh Nandanan
Calling Server Side Method inside an aspx file and Web Service(asmx) method using JavaScript and Ajax
by John Bonfardeci
Cascading Asynchronous Function Execution (CAFÉ) is a design pattern for easily managing the execution sequence of asynchronous requests and callbacks within a medium to large JavaScript framework.
by sumit_kapadia
Create and Bind gridview at client side with Jquery Template and ajax in asp.net
by mhamad zarif
How to close all panes in an AJAX Accordion.
by Mishra Sourabh
Today in this article, we are going to learn how to consume webapi using angularjs.
by RalphZero
This is a simple example of an Ajax-Enabled WCF Service (hosted in IIS) that can be consumed by both client-side and server-side code.
by Rocky R. Fernandes
Accessing Json Data across different domain using JsonP to get arround Security warning
by Er. Mayank Kothari
Generate barcode image in web application
by Member 4332221
Create count down timer using ASP.NET Timer Control and Ajax
by Shishir Shukla
A simple method to implement modal popup during ASP.NET asynchronous request using ASP updatepanel and updateprogress
by MEJ_Dev
<asp:UpdatePro...
by Indresh_Prajapati
This tip will help beginners to implement CRUD operations in ASP.NET MVC 5 using WebAPI 2 with scripting language as AngularJS and Database as MS SQL 2008R2.
by HardikPatel.SE
Paging using AJAX
by HardikPatel.SE
Paging and Sorting with AJAX
by rakeshcodeproj
Show the Awareness/Notification Modal dialog based on the cookie and display the content from a list with a single java script file
by Alejandro Garcia
Databinding enumerators to DataBound controls.
by Muhammad Hassan Tariq
Glimpse Extension for server side debugging and diagnostic information of ASP.NET applications
by Sumit Garg From Chandigarh
How to review dynamic HTML content from browser using JavaScript?These days everybody is using AJAX for web development. Sometimes we need to debug our AJAX code to review what actually get rendered in the browser. The problem is, if you view source code of the page, it will not display...
by Philip.F
If you are using Firefox, there is a wonderful addon called "FireBug"http://getfirebug.com/[^]You can do extended JavaScript-Debuging and DOM-Manipulation with it.Phil
by aadharshkannan
This gives you a modified version of Seadragon to run in Windows 8 Metro UI.
by Shashank S Chandel
Demonstration application using MVC SignalR and Entity framework - Part I
by ss9o9o9o
Transferring backup files from a remote SQL Server and Dynamic SQL Connection with Restore utility.
by Naga Vinodh Peddi
How to dynamically create file upload control and add text file data to SQL database
by e.bonavero-miller
To enable JS intellisense in Visual Studio 2010, you have two options (there are others to do with reference tag name and assembly) but these are the ones that I know work.i) Add a JavaScript file to an AJAX server control project (which references System.Web.Extensions and hence the...
by Nirav Prabtani
Virtual Expandable Gridview using Ajax post method
by Krishna KV
Access the API using the promise HTTP
by sazakir
Simple file upload using Html5 & Ajax post
by lusgon
Uploading a file using WCF REST API and JavaScript
by arash2009
Have you ever developed a web application with several Ajax Update panels on one page and then wondering which one caused the postback ?Well, this happened to me and after many dead ends, here is the key to finding what UpdatePanel caused the...
by saurav ray
Fire TextBox TextChanged event from GridView
by NewCodePlayer
Code for creating a grid in jQuery.
by Arun Chandrasekhara Pillai
Generic JqGrid implementation in MVC with custom filtering and dynamic sorting
by Avinash6474
By entering latitude and longitude get location details Country, state, city, pin code, etc.
by Yaseer Mumtaz
In this small tip, I will explain how we can embed Google Visualization Geomap in the AngularJS with select event getting the selected location and using it to populate other data.
by Vinay Jade
The edit and delete options are available only for the particular record on which mouse pointer is focusing
by Premraj M
What is jQuery?jQuery is a Art, technology, development, coding and hobby.jQuery is a part of WEB 2.O. This is a modern and new technology which is implemented in the browser level. In this tech. all things are handling in div component, JavaScript and CSS.This is a one kind of open...
by Michael Rosqvist
A small sample showing how to create a Google Heatmap in ASP.NET/VB.NET
by Winson Yau
Create and download the file with Ajax call in ASP.NET MVC
by Amey K Bhatkar
UpdatePanel tutorial.
by M.Farrukh Abbas
There is no fool-proof technique to catch the browser close event for 100% of time. The trouble lies in the stateless nature of HTTP. I will explain one of them which is very effective and tested
by jfriedman
//Using MooToolswindow.addEvent('unload', Cookie.delete.pass('applicationCookie'));//using JavaScript by itself...//http://www.quirksmode.org/js/cookies.htmlvar eraser = function () { eraseCookie('applicationCookie'); };if(window.addEventListener) window.addEventListener('unload',...
by Peter BCKR
Fixing missing ContentType-Bug in Internet Explorer 10 on Windows 8 when using XDomainRequest and POST requests
by Alen Toma
How to implement ObjectStatus with EntityWorker.Core and JavaScript
by ManojKumar19
Learn how to configure dynamic compression in IIS 7.5 to improve performance
by B. Clay Shannon
Using HTML and jQuery/AJAX to dynamically modify the contents of a Web page
by Amit Singh Baghel
Saving Details Table Data (An HTML Table) in Database by converting it into a jagged array and passing it to a table type parameter
by V. Subhash
I made this list for CNN but it might be useful for any website owner.
by Matias Lopez
How to open a JSON file in JavaScript for Web"
by dimpant
Utilize the Rating Ajax control in your ASP.NET Web Forms application.
by Ravi Lodhiya
An attacker would point to a “harmful” web site or content and you would only see a short URL which would not tell anything about the original URL.
by Rohit Nanda
The easiest way to send form data to Google Docs/Spreadsheet from your web page, using your own form and AJAX. Nowadays, Google Docs/Drive is a widely used service for data storage and documents sharing.
by SanSkun
This trick is about how to change background colour of a popup window by using modal pop up extender.
by Shridhar Gowda
This tip will explain how to sort a table / GridView on an ASP.NET or MVC(AngularJs) application. I am demonstrating both client side and server side sorting. I am sure you will have a great knowledge on this topic after reading it.
by Lavish Kumar
How to use ASP.NET AJAX Calender Extender
by Zachary Gardner
IE waits till the end of the thread to send AJAX POST requests to the server.
by Bhargava K Pandey
Create an infinite list with “Load More” button appearing at the bottom of the lists that can be used to load data on demand, using AJAX
by Naufel Basheer
Load child dropdown without hitting the database in MVC3 using jQuery
by Mathew Soji
This tip guides through implementing a basic REST based Web API service with multiple GET methods and its consumption using JQuery client
by Azim Zahir
This tip explains implementing AJAX in ASP.NET MVC.
by Sachin Dev Tripathi
Validating MVC fields at by ajax call on controller without posting form data.
by mimtiyaz
Insert and bind records from a dropdownlist using AJAX UpdatePanel
by Santiago Santos Cortizo
How to resolve cached post problem with iPhone/iPad with iOS6 update.
by joetavMB
A method to call a function in JavaScript after each response.
by Rajesh Udupi
Javascript coding tips
by Rajesh Udupi
Some useful tips on JavaScript code performance
by Rajesh Udupi
JavaScript performance tips - Part 2
by Albin Abel
Just a simple note with sys.StringBuilder which is just beginner level
by gladtobegrey
Why not simply:markup = [];markup.push('');markup.push('');markup.push('');markup.push('');markup.push('Sample \'StringBuilder\' HTML');markup.push('');markup.push('');alert(markup.join('\n\r'));markup.toString() could...
by Matthew Dennis
jQuery has changed its implementation of how it creates JSONP requests in a way that can break some applications.
by Jules Bartow
My dataType:json call to WSEzPL8.asmx/GetCompaniesJSON for a jQuery auto-complete dropdownlist list inside a jQuery dialog works great (just in case anyone is having problems getting their AjaxControlToolkit ComboBox inside an AjaxControlToolkit ModalPopupExtender to work). Fiddler shows JSON...
by SRS(The Coder)
This article tries to create a clear understanding on making synchronous and asynchronous Ajax calls through jQuery Ajax method. After going through it, you can have a clear idea on how and when to do asynchronous Ajax calls.
by AlexCode
Handling different default AJAX caching definitions between browsers.
by luivis7
A simple example of how to use jQuery Autocomplete to make an AJAX call to WebAPI in an MVC4 application.
by Anup Das Gupta (asteranup)
jQuery tooltip with Ajax tooltip datasource with gridview
by Rupesh Kumar Tiwari
I have below suggestions:1) Why are you making call to webmethod are you fetching data from server and showing it in tool tip ? But in your example it seems that you are just returning the same data that you get from UI. If you are making some DB call and returning data to UI then its ok to...
by Dinand.dotnet
How to easily run a function in C# from the view using ajax/jquery
by Alexander Parra Lorenzo
example to request a JSON data
by Santiago Santos Cortizo
jTable adaptation to be used either with jQuery UI and Bootstrap dialogs
by Yogesh Jamkhindikar
Kendo UI NumericTextBox Enable/Disable issue solved
by Dinesh K.S. Kushwaha
Simple Paged Grid by using knockout js
by vivek poomala
Load data dynamically on page scroll.
by LiQuick
Using JQuery AJAX calls to load ASPX page(s) into another HTML/ASPX page
by Yaseer Mumtaz
This small tip will explain how you can check status of long running processes in ASP.NET MVC web application using SignalR by sending messages from server to client during execution.
by Edson_Ferreira
This tip will demonstrate how to create a SPA using an MVC Application, AJAX and History.js
by Nasser Malik
Create a custom message box that comes up in AJAX way. A single message box to show Information messages, Warnings, Errors and Success messages.
by B. Clay Shannon
Simplest possible step-by-step instructions on how to set up an ASP.NET MVC app to use AJAX from the client to call a Controller method, sending data from the client (jquery code on a View) to the server (C# code on a Controller), and then response data back from the server to the client.
by Bangla Gopal Surya Prakash
Modal Popup in PageLoad
by Mystery123
Ajax search modal dialog with item selection
by Frank Kerrigan
Enabling ModalPopupExtender from ServerSide Code in the Ajax Control Kit
by Yaseer Mumtaz
MVC 4 Ajax File Upload Control - Workaround
by Javad Zarrinabadi
MVC Master Detail example with partial view and modal dialog
by lakhdarr
Using angularjs global controllers and MVC Razor to divide page (load) rendering between server and browser
by babydragoner
Introduce how to use oGrid
by Nilesh Patil Kolhapur
How to solve web service call failed error
by Marcio_Coelho
This sample demonstrates how to pass data (variables) from code behind to JavaScript.
by Jovan Popovic(MSFT)
Example showing how to persist positions of the sortable elements after drag&drop reordering using the JQuery UI sortable
by Santiago Santos Cortizo
This pattern will allow you to forget 504 server error on huge operations.
by M. Salah AbdAllah
Pjax ASP.NET webform is simple code that uses Ajax and pushState to deliver a fast browsing experience with real permalinks, page titles, and a working back button.
by Ricardo_Torres_Torres
The power of the XmlHttpRequest in Ajax requests to retrieve data from server side
by Kashif Amin Makhdoom
Progressbar using JQueryUI and SignalR
by Manoj Mohan 07
Use Django to visualize download stats of Python packages and gain insights into package popularity and usage trends
by Gaurav Babbar :D
Use of XMLHTTPREQUEST (Raw AJAX).
by Kamal Surani
Recording video of your product and promoting video in cloud to get more customers
by Sitang Ruan
How to make a sequential Ajax call
by Shivarajbk
This atricle explains how to access methods from another server page.
by Sujeet Bhujbal
In this article, I will tell you how to create a cross-browser session expiration popup box using jQuery easily
by Chintankumar Panchasara
The below tip will help developers retrieving user id by account name using SharePoint REST APIs.
by sieunhantanbao
Show more data when window scrolling down like Facebook, Twitter...
by AshishChaudha
This article describes the working of fileupload inside an updatepanel and showing the file upload progress to the user.
by Robert J. Barr
Simple AJAX/ASP .NET Web API SMS/Texting Service
by Tareq_Gamal
Simple compact reusable native JavaScript function, you can use it easily in your web Pages to run Ajax Enabled and avoid refresh
by M.Ardekanian
A simple and easy way to implement uploading file with progress info to an ASP.NET page.
by SagSD
Adding dropdown item using bootstrap modal window and Ajax in ASP.NET webform and postioning the modal window
by Nirav Prabtani
Google API for NEWS
by Dav Zen
Simple and easy to use jQuery matrix 2D.
by Ming_Lu
Simple and Fast Color Picker Built on JQuery
by User 4835047
A simple way to serialize DataTables to JSON and push the data to a browser in MVC
by RaisKazi
Walkthrough of Asp.Net Core Ajax
by Muhammad Akhtar Shiekh
Hi Everyone,I want to share an experience to deal with the issue of simultaneous asynchronous requests using update panel.I faced an issue while working with multiple update panels on same page.I found that we can't perform simultaneous Asynchronous Requests using multiple update panels...
by Dejan Mauer
This is probably the simplest solution for storing web form data into database. We will use Google Forms and Google Spreadsheets as our 'database'.
by Giancarlo Rhodes
Creating the Web UI
by tanweer
Regular Expression for a strong password using jQquery AJAX.
by Sky Sanders
NOTE: This article presents another solution that does not depend on JSON.net.Doing interop with an ASP.NET ScriptService in JavaScript is simple, just deserialize the payload, e.g. result.d.But if you are consuming with managed code it gets a bit tricky.The 3.5 stack wraps the payload in...
by amitthk
Post the page forms using Ajax intead of Normal Post (Like when using MVC)
by amitthk
For ASP.NET MVC, HERE! is a much cooler approach:Basically, we use Ajax.ActionLink like this:The controller takes care of both the possibilities (Normal Post...
by Sky Sanders
After a minor bout of forgetfulness regarding legal regexp flags in Javascript, I knocked this one out that parses the comment block at the end of an YSOD. var rxYSOD = //;if (rxYSOD.test(text)) { // looks like one.. ...
by Abhishek Shrotriya
Develop the text comparator utility using jQuery plug-in, which internally uses Google's diff_match_patch.js library
by B. Clay Shannon
If you don't need to send or receive data, it is very easy to call Server code from Client/jQuery Code
by JIANGWilliam
This article discusses some potential pitfalls with Telerik based automation test development.
by Richard Roe
Example to show how to update an ASP.NET GridView control using Ajax JQuery client side script
by DiponRoy
How to use Ajax validation in Knockout
by Devanand7
How to use Backbone.js to make a structured web application.
by Mohsen dorparasti
NoAPI is a website that assists web developers to scrap pieces of data they need from public web pages, save them and use them in their web pages
by Prince Tegaton
Building a Custom User Control for Messagebox
by Technoses
This process can be used for management of bulky and long processes.
by Anuja Pawar Indore
This is an alternative for "Using Ajax AutoCompleteExtender for autosuggest"
by User 10132546
Using ASP.NET MVC without controllers or actions for each view
by Alejandro Barrada
How to pass custom args to the OnSuccess callback function of javascript ajax
by PoojaGahlaut
To show 'Please wait' text to the user when a button is clicked and some code block needs to be executed. The background should be made disabled, so that user cannot click on other links/buttons before the current execution completes.
by Muhammad Albedewy
Validate Anti-Forgery in 6 easy steps
by Anton Pious Alfred
The MVC Pattern was first conceptualized assuming all the three actors were present at one place. Since Web Applications have both a client and a server this needs to be applied differently without technology bias.
by xibao
Generate class definition for Web API Service Models.
by Mikeqm
Making the web work with Pick
by Afzaal Ahmad Zeeshan
A slight comparison of ASP.NET upon other (web) programming languages in the market and a discussion of me and some other (web) programming language developers.