Blogroll

Tuesday, December 27, 2011

How to speed up your website ?

Minimize HTTP Requests

tag: content
80% of the end-user response time is spent on the front-end. Most of this time is tied up in downloading all the components in the page: images, stylesheets, scripts, Flash, etc. Reducing the number of components in turn reduces the number of HTTP requests required to render the page. This is the key to faster pages.
Friday, December 23, 2011

Detect load image when change image source

It's useful when you change image source such as photo slider, when you click thumbnail image, you can show the larger image.

Tuesday, December 20, 2011

Create multi background by css3

CSS3 allows web designers to specify multiple background images for box elements, using nothing more than a simple comma-separated list.
Tuesday, December 13, 2011

Detect ajax and render other view in zend

$request = $this->getRequest();
if ($request->isXmlHttpRequest()){
                  $this->_helper->layout()->disableLayout();
                    $this->_helper->viewRenderer('evencalendarajax');
                    //this->_helper->getHelper('viewRenderer')->setNoRender();
                }
1. get all request
 2. check request is ajax request.
3.Disable layout
4. Call another view if you want.
5. Disable view if you don't use view.
Thursday, November 17, 2011

Create custom router url

to create friendly url to must using custom router . This code is really useful for mvc framework like zend, codeignitor,.. This is the code:
Tuesday, November 8, 2011

Write breadcrums function

This function is really simple.

Show Related Post in WordPress Without a Plugin

Related posts is a very popular feature. My default wordpress installation often includes a plugin that has this functionality. There are quite a few plugins that lets you have this feature