AJAX is an acronym standing for Asynchronous JavaScript and XML that is the art of exchanging data with a server without a browser page refresh. jQuery is a great tool that provides a set of AJAX methods to develop the next generation of web application. This jQuery method is mostly used for requests where the […]
Search: “javascript”
We found 189 results for your search.
The serialize() method creates a text string in standard URL-encoded notation by serializing form values. One or more form elements (input, radio, checkbox etc.) can be used as a serializing. You can use this serialized values as a URL query string while making an AJAX request. Syntax: $(selector).serialize() Below we have shown an example for […]
Website speed up is one of the ranking method from Google and here we will discuss few tips how to speed up your blog and decrease loading time of your blog. There are so many factors by which we can reduce the page loading time and we need to care about all those steps to […]
Truncate String with Ellipsis
Overflow with text is always a big issue in a website, especially in a programmatic environment. Use Ellipsis to truncate string. We can provide a solution by adding an CSS property overflow: hidden setting to the span, but you can see that the text looked unnaturally cut off. The way to make text overflow elegant […]
jQuery Data Method
jQuery data method gives you the ability to associate arbitrary data with HTML DOM nodes and JavaScript objects. As of jQuery 1.4.3, you have the ability to use this method on JavaScript objects and call for element modification. jQuery.data() method store arbitrary data associated with the specified element or returns the value that was set. […]
Autosize is a small jQuery plugin that allow textarea autosize making height dynamically so that it expands as based on visitor input. You can implement textarea autosize by calling the .autosize() method on any textarea element. Example of textarea autosize: $(‘textarea’).autosize(); For implementation autosize in your website you need to follow below steps: Include jQuery […]
The jQuery getScript() method is used to Include multiple js files i.e. load and execute a JavaScript from the server using an AJAX HTTP GET request. The method returns XMLHttpRequest object and the callback is fired once the script has been loaded, but not necessarily executed. Syntax of getScript: $(selector).getScript(url,success(response,status)) $.getScript( “test.js”, function( data, textStatus, […]
Parse json data with jquery
jQuery parseJSON() takes a well formed JSON string and then returns the resulting JavaScript value. Prior to jQuery 1.9 version, $.parseJSON returned null value rather than throwing an error if this was passed an empty string, null, or undefined, even though those are not valid JSON. Here are some basic things about JSON: JSON is […]
Using jQuery.getJSON method you can get or load JSON encoded data by an AJAX HTTP GET request. The method returns XMLHttpRequest object. JSON stands for JavaScript Object Notation. So, this is a way of formatting the data to look at loading JSON data using an HTTP GET request (you can also use POST method). Syntax: […]
Building the Ultimate Landing Page
A good landing page is the cornerstone of online marketing campaigns, and since it is usually the first area users learn about new products and services. It has to be well executed. However, leaving a good first impression is not easy. Everything has to look and feel right. In this brief guide, Toptal Freelance Software […]