up vote 1 down vote favorite
1
share [g+] share [fb]

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?

link|improve this question

71% accept rate
feedback

2 Answers

up vote 6 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

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

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();
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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