Re: debugging for multiple versions of IE



On or about 4/1/2009 20:39, it came to pass that Ben Crowell wrote:
My development environment is Firefox on Linux. I have a javascript app
http://www.lightandmatter.com/calc/inf
that works on Firefox, and I can verify using browsershots.org that it
works on various browsers and operating systems. IE has me tearing my
hair out, however. I don't own a Windows machine, and the only ones I
have access to are at work, where I don't have privileges to install
software, so I can't install Microsoft Script Editor. Via browsershots
and testing at work, I'm finding that my code runs in some builds of
IE 6 but not others. It also seems to run in IE 8, but not in IE 7
(neither of which I have access to at work). This is an open-source
project that I'm doing for fun, so going out and buying three Windows
machines to run IE 6, 7, and 8 is not really on my agenda :-) I do have
hands-on access to one machine running IE 6 on which I get an error
message complaining about syntax, but the message is annoyingly vague --
it tells me I've got an error on a certain line, but it doesn't tell
me which of my nine files the error is in <:-O

Can anyone suggest any sane way to deal with this?

This solution allows me to run IE8, IE7 and IE6 on one machine, YMMV. I see you are running Linux, but perhaps this will help someone using Windows, or you install a Windows image on your HD, or purchase a Windows machine. You must be running XP or Vista, any flavor should work.

Here's how:

Install Microsoft's free Virtual Machine. When initially installed it may complain that you are not running Vista Ultimate or XP Pro, however keep going it will work, well it does here on Vista Home Premium.
http://www.microsoft.com/windows/downloads/default.aspx
Click Microsoft Virtual PC
Select VPC 2007 SP1 or Virtual PC 2007

Get the free VHD images for versions of IE that you don't have installed on your native OS and install them into the Virtual Machine, then run them in the virtual machine. The images are totally isolated from each other and your native OS. Huge URL follows
http://www.microsoft.com/downloads/details.aspx?FamilyId=21EABB90-958F-4B64-B5F1-73D0A413C8EF&displaylang=en
You can also find it by searching Google for "ms ie8 VHD image".
Download, expand and install each image you want. They do expire, however updated versions are usually available for download. If you want to use your wireless connection with a virtual machine: Highlight the machine in the VM console, click Settings, click Networking, set adapter 1 to your wireless card, click OK

I currently have IE8 native, with XP/IE7 and XP/IE6 virtual machines. I've found there is a good native debugger for Javascript in IE8 that works. It also allows compatibility mode that allows you to run and see your site in IE7 mode without firing up IE7, although you must go into the Tools-->Compatability to get the site back into IE8 mode. I also test my site with Firefox (my browser or choice), Opera, Safari and Chrome.



.



Relevant Pages

  • Re: Any Way to Create Windows 2000 Domain Controller in Windows
    ... I'll probably do the intermediate NT4 DC as a virtual machine just because ... machine is upgraded from NT4-to-2000 to a machine with a fresh Windows 2000 ... > * Install a w2kx member server in the domain ... > * Promote the w2kx member server to DC ...
    (microsoft.public.win2000.active_directory)
  • Re: How to beat activation
    ... I use Windows XP on a virtual machine (that's my normal machine but with virtual machine software installed - VMWare Workstation to be precise. ... The VM software is installed and then I create a separate partition on my hard drive and point the VM to install it's files for XP on that partition). ... One installed Windows XP is activated One I activated XP I then 'imaged' the VM drive using Acronis True Image. ...
    (microsoft.public.windowsxp.general)
  • Re: FrontPage 2003 on windows 7 64 bit
    ... No files will be shown until you select the Windows version you are using. ... Install FrontPage in the Windows XP window. ... If you install FrontPage for all users you can open FrontPage as if it were running in Windows 7 after closing the Virtual Machine. ...
    (microsoft.public.frontpage.client)
  • Re: ubuntu-users Digest, Vol 45, Issue 230
    ... from fedora to ubuntu ... Virtual machine ... Ubuntu will ask you if you want to install the ... Unable to send/receive e-mail between my e-mail server ...
    (Ubuntu)
  • Re: Out with Vista, In with XP???
    ... I think that the Virtual Machine is a great set of training wheels! ... You can purchase it and install that add-on. ... Or - you can install Windows XP in a Virtual Machine and run your old ... the new applications/can get the new applications and no longer need the old ...
    (microsoft.public.windowsxp.help_and_support)