Access denied, but in same domain

R

Rob

Hi,

I have a popup which updates a field in the opening window then
submits the form the field is in. If I try to use the popup again
(performing the same action) i get an 'Access is denied' error. When
the form in the opener is submitted it reloads itself with the new
data, domain stays the same. I have similar functionality in the site
which works ok.

The only thing to note is that the form being submitted is in an
iFrame and its target is '_top'. The bit that does work is in an
iFrame but doesnt have a target, this might be the problem, if it is
then i'll be stuck!

Cheers for any help,
Rob.
 
R

Richard Cornford

Rob said:
I have a popup which updates a field in the opening window then
submits the form the field is in. If I try to use the popup again
(performing the same action) i get an 'Access is denied' error. When
the form in the opener is submitted it reloads itself with the new
data, domain stays the same. I have similar functionality in the site
which works ok.

The only thing to note is that the form being submitted is in an
iFrame and its target is '_top'. The bit that does work is in an
iFrame but doesnt have a target, this might be the problem, if it is
then i'll be stuck!

So, to summarise you question; you are asking why one piece of code that
we cannot see, interacting with a number of HTML pages which we also
cannot see, is acting differently form another piece of unknown code
interacting with another set of invisible HTML pages. Is that the gist
of the question?

Richard.
 
R

Ralph Snart

I have a popup which updates a field in the opening window then
submits the form the field is in. If I try to use the popup again
(performing the same action) i get an 'Access is denied' error. When
the form in the opener is submitted it reloads itself with the new
data, domain stays the same. I have similar functionality in the site
which works ok.

try setting document.domain on both documents to the same value.
(eg: document.domain = 'mydomain.com'; )
 
S

shortbackandsides.no

Something to consider...

I had problems with cookies because a page accessed at
www.mydomain.com wrote a cookie that a popup using an address at
mydomain.com (i.e. no www.) tried to read. Easy to fix once I
realised what was happening but as the popup had no address bar or
status bar visible it took some figuring out to realise it had lost
the www.

Your problem doesn't mention cookies but might it be a similar
underlying cause?
 

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

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top