checking and unchecking multiple checkbox using jquery on datagrid

If you are working with any form or datagrid on which you want to list/display a set of data. Then may be sometimes you need to use multiple checkbox checking and unchecking features with a single checkbox check and uncheck in a form.

You can do it easily with jQuery in 2 steps…
Step1: Give a class name for the checkbox which you want to use as parent of all.


Step2: Write this single line of code on javascript for above added classname.

$('.dcFormCheckboxTh').click(function () {
    $(this).parents('table:eq(0)').find(':checkbox').attr('checked', this.checked);
});

virtuemart add to cart popup style sheet

On virtuemart shopping cart joomla component add to cart popup normally used to show virtuemart system error, info, warning, tips etc message.
This popup is build by javascript code in components/com_virtuemart/js/mootools/mooPrompt.js file.
The generated html code looks as below

Notice

Info: The product quantity has been updated.

To modify it’s stylesheet you can useContinue reading “virtuemart add to cart popup style sheet”

article title to url slug with cakephp

If you are using cakephp framework for your web application development. Sometimes you need to create SEO friendly url slug from your article / post / page / news etc title.

If a article title is “Article title to url slug with cakephp” then your SEO friendly url slug supposed to be “article-title-to-url-slug-with-cakephp”

To create this kinds of url slug from a string you can use cakephp core utility class Inflector, The Inflector takes a string and manipulate it to handle some common words variations.

To make slug from string using Inflector you can use below written code in your controller:


For your multiple use you can create a common method on your application controller like
Continue reading “article title to url slug with cakephp”

dropnwish, a facebook wishlist application

If you have a list of wishes which you want to share with your friends or other facebook user then you are quietly invited on dropnwish facebook application to use it. This application is very easy to use for it’s nice usability. Using this application you can browse all of your friends and other facebook users wishes who are on dropnwish and you can find what kinds a wish would be from different peoples wishes.

it’s developed under dropnot limited recently by me. currently it’s on version 1.0 beta with listing add/edit/delete management, listing sharing on facebook, listing discussion, facebook like management etc. within next few day there will be another version with some cool features also. so keep in touch!
Continue reading “dropnwish, a facebook wishlist application”

using google web fonts

Recently google started a new web font service with a list of nice fonts. There are a lots of opensource fonts on google own server which all you can use on your website. It’s pretty simple to use and works on most web browsers. Here you can see how to use those fonts for your website.

To see the list of font visit on http://code.google.com/webfonts

There are all resources with list of fonts, how to use, web fonts api documentations etc

Basic use of google font api (2 steps) –

Step1: On html page head add a stylesheet link to request the desired web font(s)


Step2: Set font family with the requested web font, either in a stylesheet or inline style on the element itself


CSS selector {
	font-family: 'Font Name', serif;
}

Or

Your text

More use of google font api –
If you want to use multiple web font you need to request multiple font families, separate the names with a pipe character (|) on stylesheet link url.
Continue reading “using google web fonts”

page scraping on php

if you are looking for page scraping help on php you can use below mentioned 2 function to fetch a web page then parse it as you wish. It’s using php curl extension and some string processing functions. Before start using it you need to enable the php_curl extension first then follow the below steps.

Getting a full webpage content:


Parsing a page html content:

<?php
$subHtmlContent =  getValueByTagName($pageHtmlContent, '
', '
'); ?>

Then you can now process the rest of content as you need. Above mentioned getPage and getValueByTagName functions are defined below you need to include them on you php page to use it.
Continue reading “page scraping on php”

installing ImageMagick on windows with wamp

After wamp installation on windows ImageMagick extension is not installed by default. Installing ImageMagick on windows with wamp is quite simple like other extension installation.

To install ImageMagick on windows follow below listed 7 steps

Step 1: go to http://www.imagemagick.org/script/binary-releases.php#windows and download latest version of imagemagick windows-dll.exe

Step 2: download php_imagick.dll from http://www.dlldll.com/php_imagick.dll_download.html

Step 3: install imagemagick(*.*.*)windows-dll.exe

Step 4: copy php_imagick.dll to (*)wampbinphpphp5.2.5ext directory
Continue reading “installing ImageMagick on windows with wamp”

codeigniter framework for web apps development

There are a couple of web application development open source php framework. For example Cakephp, Codeigniter, Zend, Symfony, Kohana, Prado etc also you can visit http://www.webdesignbooth.com/22-open-source-php-frameworks-to-shorten-your-development-time/ for others. To develop a MVC structured well organized LAMP based application which open source framework you will choose? Which one is lightweight, less time required, secured, rich community and well documented?
Recently I wrote a post on forrst.com to know what frameworks are most favorites to developers world wide. The post link is http://bit.ly/dozgrH you can take a review. It seems most of the web developers like codeigniter as standard framework. Yes it’s me also :0 But last 1 years I was using cakephp in fact for dropndot cms which are currently under development on dropndot are using cakephp also. Before moving on development based on any framework I thought Codeigniter is for small application and very easy to use and not much rich community like Cakephp. That was the only reason to use it.
Continue reading “codeigniter framework for web apps development”

tour to india-gulabari comilla border

Hope you all had a great holiday weekend on last Eid Ul-fitr Sept-2010. I had also some nice time on that eid vacation. After my company dropndot startup It was my second tour on outside of this busy city Dhaka. I am currently same where as office and home in Dhaka because it’s my office as well as home, Office time from 10:00AM to 10:00PM and relaxing time 10:00PM to 10:00AM both you can call in office or home 🙂

Last ¾ months I was too much busy on work So that feeling needs on some peaceful relaxing tour to my home town Comilla, study town Sylhet or anywhere which are supposed as tour location on Bangladesh.Continue reading “tour to india-gulabari comilla border”

mySql Type Casting

Some times in SQL query you need to change the data type of table field with keeping the table structure as it is. Some thing like Integer to string, string to integer, string to date etc…. This type of data type conversion is known as data type casting. For this operation in SQL you can use mysql CAST function.
The CAST() function takes a value of one type and produce a value of another type.
What is Type Custing?
Converting an expression of a given type into another type is known as typecasting.
Continue reading “mySql Type Casting”