iframe access from parent page - Access is denied

  • Thread starter Thread starter Ben
  • Start date Start date
B

Ben

I have an HTML page with an iframe. The iframe links to a
Perl program that returns application session status.

From the HTML page(home page) I am trying to access the
iframes document object (specifically a JavaScript array
that the Perl script writes out within its html output).
The domains of both pages are the same. I am using
documnet.frames[0].document.all(it doesn't work with the
iframe name reference either). I get an Access is denied
JavaScript error. Why???????? And how do I avoid this?
I set the document.domain on both pages to be the same,
but it still doesn't work. When I change the iframe
reference to an html page within the same directory it
works. If I change the iframe reference to an html page
in a different directory, it doesn't work. HELP
PLEASE!!!!!!!!!!!!!
 
Sory, this group is for microsoft access, the database product.

As for your problem, it is a deliberate security restriction. Read-up on
"HTA applications" to get around it.

HTH,
TC
 
Back
Top