Categories
Php

PHP4 vs PHP5 | Difference between PHP4 and PHP5

PHP, Hypertext Preprocessor is a Open Source Language which is trend in the 20th century for creating and developing fast and dynamic web pages. This is also Server Side Scripting Language with a powerful tool for creating dynamic web pages. Lets see the difference between PHP version 4 and 5. Here is the difference between […]

Categories
jQuery

jQuery clone – create a deep copy of matched elements

The jQuery clone() Method creates a deep run time copy of set of matched DOM Elements  to another location in the DOM elements and select the clones. This is very useful for run time copies of the elements to another location in the DOM elements. Syntax: $(selector).clone(true|false) true: specifies the event handlers which should be […]

Categories
API

Google Charts – visualize data on your website

Google charts provides a better way to visualize website data on your website. The chart gallery provides a very large number of ready to use chart types from simple line charts to hierarchical tree maps. To integrate Google Charts you need to embed JavaScript in your webpage. The process is very simple. Just load Google […]

Categories
jQuery

How to disable jQuery animations

The jQuery.fx.off method is used to globally enable or disable jQuery animations whose default value is false which allows animations to run normally. Syntax: jQuery.fx.off = true|false; $.fx.off = true|false; The true value specifies that the animations should be disabled and the false value is default value which specifies that the animations should be enabled. […]

Categories
Technology

What does Force Touch mean for UI and UX?

Force Touch or 3D Touch technology looks like promising from a user interface (UI) with user experience (UX) perspective. It is the fact that Apple is not the first technology company to implement the Force Touch technology but the key selling points for the iPhones is Force Touch or 3D Touch which Apple now brands […]

Categories
jQuery

Difference between prop and attr in jQuery

The prop and attr both method sets or returns properties/attributes and values of the selected elements. Let’s see the difference between Attr and Prop in jQuery. prop() grabs the specified DOM property whereas attr() grabs the specified HTML attribute. To know more about jQuery prop(), click here. To know more about jQuery attr(), click here. […]

Categories
WordPress

Turn off Canonical URLs – WordPress SEO by Yoast

Yoast SEO works in a way to choose a focus keyword for your articles, and then makes sure that you use that focus keyword everywhere. But Yoast SEO turns the canonical URLs ON always. It has different types of features: – Page Analysis – Search Engine Optimization – XML Sitemaps – Meta & Link Elements […]

Categories
SEO

Leverage browser caching

Leverage browser caching is a process when webmaster has instructed the browsers how their resources should be dealt with. Basically, browser caching stores webpage resource files on your local computer when any user visits a webpage. When any webpage displays on a web browser then there are so many things to load i.e. logo, css […]

Categories
jQuery

Difference between event.preventDefault() and return false

preventDefault() prevents the default event from occuring, stopPropagation() prevents the event from bubbling up and return false does the both. Example of preventDefault() and return false: $(‘a’).click(function() { return false; }); $(‘a’).click(function(e) { e.preventDefault(); }); So finally, return false from within a jQuery event handler is effectively same as calling both e.preventDefault and e.stopPropagation on […]

Categories
jQuery

How to check checkbox with jQuery?

The correct way to check checkbox on the DOM elements can be done using jQuery .prop or .attr method. By using JavaScript’s “checked” property, we can solve the problem directly, instead of manipulating the DOM into doing what we want it to do. To check checkbox see the below script: After jQuery version 1.6 you […]