Friday, October 16, 2009

Remove empty elements from array

To remove empty elements from array

foreach($array as $key => $value) {
if($value == "") {
unset($array[$key]);
}
}
$new_array = array_values($array);

Thanks
Jawed

Friday, October 9, 2009

8 Ajax Lightbox Scripts

Hi,

At the blow link you can find 8 Ajax Light Box scripts....... ENJOY

http://webtecker.com/2008/02/26/8-ajax-lightbox-scripts/


Thanks
Jawed

Light box that also show google map in it

The below url deals with a light box that opens a google map in it.

http://www.bitethebullet.co.uk/ModalGoogleMaps/tabid/88/Default.aspx

Thanks
Jawed

Thursday, August 27, 2009

The text to be printed is contained in a div



The id of the div is passed to the function.

Click to print div 1

On clicking the link the following sequence of events happens.

1. A new window is opened
2. The contents of the div are dynamically written to the new window
3. Data is sent to the printer
4. The new window is automatically closed (IE only)

Other areas of a page can be printed simply by defining another div and link



Click to print div 2


start the javascrpt tab


close the javascrpt tab

Tuesday, August 25, 2009

Resources Libraries Helpers Plugins For Code Igniter

Here you will find a lots of libraries,helpers plugins for CI


http://codeigniter.com/wiki/Summary_of_Resources_Libraries_Helpers_Plugins.../


Thanks
Jawed