Source Code -> Iframe with 100% Height

Source Code -> Iframe with 100% Height

Ever wonder how to create an iframe that fills the entire height (and width) of a page? You probably tried writing something like: <iframe width="100%" height="100%"></iframe> and expected the iframe to fill up whatever it could. The width=100% does what you expected and fills up the entire width of the page, but the height just [...]

Read full storyComments { 0 }
HTML5 and pushState

HTML5 and pushState

Nowadays JavaScript and more particularly AJAX is used in every type of web applications. The asynchronous data loading is great asset of AJAX but it has one drawback, the user can’t use back/forward buttons of the browser to navigate through different states of the page that has been updated through asynchronous methods.   Web page [...]

Read full storyComments { 1 }
CSS – Debug nested elements in HTML layout

Debugging with CSS – outline all elements

Sometimes document structure and layout could be very difficult and complex. To achieve some goals designers tend to use a lot of nested elements in their code and after that style them with CSS. What if you want to see all this elements and how they are located and related to each other. There is [...]

Read full storyComments { 0 }
CSS3 rotate transform

Rotate element with CSS3 and some tricks

I see many people are playing around the net with the new CSS3 features. The biggest problem is that some features are still not very well or at all adopted by some browsers. Since Microsoft had officially announced the IE6 countdown and it’s forthcoming death, designer and developers worldwide can relieve. But anyway in the [...]

Read full storyComments { 0 }
First element of an array – Javascript

JavaScript – First key from associative array

Working with arrays is very beneficial for every developer in every language. But in different languages some operations are done differently. Very good example is retrieving first key from an associative array in JavaScript. In PHP you could use “foreach“, “list“, “array_pop“, “array_slice“, etc. But in JavaScript we don’t have all that functions so we [...]

Read full storyComments { 0 }
Joomla Radio Group – JHTML

Generate radio grpoup with JHTML

Joomla provides very useful class called JHTML that can be used to produce different HTML elements saving us time and code. The Joomla team has provided a very useful class loader method “_()” in which we can pass string for an element we would like to generate. Example of elements are: select.option select.genericlist select.option select.optgroup [...]

Read full storyComments { 0 }
Htaccess – redirect domain to WWW

Htaccess – redirect domain to WWW

If you have a website for sure you have come to the point wondering how to redirect all visitors to the WWW part of the domain. This is small tip explaining in details the actual .htaccess redirect. Enough talking let’s see some code:         Options +FollowSymlinks RewriteEngine on RewriteCond %{http_host} ^domain.com [NC] [...]

Read full storyComments { 2 }
cake_php

CakePHP – User authentication and registration

Hello guys! This is my firs post so I’ll keep it short for now. I could say I am newbie with CakePHP framework. I’ve been working with it just for a couple of weeks so far but I think it’s awesome. It’s flexible, provides code generation, adopting MVC pattern, which definitely makes life easier. And [...]

Read full storyComments { 4 }