"Class doesn't support Automation"
the web-page is OK,
problem just begun about two weeks ago
I get this error when I try to open a "new" window programatically
(with Java Script)
How do I give Automation support back again ???
10X,
I use IE6 on XP...
(this is the code - that is working on non damaged IE)
Code://~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // Open a New Window With Parameters //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ function Message(MsgTitle, MsgText, MsgButton, ImageName) { MessageCount++; NewMessage = 'NewMessage' + '' + MessageCount; CloseButton = "<DIV ALIGN='CENTER'><FORM><INPUT TYPE='BUTTON' ONCLICK='self.close()' VALUE = '" + MsgButton + "'></FORM></DIV>" MessageWindow = window.open("",NewMessage,"toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizeable=yes,menubar=no,width=600,height=0"); MessageWindow.resizeTo(800, screen.height - 28) MessageWindow.moveTo(((screen.width - 800) / 2) , 0) MessageWindow.document.write("<HTML><HEAD><link rel='stylesheet' type='text/css' href='HStyles.css' title='style'><TITLE>Mr H Home Page Message</TITLE></HEAD><BODY BGCOLOR='#F6FBFE' background='Images/Background_Paper.jpg'><CENTER><FONT CLASS='Message_Title'>" + MsgTitle + "</FONT><P><FONT CLASS='Message_Text'>" + MsgText + "</FONT><BR><img src="+ImageName+" name='Picture' alt='Picture' border='1'></P></CENTER>" + CloseButton); MessageWindow.document.close(); } MessageCount=0; // Load Only Once... (When Loading The Script File)




Reply With Quote