473,398 Members | 2,427 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

window.moveTo "Access is denied" error

Hi All,

This one is a bit bizarre. My understanding of "Access is denied" with
respect to window.moveTo is that it results from a request which would
move a portion of the window off screen.

The window in question is 480 high by 1000 wide. The screen dimensions
are 1024x768. The move request is to 10,10, which would put the max
right coordinate of the window at 1010 and the max bottom coordinate at
490. Both coordinates are clearly within the accessable area of the
screen.

The code works fine on server A, but not on server B. Both servers are
identical environments (SuSE Linux, Apache, all the same versions).
Not only that, the code works fine using Firefox on either server.
Only IE throws the error, and only on server B.

Any comments or suggestions would be greatly appreciated.
Thanks,
-Dave H.

Jul 23 '05 #1
3 10025
"Dave Hammond" <dh****@gmail.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
Hi All,

This one is a bit bizarre. My understanding of "Access is denied"
with
respect to window.moveTo is that it results from a request which would
move a portion of the window off screen.

The window in question is 480 high by 1000 wide. The screen
dimensions
are 1024x768. The move request is to 10,10, which would put the max
right coordinate of the window at 1010 and the max bottom coordinate
at
490. Both coordinates are clearly within the accessable area of the
screen.

The code works fine on server A, but not on server B. Both servers
are
identical environments (SuSE Linux, Apache, all the same versions).
Not only that, the code works fine using Firefox on either server.
Only IE throws the error, and only on server B.

Any comments or suggestions would be greatly appreciated.
Thanks,
-Dave H.


Same origin policy is preventing you from moving a window that contains
content from a domain that the script was not loaded from. The following
works on a page loaded from my local hard disk:

var w = window.open('about:blank', 'name', 'width=1000,height=480');
w.moveTo(10, 10);

The following does not work on a page loaded from my local hard disk:

var w = window.open('http://www.yahoo.com', 'name',
'width=1000,height=480');
w.moveTo(10, 10);

If both servers are on the same domain but different hosts, you may be
able to by-pass the problem with document.domain = 'yourdomain.com';

--
Grant Wagner <gw*****@agricoreunited.com>
comp.lang.javascript FAQ - http://jibbering.com/faq
Jul 23 '05 #2
Thanks for the info re: origin policy. In this case, the window opens
a page which is within the same server (and domain), however the url
specifies a different port. I will run a few tests to determine if
this may be the issue. Of course, the strange thing is that (as I had
stated), the problem only occurs on one of two identical servers
running identical code.

Anyway, thanks again.

-Dave H.

Jul 23 '05 #3
"Dave Hammond" <dh****@gmail.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
Thanks for the info re: origin policy. In this case, the window opens
a page which is within the same server (and domain), however the url
specifies a different port. I will run a few tests to determine if
this may be the issue. Of course, the strange thing is that (as I had
stated), the problem only occurs on one of two identical servers
running identical code.

Anyway, thanks again.


One server might be part of your "Trusted sites" list, or may be
considered part of your "Local intranet zone", either of which could
potentially have more permissions than the "Internet zone".

Also, https: sites tend to have more permission in IE than http:

--
Grant Wagner <gw*****@agricoreunited.com>
comp.lang.javascript FAQ - http://jibbering.com/faq
Jul 23 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Noozer | last post by:
The following javascript code generates an "Access denied" error at the indicated line. This sample should allow the user to click "Browse" and choose a file. Once the user has selected a file...
1
by: Winterminute | last post by:
If I try to make any changes to the ASP.NET Portal Starter kit it fails with an access denied error. This was working when I left last week and is failing today. I don't remember changing...
0
by: Brian Call | last post by:
We have a customer that is getting an "Access is denied" (to a specific dll in the application's bin directory) error on XP when trying to run an ASP.NET application. All the posts and KB articles...
2
by: Loane Sharp | last post by:
Hi there I'm using VB.NET and Office Web Components to access a SQL Server 2005 Express database and draw pictures on the fly in my ASP.NET application. Using .ExportPicture to write the...
0
by: matsla | last post by:
I have followed all guide lines to set up remote debugging but is it possible to do cross-domain remote debugging? I use same account/password on both computers (XP => 2003), added users to debug...
1
by: srivatsans101 | last post by:
Hi, I'm trying to access the IFrame contents on a HTML page as frames.document But in IE, I'm getting Access Denied Error Message. I tried to add the IFrame's Src WebSite (a...
6
by: =?Utf-8?B?UGF1bA==?= | last post by:
I am getting an "Access to the path "xxxx" is denied error. I believe is because the file that I am writing to programatically is being read/written to by another end user. These files have the...
18
by: Jeff Bigham | last post by:
Hi, I'm getting an "Access is denied" error in IE when I try to focus an input box with node.focus() My understanding is that should only happen when the domains are different of the...
2
by: sbasavar | last post by:
Hi All, In my excel programming, I am using XML http object (MSXML2.XMLHTTP.3.0). Using this object when I try to send a request application throws an "Access is Denied" error. Strange thing...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.