[thelist] JS error access denied

Chris Price chris.price at choctaw.co.uk
Tue Sep 12 11:57:43 CDT 2006


I have a problem with a page which opens a window using javascript.

In IE 6.0 I get the following error when the window opens:

Line: 23
Char: 2
Error: Access is denied
Code: 0
URL: http://serekundapoodles.com/new/bridget.html

On the clients computer the window pops up but just says that its  
downloading the content but doesn't complete the download, just freezes  
the browser.

It happens on an AOL browser and another on BT.

The javascript is as follows:

function majorWindow(pagename,dir) {
	var thisWin
	thisWin =  
window.open(opener,'popup','toolbar=no,location=no,scrollbars=yes,resiza 
ble=yes,width=840,height=620');
	thisWin.document.write("<!DOCTYPE html PUBLIC '-\/\/W3C\/\/DTD XHTML  
1.0 Strict\/\/EN'  
'http:\/\/www.w3.org\/TR\/xhtml1\/DTD\/xhtml1-strict.dtd'>");
	thisWin.document.write("<html lang='en'  
xmlns='http://www.w3.org\/1999\/xhtml'>");
	thisWin.document.write("<head>");
	thisWin.document.write("<title>" + pagename + "\'s pedigree<\/title>");
	thisWin.document.write("<meta http-equiv='content-type'  
content='text\/html; charset=ISO-8859-1' \/>");
	thisWin.document.write("<link rel='stylesheet'  
href='styles\/popup.css' type='text\/css' \/>");
	thisWin.document.write("<script type='text\/JavaScript'  
src='opener.js'><\/script>");
	thisWin.document.write("<\/head>");
	thisWin.document.write("<body>");
	thisWin.document.write("<div><img src='" + dir +  
"images\/poodles\/pedigrees\/" + pagename + "-ped.jpg' alt=\"" +  
pagename + "\'s pedigree\" \/><\/div>");
	thisWin.document.write("<div onclick='window.close(); return false'  
class='windowClose'>Close this window<\/div>");
	thisWin.document.write("<\/body>");
	thisWin.document.write("<\/html>");
	thisWin.document.close();
	thisWin.focus();
	}

Can anyone throw any light on this?

Kind Regards
-- 
Chris Price

Choctaw

chris.price at choctaw.co.uk
http://www.choctaw.co.uk

Tel. 01524 825 245
Mob. 0777 451 4488


Beauty is in the eye of the beholder
while excellence is in the hand of the professional

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          -+- Sent on behalf of Choctaw Media Ltd -+-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The information in the email (including any attachments) is  
confidential and intended solely for the use of the individual to whom  
it is addressed. Access to this email by anyone else is unauthorized.  
Any views or opinions presented are solely those of the author and do  
not necessarily represent those of Choctaw Media Ltd. If you have  
received this email in error be advised that any use, dissemination,  
forwarding, printing or copying of this email is strictly prohibited.  
Please notify the sender and please delete the message from your system  
immediately.





More information about the thelist mailing list