Accessing email content using NetPop3

July 19th, 2010 | Php

NetPop3 is a class to allow access to POP3 servers. It supports all POP3 commands including UIDL listings and APOP authentication.

Download the package first at http://pear.php.net/package/Net_POP3/download

Create a php file and include the NetPop3 at the beginning of the file

include 'POP3.php';

Read more…

What is the noscript tag?

June 5th, 2010 | Javascript

The noscript tag allows browsers without javascript support to show an alternative html content. To use, insert the noscript tag inside the body of the document.

<body>
<script type="text/javascript">
document.write('Javascript is enabled.');
</script>
<noscript>
Javascript is not enabled.
</noscript>
</body>

Force Quit an Application in Mac OS X

June 4th, 2010 | Mac

Any unsaved application data will not be saved once an application was forced to quit. Do it only if necessary.

When to force quit an application? Only when its unresponsive and cannot be quit in a usual manner.

Read more…

Scrolling to the Top and Bottom of the page using Mootools

June 4th, 2010 | Mootools

Scrolling to the top and bottom is very easy in mootools. Check out the code below.

window.addEvent('domready', function(){

	var myFx = new Fx.Scroll(window);

	$('bottom').addEvent('click', function(e){
		e.stop();
		myFx.toBottom();
	});

	$('top').addEvent('click', function(e){
		e.stop();
		myFx.toTop();
	});

});

Lines 5-8 lets you scroll to the bottom of the page. While lines 10-13 lets you scroll to the top of the page. Easy huh?

Note: Fx.Scroll plugin must be included. Get it at Mootools More Builder.

Check out the demo

Fx.slide using Mootools and CakePhp

June 1st, 2010 | Mootools Comments Off

Using Fx.slide in Cakephp is very easy. In this tutorial, I assume you know how the MVC works and how to create one.

First, include the javascript in the head section of the default.ctp file. There are only two javascript files. They are the mootools.js( core ) and slider.js. Put these files inside /app/webroot/js.

Read more…