Skip navigation.

WinXP SP2 First ImpressionsAll recent postsPoll: IT Outsourcing

WinXP SP2 Early Tweaks

With SP2 now installed at work we've run in a somewhat strange feature that I thought others needed to be aware of. When you view a popup in a zone other than Local Intranet you can count on additional 25 pixels (height only) or so because the window will have a status bar. You'll need to take this into account while designing pixel-perfect dialog boxes. In Local Intranet zone no status bar appears and your popups are 25 pixels shorter!

I'm still trying to understand who in their infinite wisdom came up with this idea. Who would care what zone they are in? An average user wouldn't. I'm also dieing to see Microsoft CRM with their dialog boxes all skewed now.

On the upside, there's an easy way to sniff SP2 with a bit of JavaScript (courtesy of Microsoft):

var g_fIsSP2 = false;
function browserVersion()
{
  g_fIsSP2 = (window.navigator.userAgent.indexOf("SV1") != -1);
  if (g_fIsSP2)
  {
   //This browser is Internet Explorer in SP2. 
  }
  else
  {
   //This browser is not Internet Explorer in SP2.
  }
}

So if you detect SP2 and do window.open () with a pre-set height throw extra 25 pixels to its heigh. Long live browser sniffing!

Comments

Comment permalink 1 Akhmad Fathonih |
I, freaquently, (in case you don't know :p) call that kind of stuff as 'feature' :D. M$ give you more than what you're expected, without chargin extra money. You should be thankful :p

ROTFL
Comment permalink 2 Pete Wilson |
The point of requiring the status bar is to make it difficult for sites to spoof a regular Windows dialog box - if it is an IE window, it has a status bar.
Comment permalink 3 rav0 |
Because the status bar displays link refs when you point at them. Duh!

Emails and Notifications

Would you like to be notified when somebody responds to this post?  Would you like to have these comments emailed to you?

TrackBacks

Sorry, TrackBacks are not allowed.

Submit your comment

Please enter only text since all HTML tags except hyperlinks will be stripped. Hyperlinks will become live links. Any comments with flaming or offensive language will be deleted. Be courteous to other posters. Thank you.

Your name (required):
Your email (optional):
Your site's URL (optional):
Enter this number
Type in the number above:
Comment (required):