YouTube Video Information Using YouTube API

YouTube Video Information Using YouTube API

If you want to embed YouTube videos or want to add your video gallery then you can use YouTube API v2 to get all necessary information about the video like video title, description, category, thumbnail and others. In this post I am going to show you how to get YouTube video information using YouTube api. To get the YouTube video information in JSON format we will use CURL and pass …

Continue reading

Regular Expression With jQuery Validation

Regular Expression With jQuery Validation

Regular expression offers an extremely flexible and powerful way of validation for website forms. Regular Expression with jQuery validation ensure you that provided user data is as per our requirements. In this tutorial I am describing some example Regular Expression with jQuery Validation. Regular Expression for Email: To validate the email address I have created a function based on standard regular expression which returns true or false. You just need …

Continue reading

How To Use Progress Dialog Box In Android

How To Use Progress Dialog Box In Android

Progress dialog box is mostly used component in all User Interfaces, when you want to display the progress of a task that is taking up some time. In this tutorial I am explaining how to show Progress Dialog Box in android to let the user know the progress. In this example we will use Thread to process the task in background and after completion of the task progress dialog will …

Continue reading

Android JSON Parsing From URL

Android JSON Parsing From URL

JSON is one of the best method to provide data in android from web application. So I am discussing here how to parse a JSON response from a URL and use it, in this tutorial Android JSON Parsing From URL. JSON data has square and curly brackets which denotes JSON array and JSON object simultaneously. Creating Project: Create a new project in Eclipse IDE as “Read JSON from URL” with …

Continue reading

Generate and Implement Simple Captcha Code In PHP

Generate and Implement Simple Captcha Code In PHP

To avoid automatic form submission some kind of verification should be used. CAPTCHA code submission is a best way to stop spammers. A CAPTCHA has a challenge-response test used in web form to ensure that the response is generated by a human being. In this article you will learn how to generate and implement simple captcha code in php. Most widely used captcha for verification of human being is image …

Continue reading

Calculate The Difference Between Two Dates In PHP

Calculate The Difference Between Two Dates In PHP

Sometimes It is often handy to have a proper method to get number of days and number of months between two dates. In this article, I am discussing how to calculate the difference between two dates in PHP. Calculate months between two dates: For PHP >=5.3 you can use DateTime diff that returns a DateInterval object as below. If you don’t have PHP 5.3 or higher, you can use strtotime() …

Continue reading

Upload Image with jQuery Ajax

Upload Image with jQuery Ajax

Image upload without refreshing the page is commonly used by websites. So today I am going to show you how it is easy to implement upload image with jQuery AJAX. On a single click you will be able select file from the popup window and on select the image will upload and you will see the image on the same page. I have used a jQuery plugin AjaxUpload, PHP file …

Continue reading

Pure JavaScript Functions for Validation

JavaScript Functions for Validation

In this article I am going to cover some JavaScript functions which are written in pure JavaScript. These function are used for validate the user’s input at client side. These are ready to use functions, so you can use them and save your time also you can modify these for your purpose. 1. To Get Only Numbers From User This function is very useful to get only numbers from the …

Continue reading