Some PHP Tips There are lot of things which you should follow when working with PHP.In this article ,I am going to look into some useful tips and techniques that can be used to improve and optimize your PHP code. These PHP tips will help you to write a more structured PHP script in less […]
Draw a circle with HTML5 Canvas
Draw a circle with HTML5 Canvas Description: To draw a circle with HTML5 Canvas, we can create a full arc using the arc() method by defining the starting angle as 0 and the ending angle as 2 * PI. Demo arc() The arc() method creates an arc/curve (used to create circles, or parts of circles). […]
Role of Gradle in Android Project
Gradle is an open source build automation system that builds upon the concepts of Apache And and Apache Maven and introduces a Groovy-based domain-specific language (DSL) instead of the XML form used by Apache Maven for declaring the project configuration. Gradle uses a directed acyclic graph (“DAG”) to determine the order in which tasks can be run. Gradle was designed […]
Get the size of an image using a PHP function
Get the size of an image using a PHP function PHP provides a function to get the width and height of an image. getimagesize() Get the size of an image. Description The getimagesize() function will determine the size of any supported given image file and return the dimensions along with the file type and a […]
Simple Load more content with jQuery
Simple Load more content with jQuery Have you come across any situation where you need to load more content clicking on a load more button. This feature comes in use at situation where you need to show more content in many news/content based websites and this feature helps loading content on clicking load more button. […]
20 Useful jQuery Methods Part -4
20 Useful jQuery Methods Part -4 16 replaceAll() Description: Replace each target element with the set of matched elements If you’d like to replace DOM elements with other ones, here’s how to do it. We can call replaceAll() on elements we’ve collected or created, passing in a selector for the elements we’d like to replace. […]
20 Useful jQuery Methods Part -3
20 Useful jQuery Methods Part -3 11. isArray() Description: Determine whether the argument is an array. $.isArray() returns a Boolean indicating whether the object is a JavaScript array (not an array-like object, such as a jQuery object). Finds out if the parameter is an array.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>jQuery.isArray demo</title> <script src="https://code.jquery.com/jquery-1.10.2.js"></script> </head> <body> Is [] an Array? <b></b> <script> $( "b" ).append( "" + $.isArray([]) ); </script> </body> </html> |
12 makeArray() Description: Convert an array-like object into a […]
20 Useful jQuery Methods Part -2
20 Useful jQuery Methods Part -2 6. delay() Description: Set a timer to delay execution of subsequent items in the queue. .delay() method allows us to delay the execution of functions that follow it in the queue. It can be used with the standard effects queue or with a custom queue. Only subsequent events in […]
20 Useful jQuery Methods Part -1
20 Useful jQuery Methods jQuery Event methods trigger or attach a function to an event handler for the selected elements. jQuery API jQuery is a fast, small, and feature-rich JavaScript library. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a […]
Enqueue a Script -WordPress
wp enqueue scripts WordPress has an enqueuing system for adding local/remote scripts along with styles to prevent conflicts with plug-ins. Since most users run WordPress with a theme and several plugins, developers are advised to use the correct method of loading scripts into WordPress. Descriptions wp_enqueue_scripts is the proper hook to use when enqueuing items […]