HighDots Forums  

Access denied, but in same domain

Javascript JavaScript language (comp.lang.javascript)


Discuss Access denied, but in same domain in the Javascript forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Rob
 
Posts: n/a

Default Access denied, but in same domain - 07-01-2004 , 01:18 PM






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.

Reply With Quote
  #2  
Old   
Richard Cornford
 
Posts: n/a

Default Re: Access denied, but in same domain - 07-01-2004 , 01:54 PM






Rob wrote:
Quote:
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.





Reply With Quote
  #3  
Old   
Ralph Snart
 
Posts: n/a

Default Re: Access denied, but in same domain - 07-01-2004 , 03:53 PM



On 1 Jul 2004 10:18:07 -0700, Rob <gradrh1 (AT) yahoo (DOT) co.uk> wrote:
Quote:
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'; )


Reply With Quote
  #4  
Old   
shortbackandsides.no@spam.hairdresser.net
 
Posts: n/a

Default Re: Access denied, but in same domain - 07-01-2004 , 05:07 PM



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?

On 1 Jul 2004 10:18:07 -0700, gradrh1 (AT) yahoo (DOT) co.uk (Rob) wrote:

Quote:
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.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.