This blog is my memo for collecting IT stuffs. And some my free softwares.Please use facebook to leave comments.

How to scroll to the position of object by jquery

Get the position of object that you want to move to using offset().top, and change scrollTop of body using animate() function.

var divOffset = $('#hogeContainer').offset().top;
$('body').animate({scrollTop: divOffset + 'px'}, 1000);

To run Wordpress with SQLite

In order to run Wordpress on my low spec VPS, I needed to find out a way to run it without MySQL so I try to install PDO plug in to Wordpress.

It is very easy step to set up since there is a plug in to make it come true. Personally it is not nice to have MySQL daemon running for just Blog used for personal web page or even corporate site. Besides SQLite is faster.


More...

Do trim in Javascript

Javascript doesn't have trim function. but you can use replace() function instead in a way something like this.

target = target.replace(/(^\s+)|(\s+$)/g, "");
Page: 1 |
todo
facebook support
Page transaction
RSS feed
Search
Auth
Last update
Category
Multi-language
User
Open source
Environment
php-5.1.6 with PDO
SQLite-3.3
IE6
FireFox-1.5
RSS
Unauthorized

Search
Google