Apple iPhone web page – change scale using Javascript

The Problem

I had a chance to develop a HTML5 animated web page targeted with Apple iPhone. The width of the page is 640px (iPhone4 screen size is 640px). We can set the scale and user scalable using meta tag with name viewport. But I had to set different scale for iPhone4 and iPhone3 (width 320px).
Continue reading

Posted in Javascript, Mobile, Tutorial | Tagged , , , , | 4 Comments

PHP – replace line in a file

The Task

Now I am working with drupal. For some reason I had a requirement to change some particular lines using the line numbers.
Say, I have a css file. Line number I need to change line number 2, 6 and 9. I made a script to do that. This is how this works… Continue reading

Posted in PHP, Tutorial | Tagged , , , , , | 1 Comment

2010 review – Pagination and anchor scroll are most wanted

The stats helper monkeys at mulled over how this blog did in 2010, and here’s a high level summary of its overall blog health:

Healthy blog!

The Blog-Health-o-Meter™ reads Wow.
Continue reading

Posted in Showcase | Tagged , | Leave a comment

PHP pagination class

About PHP Pagination class
This is a pagination class in PHP. This will be useful for pages showing table content from database page by page. Continue reading

Posted in PHP, Tutorial | Tagged , , , , , , , , | 10 Comments

Google Apps with Separate Hosting

The Problem

We can use Google email server with our own domain name using Google Apps standard edition totally free of cost. We can have upto 50 users for a domain. There are some instructions about changing the MX records to make this.
Continue reading

Posted in Google, Tutorial | Tagged , , | 5 Comments

Jquery – Ajax Link inside ajax loaded content problem


We know how to load a content via ajax very easily using jquery with $.ajax{} or load(). But there is a problem of handling the events inside that dynamically loaded content.
Continue reading

Posted in Ajax, Jquery, Tutorial | Tagged , , , | 17 Comments