Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Since upgrading to Internet Explorer 8 I've been getting JavaScript errors when performing certain functions (like "Turn On") on the Virtual Server 2005 Enterprise R2 SP1 Administration Website:

Message: 'document.getElementById(...)' is null or not an object
Line: 4
Char: 1
Code: 0
URI: http://myserver.mydomain.local:1024/VirtualServer/VSWebApp.exe?view=1

Are there any workarounds to this problem other than using another browser?

share|improve this question
add comment

2 Answers 2

up vote 7 down vote accepted

I have found the solution to this problem in another question's answer but thought it was worth keeping my question up as, for the exact problem above, this question is easier to find.

The Microsoft Virtual Server 2005 R2 web admin page needs to be displayed in "Compatibility View" mode in IE8

Source: Accessing Virtual Server 2005 RC2 hosted machines using IE8

share|improve this answer
    
I just had the same problem. Thanks for the solution! –  Christian Hubmann Jun 24 '09 at 20:23
add comment

Or you can type some Javascript into the address bar and get it working. Amazed that their HTML is so shoddy, they didn't give the 'vm' or 'action' elements an ID, only a name, so replacing getElementById() with getElementsByName()[0] fixes it; the following worked for me in Chrome:

Type the following into the address bar to turn on the VM:

javascript:document.getElementsByName('action')[0].value='poweron';javascript:document.getElementsByName('vm')[0].value='YOURVMNAMEHERE';document.getElementById('form1').submit();

likewise, to turn the VM off, type:

javascript:document.getElementsByName('action')[0].value='turnOff';javascript:document.getElementsByName('vm')[0].value='YOURVMNAMEHERE';document.getElementById('form1').submit();
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.