Thursday, 13 June 2013

HTML 5 form input types

http://sixrevisions.com/html5/new-html5-form-input-types/

Advantage of using HTML 5 form input types is that it is cross-platform enabled with mobile devices.
The mobile keyboard will change according to what input type it is.

HTML 5 input types:

Input TypeDescriptionHTML Markup
dateA control for entering the date.<input type="date">
datetimeDate and time using UTC date and time format<input type="datetime">
datetime-localDate and time according to your local time<input type="datetime-local">
monthMonth and year<input type="month">
timeThe time of day<input type="time">
weekAllows you to pick the week and year.<input type="week">
colorAllows you to enter asimple color value (which is in hexadecimal color notation)<input type="color"">
emailValidates the input using the standard email format<input type="email">
telGives you the ability to validate telephone numbers format against a pattern<input type="tel">
searchSearches a data set (like a <datalist> HTML element)<input type="search">
rangeA slider control for picking a number in between two numbers<input type="range">
numberAccepts numbers only<input type="number">
urlAccepts URLs only<input type="url">

Cheers.

Thursday, 6 June 2013

5 HTML5 Javascript APIs to keep an eye on

http://daker.me/2013/06/5-html5-javascript-apis-to-keep-an-eye-on.html


  1. Battery Status API (very cool!)
  2. Gamepad API (insanely cool!)
  3. Device Orientation API
  4. Geolocation API
  5. Page Visibility API
See examples in the above link.

Text-align: Justify and Responsive Web Design

http://www.barrelny.com/blog/text-align-justify-and-rwd/

Display stuff in grid dynamically (by changing the width of elements, the grid automatically changes) - without floats and calculation.

Thursday, 30 May 2013

5 HTML5 Features you need to know

5 HTML5 Features you need to know
http://daker.me/2013/05/5-html5-features-you-need-to-know.html


  1. DNS Prefetching
  2. Link Prefetching
  3. Download Attribute
  4. Regular Expressions
  5. Datalist Element

Friday, 12 April 2013

Liferay custom theme settings


Adding theme settings per page level (alternative to expandos)
http://www.liferay.com/web/raymond.auge/blog/-/blogs/theme-settings-and-new-advanced-controls

Note:
Need to update the <theme>\src\main\webapp\WEB-INF\liferay-look-and-feel.xml in exact order as follow:
  1. root-path
  2. templates-path
  3. css-path
  4. images-path
  5. javascript-path
  6. virtual-path
  7. template-extension
  8. settings
  9. wap-theme
  10. roles
  11. color-scheme
  12. layout-templates