By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,767 Members | 1,080 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,767 IT Pros & Developers. It's quick & easy.

IE7 New Window Problem

P: 3
I am running an external url in an iframe. All I want is to be able to open the url in a new window. I am using the following Javascript code:

Expand|Select|Wrap|Line Numbers
  1. function OpenSite()
  2. {
  3. var newwindow
  5. if (window.focus) {newwindow.focus()}
  6. }
This works perfectly in Firefox,Opera and Netscape but for some reason that I can't understand I get the following error in IE7.

"Error:The marshaled interface data packet (OBJREF)has an invalid or unknown format"

I am running on XP and SiteN is a global variable carrying the url.

This seems very basic and as I am new to JS I have spent days scouring the Net for an answer, without success.

Can anyone help please
Feb 23 '07 #1
Share this Question
Share on Google+
5 Replies

Expert 100+
P: 1,208
This is a new error to me... has anyone else on IE7 having this problem? I still use IE6
Feb 23 '07 #2

Expert Mod 15k+
P: 16,027
See this Microsoft KB article. I think it's something to do with COM and possibly the operating system.

See also this link. It might not help in your problem, but it might help in pinpointing your problem.
Feb 26 '07 #3

P: 3
Thanks for pointing me in the right direction.I don't really understand why I have the problem as I have a standard 3.2 Advent computer - you'd think there were hundreds of people with the problem. I am pleased to know that it's not the coding !
It's so strange that only IE is affected.
Thanks once again for your help.
Feb 26 '07 #4

Expert Mod 15k+
P: 16,027
No problem, you're welcome. Have you solved your problem? If not, you could possibly ask the guys in the Windows forum. They might be able to help.
Feb 27 '07 #5

P: 3
No, I'm afraid the problem isn't solved, I can only assume that some piece of code vital to IE has 'gone missing'. I've tried removing and re-loading IE but its made no differerence. I'll keep trying. Thanks
Feb 27 '07 #6

Post your reply

Sign in to post your reply or Sign up for a free account.