PDA

View Full Version : access denied or permission denied


sumantg
09-26-2002, 12:24 PM
Hi,

I have a situation where i am getting access denied or permission denied messages.

I am currently using IE5.5, IIS.

Browser launches a main window. Java script in Main window is calling another window via window.open property. Then window is being opened but when it tries to access some elements of the calling window via property opener.<element>, access denied messages appear.

The fact is that the main window is in a different directory than the called window. They are both on the same domain, same port, but different directories.

Main window is in /program files/sap/its/scripts/wgate////main.htm
Subwindow is in /mimes////cal.htm

Having read a fair bit of documentation. it seems that its to do with some browser security, however i dont know if this can be resolved.

Any help would be highly appreciable.



Thanks heaps.
Sumant

ACJavascript
09-26-2002, 07:17 PM
Is the window.opener in the window thats opening the sub window or in the sub window?

sumantg
09-26-2002, 09:59 PM
subwindow is trying to access main window via property opener.
yes, its within the subwindow javascript function.

ACJavascript
09-27-2002, 03:23 AM
I honestly don't think that the problem is coming from the pages being seperate,,, Could you post your javascript on both pages?


_________________

Are you sure that the element that you are trying to reach with the opener is really there,,, on the main page?

A Simple mistake could happen ya never know :D:D:D

P.S Its happend to me a number of times hehehe :D

Mr J
09-27-2002, 02:42 PM
Has the document in the main window finished loading before the document in the second window?

If the script in the second window runs before the element it is targeting has loaded in the first document, could result in error messages, although "access denied" or "permission denied" is not usually one of them.

Just a thought

:confused:

ACJavascript
09-27-2002, 04:34 PM
Just a thought

haha,, Thats a great thought,, Thats what I was thinkin......
Its like some scripts you need to put the form elements above it or you will get error messages ect...
Still would like to see the script but I think Mr. J here solved the problem..:D