iframe access from parent page - Access is denied

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!!!!!!!!!!!!!
 
T

TC

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top