JSON in JavaScript

This tutorial is created to provide you with an introduction to working with JSON (JavaScript Object Notation) in JavaScript. JSON is mostly used with AJAX (Asynchronous JavaScript) and XML. It's a lightweight format to serialize and transmit structured data over a network connection. JSON for JavaScript is generally used in some of the following scenarios : Data Storage (Storing Data).Data AnalysisData transfer from user / server to relevant medium. Keys and Values…

How to Get, Set and Delete Div Background Image using jQuery?

This tutorial is created to Set, Get and Delete background image. In this tutorial, You'll learn to Get, Set and Remove the background image using jQuery. Get Background Image You can use the below code for getting the background image in jQuery with fade out effect. $("#btn-get").click(function () { var bg = $('#bg-img').css('background-image'); bg = bg.replace('url(', '').replace(')', ''); alert(bg); }); Set Background Image You can use the below code for…

AJAX for Database Operations

This tutorial is created to implement CRUD operations via AJAX (Asynchronous JavaScript and XML). Ajax is used for rich-internet applications that emulate the responsiveness and complex user interfaces. It is a set of inter-related technologies like JavaScript, DOM, XML, HTML/XHTML, CSS, XMLHttpRequest. It helps to send and receive data asynchronously without reloading the web page and it's faster. Create the DB(Database) Create the DB and run the following SQL query…