Friday, March 26, 2010

Chrome Gmail Checker - sign in problem

Had an issue with Google Chrome Gmail checker - extension would not sign in, was always grayed out with question mark.
The solution which worked for me:
1. Open Chrome.
2. Disable Google Mail Checker plugin (you can do that on extension page)
3. Sign in to your gmail account in another tab
4. Enable Google Mail Checker extension

Voila Gmail Checker icon becomes red

Tuesday, July 22, 2008

Password protection

Password protection. Great solution for hiding file download url.

Yahoo change password link

Need to change your Yahoo password?

Go to "My Account" (near the sign out button at the top). It will prompt for your current password.

Friday, June 27, 2008

z-index problem on IE6 and IE7

Sometimes z-index property defined in CSS file does not help. IE would still render some elements with bigger z-index behind elements with lower z-index.

Setting z-index using javascript fixed my z-index problem on IE.

document.getElementById('myElement').style.zIndex = "500";

Thursday, June 19, 2008

JavaScript parsing and evaluation

By default script tags are not parsed and evaluated by browsers when you try to inject them as regular text ( for example using innerHTML). Following code borrowed from mootools library will do it for you.

var myText = "html here <script>alert('javascript eval worked');</script>";
var scripts = [];
var regexp = /<script[^>]*>([\s\S]*?)<\/script>/gi;
while ((script = regexp.exec(myText))) scripts.push(script[1]);
scripts = scripts.join('\n');
if (scripts) (window.execScript) ? window.execScript(scripts) : window.setTimeout(scripts, 0);

Thursday, May 29, 2008

Background problems on IE6

Sometimes IE6 would not render background specified in CSS. Try adding position:relative to the element.

#MyIe6Div {
background-color: red;
position: relative;
}