Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] JavaScript error: Class doesn't support Automation
- From: javascript@xxxxxxxxxx (walterash)
- Subject: [Javascript] JavaScript error: Class doesn't support Automation
- Date: Thu, 12 Sep 2002 20:37:17 -0000
Each time I open a window without a URL specified and then try to do
anything (like write to it), IE 6 gives me this error. I tried
reverting to the IE version that came with XP and the problem did
not go away. Can this really be a problem with IE6 and Javascript
or is there something I can fix with my version of IE.
Here's some code from another site (I'm sure webshots.com won't mind
if I borrow it for demonstration purposes) that behaves the same way
(just so you know it's not an error in my code):
-----------
function openwin(name,w,h,scrollbars,resizable,url)
{
var left = (screen.width-w)/2;
var top = (screen.height-h)/2;
var win = window.open("",name,"width=" + w + ",height=" + h
+",scrollbars=" + scrollbars +",resizable=" + resizable
+",screenx="+left+",screeny="+top+",left="+left+",top="+top);
if (url)
win.location.href=url;
win.focus();
}
function onClickPoster()
{
document.location.href = "http://www.webshots.com/g/32/596-
sh/17275.html?blockPop=1";
openwin("poster", 640,
430, "yes", "yes", "http://www.webshots.com/g/poster/75/17275_poster.
html");
}
-------------
When onClickPoster is called, IE6 opens "About:Blank" and give the
error message.
Thank you for any assistance.
Walter Harder
- Prev by Date: [Javascript] JavaScript List Unsubscirbe, Subscribe & Posting Info.
- Next by Date: [Javascript] Disable View Source...
- Previous by thread: [Javascript] JavaScript List Unsubscirbe, Subscribe & Posting Info.
- Next by thread: [Javascript] RE: RE: Invoke onclick event of one button from clicking a second button
- Index(es):