Tuesday 15 January 2013

Adding a Jquery DateTime picker to your application


Adding a DateTime picker for date fields is an important requirement for developing web applications nowadays. A lot of jquery plugins are available for this. One of the most popular and easy script is here at http://trentrichardson.com/examples/timepicker/

Complete documentation, demos, formatting options etc are also given in the above URL.

A lot of customization options are available for this plugin and yes, the integration is very easy which we can finish within 5 minutes.

Hope this will be a great help for web developers!

Convert string to datetime PHP


You can convert this by using the function strtotime(). Here is the method.

<?PHP
 
$time = strtotime('10/16/2003 18:16'); 
 
$newformat = date('Y-m-d G:i:s',$time); 
 
echo $newformat; 
 
?>

Hope this helps !

Wednesday 2 January 2013

Fadein-Fadeout Effect to the Jcarousel.Elements


Integrating fadein and fadeout effect to the elements on both sides of a jcarousel auto scroller is not so much difficult. You can use the callback functions from http://sorgalla.com/projects/jcarousel/ for this.

Here we have added two callback functions itemFirstInCallback and itemLastInCallback for this purpose.

Please see the demo here.



Hope this helps !