Archive for the 'Microsoft' Category

Controlling the IE7 “Shrink to Fit” print setting using JavaScript

Friday, November 30th, 2007

You may have noticed that printing in Internet Explorer 7 has a new feature - "Shrink to Fit". In some situations, such as when pages are in an iFrame, "Shrink to Fit" is always applied by default. For general web pages this feature may be appreciated, but in a web application where developers want to control the layout of the page, and perhaps generate reports, we do not appreciate IE7's changing the print layout at all.

If you have not been challenged by this behaviour yet, don't worry - you will! And when you do, here is the solution.

Instead of the typical "print()" command in JavaScript, use:


document.execCommand('print', false, null);

Or if you are wanting to print a document inside an iFrame you can use something like:


window.frames(0).focus();
window.frames(0).document.execCommand('print', false, null);

Note: This solution is for Internet Explorer 7 only - I leave it up to you to do the browser detection.

Web Developer Toolbar for Internet Explorer 6

Sunday, March 26th, 2006

Internet Explorer LogoWell … it's not as good as its counterpart for Firefox, but it is certainly a useful tool for web developers. The Internet Explorer Developer Toolbar from Microsoft offers the following features:

  • Explore and modify the document object model (DOM) of a Web page.
  • Locate and select specific elements on a Web page through a variety of techniques.
  • Selectively disable Internet Explorer settings - Cache, Cookies, Images, Scripts, Popups.
  • View HTML object class names, ID's, and details such as link paths, tab index values, and access keys.
  • Outline tables, table cells, images, or selected tags.
  • Validate HTML, CSS, WAI, and RSS Web feed links.
  • Display image dimensions, file sizes, path information, and alternate (ALT) text.
  • Immediately resize the browser window to a new resolution.
  • Selectively clear the browser cache and saved cookies. Choose from all objects or those associated with a given domain.
  • Choose direct links to W3C specification references, the Internet Explorer team weblog (blog), and other resources.
  • Display a fully featured design ruler to help accurately align and measure objects on your pages.

There is certainly an abundance of useful features for developers to play with. Enjoy…

Microsoft redesigns the iPod Packaging

Thursday, March 2nd, 2006

I just discovered this clever video on YouTube that addresses the question "What if Microsoft redesigned the iPod Packaging?".

Check it out for a bit of a laugh…

It’s here: Internet Explorer 7 Beta 2

Wednesday, February 1st, 2006

Internet Explorer 7 Logo

Microsoft has released Beta 2 of the next version of Internet Explorer. This release is really aimed at developers/designers who want to test their current websites and web applications with the new software. Microsoft has posted checklists that can be used when testing the browser:

The browser is available for download right now. There is a list of FAQ's for the new release on the IEBlog website that you may want to read. Oh yes … and you need to have SP2 installed on Windows XP if you want to use IE7.

Go and have a play if you dare…

Live Preview of Windows Vista

Saturday, January 7th, 2006

If you are keen to see what is coming in Windows Vista check out these two short videos from the 2006 Consumer Electronics Show: