0XHvn

display preview of an image without uploading to the server using javascript

All of us might be tried to load preview of an image which is to be uploaded to the server. Previously we can’t do this without uploading that particular file to the server. Now the latest versions of most of the browsers supports FILEREADER Web API. Using this we can display the preview of an image file without uploading to the server, using Javascript. The Javascript code given below:

 

Read More

php_cookies

Clear all cookies – PHP

How to clear all cookies existing under a domain using PHP?. Please refer the code given below:

 

Read More

office_viewer

View Office Documents in browser itself

Do you have Office documents online that you want your site viewers to view even if they don’t have Office installed?

Microsoft introduced a best solution for this. Using their Office Web Viewer we can view Microsoft office documents in browser itself. Use the below URL to do this,

http://view.officeapps.live.com/op/view.aspx?src=<PATH TO YOUR ONLINE DOCUMENTS>

For more info, please refer http://blogs.office.com/2013/04/10/office-web-viewer-view-office-documents-in-a-browser/

 

Read More

get_file_size

Get size of a File when we selected to upload using Javascript

A simple method to get the size of the file selected which is to be uploaded, using JavaScript.

 

Read More

credit card validation using regular expression

Regular Expressions for Credit Card Validation – Javascript and PHP

Hi,

Regular expressions for validating all types of credit card numbers.

 

 

Read More