sid said:
Thanks Erwin,
I believe I am narrowing the problem. Yes I can read page B from Page
A as long as the page loads correctly.
But If I receive an "Action Cancelled" or "Page can not be displayed"
I get an "access denied" when I try to read the page contents.
Don't try to access pageA from pageB.
Why not?
Excactly as you described: pageA is maybe not loaded or has some error.
Or at least don't try it untill pageA told pageB it has loaded, via the
abovementioned onLoad-event.
Also, my intention was to set Location.href = "About:Blank" and then
write my own page but I seem to get "access denied" there as well and
both pages are from the same machine.
All this seemed to work correctly when I was testing from the same
machine. (workstation configured with IIS)
But then when I testing that page from a second machine I can't read
the page.
Yes. That makes sense.
I *think* that About:Blank is considered 'localhost', but I am not 100%
sure.
That means that on your develmachine, you can set it because it is both on
localhost, but once you move to a different machine, pageA and PageB are in
different domain, and then JavaScript security kicks in.
I am not 100% sure that About:Blank is considered 'localhost'.
Maybe somebody else can help you with or you can find a trick to discover
this yourself.
Good luck.
Regards,
Erwin Moller