Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

window.opener.location not working with IE6

Status
Not open for further replies.

desktophero

Programmer
Mar 30, 2001
33
US
Here is the code:

function RefreshOpener(whatPage){
window.opener.location.href = whatPage;
}

An anchor tag is kicking off this event with the onClick event.

onClick="javascript: RefreshOpener('datapage.asp');"


I have found an article on Microsoft regarding this issue, however their solution of installing SP1 for IE6 has already been installed on my computer.


This fix calls is for MSHTML.dll files with a version less than 6.00.2713.700.

The version of this file on my PC is 6.0.2800.1106.

When I click on the link, I get an error stating that the 'Class doesn't support automation'.

This code works on ID v4.x - 5.5 SP2.

Any ideas?

Thanks!

Jason
 

i have version 6.0.2600.000 and the code works for me...

***
<script>
function RefreshOpener(whatPage){
window.opener.location.href = whatPage;
}
</script>

<input type=button value=go onClick=&quot;javascript:RefreshOpener('datapage.asp');&quot;>
***

then in the opener page, i have this...

***
<a href=javascript:window.open('index.html');>go</a>
***

let me know...

- g
 
I tested this on that same version, and it worked (different machine).

It appears that the later versions of (after installing the service pack) cause the issue...???

I can't find anything else on it, so I guess I will not be able to go down that path - especially since this is for a portion of my companies intranet, and we are going to Win XP throughout the company.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top