Sometimes we need to check which version of flash player a user has for something. For Example for a music website, I need to know the version of the flash player installed on the browser of the user to check whether flash song player will work on this browser or not. So to confirm this I have used a function getFlashVersion() to get Flash Player Version with JavaScript. The function …
How to Use Cookies in JavaScript
The HTTP protocol, which uses by Web Browser and Server to communicate, is a stateless protocol, means once the server send a response to a browser of the request, it doesn’t remember a thing about it. To solve this problem cookies were invented. There are other ways also to solve this but cookies are easy to use and very versatile. So in this article I will explain how to use …
jQuery Datepicker with Simple Example
jQuery Date-picker most commonly used date-picker today in web applications. In this article I am explaining how to use jQuery Datepicker and it’s utility function with simple example. For example we need to save an event which has two dates `from` and `to`. So we need two date-picker fields and on the selection of `from` date, we need to disable all before dates in the `to` date-picker UI. So we …
List of Some important javascript functions
JavaScript is a lightweight, interpreted programming language with object-oriented capabilities that allows you to build interactivity into otherwise static HTML pages. We all know that today jQuery and Prototype are mostly uses JavaScript library. But we should know about standard JavaScript functions, So here I am listing some important JavaScript functions with their uses. split() : string.split(separator,limit); The split() method splits a string into an array of sub-strings and returns …
How to Resize Image in PHP
Almost every website uses thumbnail or resized images with content in form of featured image. Every website showing thumbnails in product gallery, portfolio, featured section, etc. So I have created a function to resize image in php. With this you can resize images easily using PHP and the GD library. If you’re looking for the same to resize uploaded images you can try it. In this article I will show …
How to Validate RSS Feed in PHP
RSS is now greate source of announcing new content of a Web site. RSS feeds are in XML format, but these feeds need to build with RSS specifications, so they can be executed well when any programs and sites that syndicate the feeds. We can there are some online tools to validate RSS feed like feedvalidator.org, validator.w3.org/feed/, rssboard.org/rss-validator/ etc, these tools checks if feed compliant with different version of RSS …
How to Create QR Code with Google API and PHP
QR code stands for Quick Response code. It is a two dimensional code designed to capture all the information using a Smart Phone. It is a type of matrix bar-code. They are also known as hardlinks or physical world hyperlinks. This code can be used to encode any information such as text, URL, Telephone numbers, Addresses and any other data. Here I will discuss how to create QR code with …
How to Send Email in PHP
Email is the most popular Internet service nowadays. Every day plenty of mail are sent. In this article I am explaining how to send email in php. Every web application used the email feature as in signup response, monthly newsletter etc. Sometimes email contains a plain text, HTML body and file attachments. I will explain each with a simple example. Plain Text Email: PHP has mail() function to send an …