Posts

jQuery Restful - REST APIs

Image
RESTful (Representational State Transfer) is an architectural style for designing networked applications. It is not specific to jQuery or any other programming language or library. RESTful APIs (Application Programming Interfaces) use the principles of REST to provide a standardized way for systems to communicate over the internet. Free API - https://jsonplaceholder.typicode.com/posts If you're referring to using jQuery to interact with a RESTful API, you can use the AJAX (Asynchronous JavaScript and XML) capabilities provided by jQuery. AJAX allows you to make asynchronous HTTP requests to a server, which is commonly used in conjunction with RESTful APIs. Example : Form Post Using a Free API JSON.stringify is a JavaScript function that converts a JavaScript object or value into a JSON string. JSON (JavaScript Object Notation) is a lightweight data interchange format commonly used for data exchange between a server and a web application, as well as between different parts of an ap...

dataTable

Image
Data tables are a typical method for displaying structured data on the web. They are widely used to show data tables in websites or apps. Data tables may be generated with HTML and CSS, and they are easily customizable to meet the demands of the application.  It appears that you're referring to the jQuery DataTables plugin, which is a strong and versatile tool for upgrading HTML tables. jQuery DataTables includes capabilities like as sorting, searching, pagination, and more to make dealing with tables easier. Example : $ ( document ). ready ( function () {       $ ( '#myTable' ). DataTable (); }); Download Source code from Github Link : https://github.com/kanakaraju/Jquery_Easy_Tricks/blob/main/dataTable/dataTable.html

XMLSerializer

Create elements with javascript, apply some conditions, and display them in the console using XMLSerializer. The XMLSerializer is a JavaScript object that is commonly used in web development to convert JavaScript objects or values to XML format and vice versa. Example: var node = document.createElement("Devicea"); // do not use the methods provided by the document namespace  node.setAttribute('ID', 1000); node.setAttribute('DESCRIPTION', 'NameA'); document.body.appendChild(node); // add the element if(document.getElementById("1000").textContent == '') { var node1 = document.createElement("Deviceb"); // do not use the methods provided by the document namespace   node1.setAttribute('ID', 2000); node1.setAttribute('DESCRIPTION', 'Nameb'); document.getElementsByTagName("devicea")[0].appendChild(node1); // add the element } else {   console.log("not updated"); } var serializer = new XML...

linear-gradient - HAPPY NEW YEAR 2024

The linear-gradient() function in CSS can be used to apply a linear gradient. You can use this function to create a smooth transition between two or more colors along a straight line. Here's an easy example: The background property of the body element is set to linear-gradient(). The to bottom keyword specifies the gradient's direction. You can change this to other values such as top, left, right, or even specific angles (right bottom, left top, and so on). For increased visibility, additional styles are applied to the body. HAPPY NEW YEAR

HTML Marquee

HTML Marquee : An HTML marquee is a web development element that allows text or images to scroll horizontally or vertically on a web page. However, as of my most recent knowledge update in January 2022, the <marquee> tag was deemed obsolete and should not be used in modern web development. For similar effects, CSS animations or JavaScript are frequently used. Example of an HTML marquee tag: <marquee behavior="scroll" direction="left" loop=""><img width="300px" src="images/lion.gif"></marquee> Download Source code from Github Link: https://github.com/kanakaraju/HTML_Easy_Tricks/tree/main/Marquee

NVD3 is a JavaScript library that extends the D3.js library

Image
NVD3 is a JavaScript library that extends the D3.js library to make it easier to create reusable and customizable charts and graphs. D3.js (Data-Driven Documents) is a powerful library for manipulating data-driven documents. When compared to using D3.js directly, NVD3 provides pre-built chart components and configurations, making it easier to create common types of charts with less code. Key features and components of NVD3 include: Reusability: NVD3 promotes the creation of reusable chart components, making it easy to use the same chart type with different datasets and configurations. Chart Types: NVD3 supports a variety of chart types, including line charts, bar charts, scatter plots, pie charts, and more. Responsive Design: Charts created with NVD3 are responsive by default, adapting to different screen sizes and devices. Interactive Features: NVD3 charts often come with built-in interactivity, such as tooltips, zooming, and panning. Ease of Use: NVD3 abstracts away some of the...

Three.js 3D Graphics Library

Image
Each three.js project requires at least one HTML file to define the webpage and one JavaScript file to run the three.js code. The structure and naming choices listed below are optional, but will be used for consistency throughout this guide. Three.js is a well-known JavaScript library for creating 3D graphics and animations in web browsers. It makes working with WebGL, a web standard for rendering 3D graphics, easier by providing a higher level of abstraction. Three.js is an open-source framework for creating interactive 3D experiences on the web. Here is a simple example of creating a scene 3D skeletal with a using Three.js: Example creates a rotating birds in a 3D scene using Three.js Download source code from Github Link: https://github.com/kanakaraju/ThreeJS_Easy_Tricks Please see the URL below for more animated examples using three js library https://threejs.org/