Monthly Archives: April 2011

Use custom domain with blogger

If you want to use your own custom domain for

In your domain control panel

1. Update CNAME record ->

*also applicable for any other subdomains

2. Update A records (for naked domain. i.e. – without the www in front)

In your blogger setting

Settings -> Publishing -> Custom Domain -> Switch to advanced settings

Enter your domain name and the word verification then “Save Setting”

Refer here for google guide

Export as .csv with jQuery

This is so simple and very useful for reporting purpose. You can easily export your html table to .csv format with this jquery scripts.

Step 1: Html File

<form action="getCSV.php" method="post">
<input id="csv_text" name="csv_text" type="hidden" />
<input onclick="getCSVData()" type="submit" value="Get CSV File" />
<script type="text/javascript"><!--mce:0--></script>

Step 2: PHP File ( getCSV.php )

header("Content-type: application/octet-stream");
header("Content-Disposition: attachment; filename=\"my-data.csv\"");
echo $data;

Thanks to the code writer