Monday, 9 December 2013

Meta Tags and its importances


What is Meta Tags and Use of Meta Elements Meta Tags or Meta Elements are the HTML or XHTML elements used to provide structured meta data about the web page. It may contain the page description, keywords or about robot etc.. This meta tags plays a major role in Search Engine Optimization (SEO). it place between the <head> and </head> tag.


Saturday, 7 December 2013

Using PHP Generate Excel Report From Database


When developing a website that uses a database, quite often there would be a requirement to store dynamic data in a table, whether that be contact form entries, activity logs, or even lists of registered users.


While that data can be easily extracted directly from the database using database software, you may need to export that data using a web application. The following code is some useful PHP that can be used to take all data from a MySQL table and export them in a Excel format, that can be downloaded by the user as a Excel sheet.

Friday, 6 December 2013

Disable back button of your browser using javascript(Cross browser compatible)


It is an interesting browser hack and which uses hash values to prevent the default functionality of browser back button.But it and can be very annoying to use in your website and may be your user can dump your website . So please don't use that until if you have a really valid reason for it.

just at the top of your script .It set the hash value to 'no-back-button' at the time of page load.
window.location.hash="no-back-button"; 

Wednesday, 4 December 2013

Ubuntu 12.04 can’t connect to the internet


It seems this is a common problem with an easy fix.
sudo apt-get remove --purge resolvconf
After that Restart your Networ, Using following command.
sudo /etc/init.d/networking restart
OR
sudo service network-manager restart

Friday, 22 November 2013

Where Should The Google Analytics Tracking Code to Be Placed?


The Analytics snippet is a small piece of JavaScript code that you paste into your pages. It activates Google Analytics tracking by inserting ga.js into the page. To use this on your pages, copy the code snippet below, replacing UA-XXXXX-X with your web property ID. copy and paste the code into the body of the page, right before the closing </body> tag

Wednesday, 20 November 2013

How to block Inappropriate words with javascript validation


This post about how to block Inappropriate/bad words content with java script validation.
Its a simple and easy to implement program hope you enjoy it.



Tuesday, 19 November 2013

Foreach equivalent in javascript


foreach function in PHP is very nice and easy to use,I am explain about equivalent function in javascritpt
<script language="javascript" type="text/javascript">
var new_array = new Array('knowledge','corner','srinu','chilukuri');
for (var key in new_array)
{     alert(new_array[key]); } </script>