Programming Facts
Set Background image with jQuery
As you know we can set the tag’s attributes using jQuery. It can be dynamically change by using jQuery(calling it at some events.(for e.g. onClick, onFocus etc)). If you are looking to set the background image property in div using jQuery than have a look at below jQuery code.
Disable submit button with jQuery
Form submission is one of the most frequently used actions in developing web application. If form submit two times than it will create lots of problems so you must take care about submitting form. One of the way is to restrict user by disabling the submit button using jQuery once form submit.
Add extra fields in joomla registration page
Are you looking for adding extra fields in Joomla registration page ? Yesterday i was working with Joomla and wanted to add extra fields in registration page. For this i need to change the core file and that is the last solution as client needs to add two extra fields in registration page at any cost. Here i am showing you the step by step way to add an extra field in Joomla Registration page.
Joomla 1.6 Beta is Released
Joomla is one of the most powerful open source content management systems of PHP. It gains so much popularity all over the world. Joomla come up with new release of version which is Joomla 1.6. Previous release of Joomla was Joomla 1.5 which had many improvements over Joomla 1.0 but in Joomla 1.6 have lots of new feature which are very important. All below features put Joomla in row with other Open source like Wordpress and drupal.
Remove or Disable Trash feature in WordPress 2.9
Are you looking to Remove Trash feature in wordpress 2.9 ? In Wordpress 2.9, you can see new feature which allows you to Trash a post instead of deleting it. In previous version of wordpress, it was Delete instead of Trash. Once you Trash the post, you have delete the post manually. This Trash feature will make your database larger.
Delete WP Super Cache plugin(WordPress) manually
Are you facing problem while uninstalling/deleting WP Super Cache plugin in wordpress ? Today i faced a problem when i was trying to delete a WP Super cache plugin in wordpress. So i prefer to delete WP Super cache plugin manually. You must delete all related data of plugin instead of just deleting WP Super Cache plugin folder from plugins directory in wordpress.
Javascript floating point precision(Sets the number of decimal points)
If you have a problem with floating point precision when you update any number in html using javascript/jquery than here i show you the way how to get number formatted with decimals (set 2 digits after decimal point in float number) from javascript. In PHP, you can simply use number_format() function and pass the parameter as you want for floating point precision(Sets the number of decimal points).
Facts of CakePHP : Famous Open Source PHP Framework
CakePHP is one of the famous open source web application framework(PHP Framework) that provides an extensible architecture for developing, maintaining, and deploying applications. In 2005,Larry Masters started CakePHP when Ruby on Rails was gaining popularity as a framework on Ruby Programming language. CakePHP was developed using some useful concept of Ruby On Rails.
How to get number of days between two dates using MySQL
While developing web application , in many many places we face the problem where we can use only MYSQL and get the number of number of days between two given dates using MySQL.
recaptcha
/** —————————————- /** Do we require captcha? /** —————————————-*/ require_once(‘system/extensions/recaptcha/recaptchalib.php‘); $privatekey = “6LcHGwgAAAAAAIIK_FRd9gJw-OYsPxteUFgNysAp”; $resp = recaptcha_check_answer ($privatekey, $_SERVER["REMOTE_ADDR"], $_POST["recaptcha_challenge_field"], $_POST["recaptcha_response_field"]); if (!$resp->is_valid) { return $OUT->show_user_error(‘submission’, $LANG->line(‘captcha_incorrect’)); } /*if ( $this->_param(‘require_captcha’) AND $this->_param(‘require_captcha’) == ‘yes’) { if ($PREFS->ini(‘captcha_require_members’) == ‘y’ || ($PREFS->ini(‘captcha_require_members’) == ‘n’ AND $SESS->userdata(‘member_id’) == 0)) { if ( ! isset($_POST['captcha']) || $_POST['captcha'] == [...]

I am