Wednesday, April 4, 2012

Galleria - JavaScript image gallery framework


Galleria is a JavaScript image gallery framework built on top of the jQuery library. The aim is to simplify the process of creating professional image galleries for the web and mobile devices.

Free without restrictions
Galleria and the “classic” theme is open source and released under the MIT license with basically no restrictions whatsoever.

No programming skills required

Just copy/paste a few lines of code, add some photos and pop a fully featured gallery in your browser.

Flickr & Picasa ready

Pull galleries and sets from Flickr or Picasa into a Galleria gallery with just one line of code.

Scaling & thumbnails on the fly

Galleria uses canvas and other techniques to create thumbnails and scale images on the fly, great when trying different sizes and themes without opening photoshop.

iPhone, iPad & touch support

Galleria supports swipe movements and uses hardware optimized animations for ultra-smooth image browsing on mobile and touch devices.

One core, multiple themes

Galleria exposes a great set of tools to create tailored themes for your project. Or you can browse through our Premium themes and see if something fits.



Source: http://galleria.io/

Thursday, March 29, 2012

30 Amazing jQuery Tables

Most of the developers today use div instead of table to display data on web pages to offer more a flexible and customisable look and feel. That’s why we’re here to give you all of the best jQuery html table plugins for you to use to display, manage and sort your data with minimal effort. Enjoy!
Related posts:

1. DataTables

This is a powerful jQuery table plugin that has a lot of features.
jQuery-DataTables.jpg
Source

2. uiTableFilter

Filter table rows using this wonderful jQuery plugin.
jQuery-uiTableFilter.jpg
Source

3. Tablesorter

Turn a standard HTML table using thead and tbody tags into a sortable table without refreshing a page.
jQuery-Tablesorter.jpg
Source

Source Link: http://www.jquery4u.com/plugins/30-amazing-jquery-tables/

Wednesday, March 21, 2012

JavaScript Modal Windows – TinyBox2


JavaScript Modal Windows
This update to the TinyBox modal box script brings a ton of new features and still clocks in under 5KB. The script now supports iframes and images natively. You can POST with Ajax. Clicking ESC will close the window. Callback functions can be passed for load and close events. You can set CSS IDs to override the default styling. CSS position can be toggled between fixed and absolute. The mask opacity can be sent. You have full control over window location. And of course there is now a close button out of the box you can toggle.
The script is now executed by passing an object due to the large number of options. There is nothing to initialize, just call the function on whatever mouse or browser event you like. A sample call would look like the following:
1
TINY.box.show({url:'advanced.html',width:300,height:150})
Parameters include (tag – description (type) – default):
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
html - HTML content for window (string) - false
iframe - URL for embedded iframe (string) - false
url - path for AJAX call (string) - false
post - post variable string, used in conjunction with url (string) - false
image - image path (string) - false
width - preset width (int) - false
height - preset height (int) - false
animate - toggle animation (bool) - true
close - toggle close button (bool) - true
openjs - generic function executed on open (string) - null
closejs - generic function executed on close (string) - null
autohide - number of seconds to wait until auto-hiding (int) - false
boxid - ID of box div for style overriding purposes (string) - ''
maskid - ID of mask div for style overriding purposes (string) - ''
fixed - toggle fixed position vs static (bool) - true
opacity - set the opacity of the mask from 0-100 (int) - 70
mask - toggle mask display (bool) - true
top - absolute pixels from top (int) - null
left - absolute pixels from left (int) - null
topsplit - 1/x where x is the denominator in the split from the top (int) - 2
Nearly all of the parameters above are optional. Of course you must include either the html, iframe, url, or image parameters as they drive the content. Height and width are option and will be calculated based on offsetWidth and offsetHeight in the case of HTML or Ajax content else by actual width and height with images. Iframe calls must include a height and width. By default the box will animate in the center of the screen in a fixed position.


Source link: http://www.scriptiny.com/2011/03/javascript-modal-windows/

Monday, January 23, 2012

KoolPHPSuite Version 62 released on


KoolPHPSuite KoolPHPSuite Version 62 released on 01/14/2012

KoolPHPSuite contains a group of great UI controls to build Excellent Web 2.0 Application: Ajax FrameWork, TreeView, SlideMenu, AutoComplete and many more... View and Download NOW!

Sunday, December 18, 2011

How to get Latitude/Longitude from an address (or Geocoding ) using PHP

$geocode=file_get_contents('http://maps.google.com/maps/api/geocode/json?address=573/1,+Jangli+Maharaj+Road,+Deccan+Gymkhana,+Pune,+Maharashtra,+India&sensor=false');

$output= json_decode($geocode);

$lat = $output->results[0]->geometry->location->lat;
$long = $output->results[0]->geometry->location->lng;
 
Source: http://amiworks.co.in/talk/how-to-get-latitudelongitude-from-an-address-or-geocoding-using-php/ 

Tuesday, September 20, 2011

HTML 5 Geolocation with Safari on the iPhone 3.0 OS, Firefox 3.5 and Chrome


HTML 5 Geolocation 

Your address: Nehru Park Rd, Indore, Madhya Pradesh, India
This is a quick demonstration of the proposed HTML 5 standard for a Geolocation API.
If your browser does not support geolocation, but you do have a GPS unit in your browsing device, you can try the newest version of Firefox or a geolocation addon for older versions of Firefox. Both will fallback on other options for geolocation (IP address, WiFi networks in your area) if you do not have a GPS device installed. Google Chrome is also an HTML 5 geolocation aware browser.
The first step is to retrieve the Javascript object with 'navigator.geolocation':
if (navigator.geolocation) 
{
 navigator.geolocation.getCurrentPosition( 
 
  function (position) {  
 
  // Did we get the position correctly?
  // alert (position.coords.latitude);
 
  // To see everything available in the position.coords array:
  // for (key in position.coords) {alert(key)}
 
  mapServiceProvider(position.coords.latitude,position.coords.longitude);
 
  }, 
  // next function is the error callback
  function (error)
  {
   switch(error.code) 
   {
    case error.TIMEOUT:
     alert ('Timeout');
     break;
    case error.POSITION_UNAVAILABLE:
     alert ('Position unavailable');
     break;
    case error.PERMISSION_DENIED:
     alert ('Permission denied');
     break;
    case error.UNKNOWN_ERROR:
     alert ('Unknown error');
     break;
   }
  }
  );
 }
}
else // finish the error checking if the client is not compliant with the spec
Next, I've abstracted the mapping function so we can easily change providers if necessary:
function mapServiceProvider(latitude,longitude)
{
 // querystring function from prettycode.org: 
 // http://prettycode.org/2009/04/21/javascript-query-string/
 
 if (window.location.querystring['serviceProvider']=='Yahoo')
 {
  mapThisYahoo(latitude,longitude);
 }
 else
 {
  mapThisGoogle(latitude,longitude);
 }
}
Finally, send the coordinates to the mapping system, plot the client's location, and reverse geocode the longitude and latitude to give us back a human readable address:
// be sure to include the script to initialize Google or Yahoo! Maps
 
function mapThisGoogle(latitude,longitude)
{
 var mapCenter = new GLatLng(latitude,longitude);
 map = new GMap2(document.getElementById("map"));
 map.setCenter(mapCenter, 15);
 map.addOverlay(new GMarker(mapCenter));
 
 // Start up a new reverse geocoder for addresses?
 geocoder = new GClientGeocoder();
 geocoder.getLocations(latitude+','+longitude, addAddressToMap);
}
I believe this HTML 5 geolocation demo fixes a few minor glitches in the previous one at maxheapsize. Rather than feeding it through an input text box, like on maxheapsize, I've found it more reliable to send the coords in directly to the Google Geocoder. You'll find on the maxheapsize example that if you refresh the page on your iPhone, the locating function will fail. Not so with this example here.
I also think that adding a short (500 ms) delay to the map initialization gives more accurate geolocation results on the iPhone with Safari, but I may be mistaken.

source link:
http://merged.ca/iphone/html5-geolocation
http://blog.josemanuelperez.es/2010/07/google-maps-geolocation-directions-specific-destination/