Here I put my everyday thoughts. Mainly important things to remember but also smart solutions to problems.

28 september, 2005

Don't set cookies when binary sending pdf to IE

I just discovered that it isn't recommended to set cookies at the same
time you send a binary stream, e.g. pdf, to a IE browser.

It isn't the cookie itself that is the problem but when a cookie is set
a header Cache-Control: no-cache="set-cookie, set-cookie2" is issued and
this is the problem.

Solution: Don't set the cookie.

26 september, 2005

Fontsize in percent

Here are a listing of font-size in percent and there according pixel size.

    font-size: 77%; /* 12px */
font-size: 71%; /* 11px */
font-size: 83%; /* 13px */
font-size: 89%; /* 14px */
font-size: 95%; /* 15px */
font-size: 65%; /* 10px */
font-size: 63%; /* 10px 62-63*/

Birthday again, wonder what I need.

Birthday is a day best spent in a gadgets store with to much money in my pocket. Hmm... must search the Internet for something that I need.

25 september, 2005

Read imported style properties

function getElementStyle(elemID, IEStyleProp, CSSStyleProp) 
{
var elem = document.getElementById(elemID);
if (elem.currentStyle) {
return elem.currentStyle[IEStyleProp];
} else if (window.getComputedStyle) {
var compStyle = window.getComputedStyle(elem, "");
return compStyle.getPropertyValue(CSSStyleProp);
}
return "";
}

This solution was found at:
oreillynet