473,378 Members | 1,104 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

IE7 New Window Problem

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
  4. newwindow=window.open(SiteN,'name');
  5. if (window.focus) {newwindow.focus()}
  6. }
  7.  
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
5 3265
iam_clint
1,208 Expert 1GB
This is a new error to me... has anyone else on IE7 having this problem? I still use IE6
Feb 23 '07 #2
acoder
16,027 Expert Mod 8TB
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
LAPHO
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
acoder
16,027 Expert Mod 8TB
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
LAPHO
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

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

Similar topics

18
by: Paul | last post by:
I link to a web site from an Excel spreadsheet. The page i link to is getCookie.asp which sets a cookie then returns back some html which opens a new window, to the same site but a different page...
13
by: Kai Grossjohann | last post by:
It seems that Ctrl-N in Mozilla opens a new empty browser window. That's fine, I don't need to do anything about it. But Ctrl-N in IE appears to clone the current window. Is there a way to...
2
by: Charles Packer | last post by:
From one of the online Javascript tutorials, I learned how to open a new window and set its size. I'm building a page that has several small photographs, and I want to let the viewer examine...
2
by: Randell D. | last post by:
HELP! Its taken me ages - I'm a newbie and I've compiled bits of code that I've read in this newsgroup over time to create one of my most intricate functions to date... Basically, the script...
4
by: Phillip Parr | last post by:
Hello, I have a nice system where someone clicks on a picture to show the full version. This pops up in a window.open box. It works great, the only problem is that if the user clicks a second...
4
by: Altramagnus | last post by:
I have 30 - 40 type of different window. For each type I need about 20 instances of the window. When I try to create them, I get "Error creating window handle" My guess is there is a maximum...
1
by: MrFez | last post by:
I have an webform from which I open a child window to display a calendar. When a date is selected in the calendar window it attempts to set the value of a textbox in the main (parent) window by...
6
by: David Hayes | last post by:
juglesh <juglesh@nospamRadioKDUG.com> wrote in "Re: how to maximize the browser window that fits the monitor size?" (Saturday, January 01, 2005 3:12 AM): > > >I want to maximize the browser...
14
by: D. Alvarado | last post by:
Hello, I am trying to open a window containing an image and I would like the image to be flush against the window -- i.e. have no padding or border. Can I make this happen with a single call to a...
7
by: multicherry | last post by:
Hi, Having searched for a way to fetch a window object by name, all I came across were answers along the line of... "All you have to do is say windowObj = window.open("blah", "name");" which...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.