Detect IE version

May 30th, 2007No Comments

var is_ie/*@cc_on = {
// quirksmode : (document.compatMode==”BackCompat”),
version : parseFloat(navigator.appVersion.match(/MSIE (.+?);/)[1])
}@*/;

(Uncomment the second line if you also wish to check whether IE is running in “compatibility” (quirks) mode or in standards-mode.)

All other browsers cheerfully ignore the Javascript comment block (/* … */) so what they end up with is essentially this:

var is_ie;

…which evaluates as an implicit false, when used as a condition. This allows us to set up conditions like this one:

if (is_ie && (is_ie.version < 7))
{
// do IE specific stuff
}
else if (is_ie && (is_ie.version >= 7))
{
//do IE 7 or above specific stuff
}
else
{
// default behavior for other browsers
}

[reference : http://mar.anomy.net/entry/2006/11/23/00.06.40/ ]


Technorati : , ,

DWA: IE7 fixes for Domino 6.5.5

May 29th, 2007No Comments

http://www-1.ibm.com/support/docview.wss?rs=463&context=SSKTMJ&context=SSKTWP&dc=D400&uid=swg24014829&loc=en_US&cs=utf-8&lang=en

This document contains instructions for obtaining a fix to address Daylight Saving Time 2007 changes and IE7 issues with Domino Web Access (DWA) 6.5.5.

DJAG6TZMNT: IE7 closes with reuse child windows and ‘open pop-ups in new tab’ setting
VSEN6MH3YD: IE7…resizing columns in DWA views yield JavaScript error
LLGO6UW3E3: IE7 only: DWA warning pops up when send an “Accept with Comment”
LCDL6UWB7J: IE7 only: DWA warning pops up when invitee send an “accept with comments” for meeting type


Technorati : , ,

IE7 FrameSet

Feb 12th, 2007No Comments

Try to fix IE7 frameset these days….. target on right frame but new windows popup. FF2 and IE6 no problem.

Env:
IE7 + TreeView js

Sol:
Internet Options > Security > Custom Level > Miscellaneous
ENABLE Navigate sub-frames across different domains

————————-

That’s it…. waste time to find out this suck problem in IE …

Here is some reference:
About Cross-Frame Scripting and Security
What does the IE “Access is Denied” error mean?

Useful tools in IE to debug:
Internet Explorer Developer Toolbar Beta 3
DOM Inspector for IE
HttpWatch