IE7 New Window Problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • LAPHO
    New Member
    • Feb 2007
    • 3

    IE7 New Window Problem

    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:

    Code:
    function OpenSite()
    {
    var newwindow
    newwindow=window.open(SiteN,'name');
    if (window.focus) {newwindow.focus()}
    }
    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
  • iam_clint
    Recognized Expert Top Contributor
    • Jul 2006
    • 1207

    #2
    This is a new error to me... has anyone else on IE7 having this problem? I still use IE6

    Comment

    • acoder
      Recognized Expert MVP
      • Nov 2006
      • 16032

      #3
      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.
      Last edited by acoder; Feb 27 '07, 08:27 AM. Reason: typo

      Comment

      • LAPHO
        New Member
        • Feb 2007
        • 3

        #4
        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.

        Comment

        • acoder
          Recognized Expert MVP
          • Nov 2006
          • 16032

          #5
          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.

          Comment

          • LAPHO
            New Member
            • Feb 2007
            • 3

            #6
            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

            Comment

            Working...