473,661 Members | 2,484 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 10042
"Dave Hammond" <dh****@gmail.c om> wrote in message
news:11******** **************@ z14g2000cwz.goo glegroups.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('ab out:blank', 'name', 'width=1000,hei ght=480');
w.moveTo(10, 10);

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

var w = window.open('ht tp://www.yahoo.com', 'name',
'width=1000,hei ght=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*****@agrico reunited.com>
comp.lang.javas cript 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.c om> wrote in message
news:11******** **************@ f14g2000cwb.goo glegroups.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*****@agrico reunited.com>
comp.lang.javas cript 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
6104
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 the form is automatically submitted. I'm trying to avoid having seperate browse and submit actions. Can someone explain why I'm getting the error and how I can accomplish this task?
1
7031
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 anything, but I guess something had to be changed. I have checked NTFS permissions and the ASPNET account has full control on the parent directory of that XML file and on the file itself. I have also checked in IIS, and the Virtual Directory has...
0
1450
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 I have read (such as http://support.microsoft.com/default.aspx?scid=kb;en-us;329065) say that this happens when indexing service is running. But in this case we have verified that it is not running. I have also looked at file permissions and do...
2
2740
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 GIF/JPEG/PNG image to disk and then load it into the page using the <IMG /> tag is probably not the tidiest or most secure way of doing this, but it is the easiest and allows the greatest flexibility in terms of positioning. (It also seems to be the most...
0
3889
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 group, change DCOM security etc. I get following error in the event log when try to start the remote debugging Visual Studio 2003... DCOM got error "General access denied error" from the computer COMP1
1
5131
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 local/intranet hosted dynamic HTML page) to Trusted Sites list in IE Options.
6
4579
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 same file name and must have the same file name. I am essentially overwrite an existing file that is being used by another user. My question: Is there some method or property in the IO class that will allow me to CHECK to see if it is safe to...
18
2550
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 Javascript and the element that its trying to focus. It might be cross-frame, but everything comes from the same domain. The oddest part about this is that even though I get the "Access is
2
5374
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 here is that the request absolutely works fine on some systems with Excel 2003 and doesn't throw any error; but same patch of code throws an error with Excel 2000, 2002, 2007 and even on some of 2003 systems. Following is sample of code I am...
0
8762
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8633
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7365
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6185
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5653
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4179
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4347
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2762
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1747
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.