empty($var) is equivalent to
!isset($var) || !$var and inherently
!empty($var) is equivalent to isset($var) && $var. Continue reading
If, like me, you ever have to embed an IFrame from one domain into a website of a different domain, you will quickly realise that Internet Explorer and Safari are blocking the cookies (and thus the session variables) of the website inside the IFrame. Continue reading
To prevent the blur event to occur when clicking on a button or link, while you were editing text in a HTML5 editable element, add the following code in your script: Continue reading
The aim of this post is to see different methods to wrap a line/border around your element and understand how they affect the element’s dimensions.
I’ll compare three ways of adding a border around an element:
- border and box-sizing:border-box,
- border (in the default box model) and
Useful code allowing you to prepend a key/value pair to an array (without the keys being reindexed) :
Using a Gmail IMAP account in Thunderbird might be confusing. This is because Gmail doesn’t really use folders, instead it uses labels (or tags) on the mails where each mail might have multiple labels. To see how we can efficiently combine the use of Thunderbird and Gmail IMAP, let’s do some tests on an email account I freshly created for the purpose of this article.