contenteditable and prevent from going to new line using ENTER key

3 February 2014 | Category: Browsers, JavaScript | Comments (0)

Let’s say we have a simple div HTML element with attribute contenteditable. Sometimes we want to observe ENTER key and prevent cursor to go to new lin[……]

Read more

How to override compatibility mode for intranet site when “Display intranet sites in Compatibility View” is checked?

31 January 2014 | Category: Browsers | Comments (0)

Based on some research in internet I found that we can use HTML meta tag:

meta http-equiv="X-UA-Compatible" content="IE=edge"

to force IE to use h[……]

Read more

Modal windows – are they always necessary?

27 November 2013 | Category: Browsers, General | Comments (0)

I do not want to write about “what is modal windows”, but focus on potential problems which may occur when you start using modal windows in some scena[……]

Read more

JS Tip: How to check if specified HTML element is supported by the browser

11 November 2013 | Category: Browsers, JavaScript | Comments (0)

To check if browser support specified HTML element you can use:

function isHTMLElementSupported(elm) {
    return (Object.prototype.toString.call([......]

Read more

How to check if browser supports cookies using client-side technique

29 September 2013 | Category: Browsers, JavaScript | Comments (0)

Introduction

There is at least (which I know) two methods to find out if cookies are enabled or not. You can use client-side script techniques or s[……]

Read more

Simple technique to preload images at specified moment

20 August 2013 | Category: Browsers, Optimizing | Comments (2)

There are many ways to preload images, including methods that rely on CSS, JavaScript, and various combinations thereof. Here I would like to present[……]

Read more

JS tip: always use full reference

17 August 2013 | Category: Browsers, JavaScript, Optimizing | Comments (0)

Let’s say we have an example of code like this:

(function(){

    function close_window() {
        if (typeof self.close === 'function') {[......]

Read more

CSS: provide a unit for zero lengths

8 July 2013 | Category: Browsers, CSS, Tools | Comments (0)

Zero lengths do not need unit. However, there is some significant benefits of using unit with zero lengths while developing code.

See real unit and[……]

Read more

Expires header for fonts do not working

2 July 2013 | Category: Browsers, Optimizing, Server Side | Comments (0)

If you specify Expires header with future date then you may expect that specified fonts (I use woff, ttf, otf and eot) will be cached in browser local[……]

Read more

To cache or not to cache “length” property

26 June 2013 | Category: Browsers, Optimizing | Comments (0)

I asked Thomas Lahn on comp.lang.javascript newsgroup about caching “length” property:

According to discussion here http://stackoverflow.com/questi[……]

Read more

« go backkeep looking »