Archive for the ‘Tutorials’ Category
Sunday, February 19th, 2012
The vertical scroll position is the same as the number of pixels that are hidden from view above the scrollable area. If the scroll bar is at the very top or if the element is not scrollable, this number will be 0.
If you're using jQuery's scrobuying viagra ukllTop (usually ...
Posted in AJAX, How-to, Javascript, Jquery, Tutorials | No Comments »
Thursday, October 27th, 2011
If you want to validate if a checkbox is checked using jquery (javascript framework), here is the code snippet for the purpose.
We'll use :checked selector for the purpose.
Posted in Javascript, Jquery, Tutorials | No Comments »
Thursday, October 20th, 2011
Some time you may not want to keep a post published on your wordpress blog e.g. announcing some promotion, events etc. Instead of permanently deleting that post you may hide/expire that from your articles.
For the purpose you can replace the existing posts looping code with the following in your ...
Posted in Tutorials, Wordpress | No Comments »
Monday, October 17th, 2011
You may need to remove (strip) HTML from your data to get plain text, For the purpose PHP has a built-in function strip_tags(), Basic syntax is as below
Posted in PHP, Tutorials | No Comments »
Monday, August 22nd, 2011
If you want to sort arrays in PHP in ascending / descending order by array values, you may use the following code snippets.
First lets create an array;
$array = array("Red", "Green", "Blue", "Yellow", "White", "Black");
Now lets use PHP's built-in function sort() that will sort the array by values in ascending order.
Posted in Tutorials | No Comments »