Hi,
For some reason, when I create a new window using "myWin =
window.open(url )", and then try to get the location of the window using
"alert(myWin.lo cation)", it tells that access is denied. How can it be
denied...it's a window I created...there fore, shouldn't I have access to
it's location property?
Thanks,
Aaron 4 2306
In article <1f************ ********@comcas t.com>, ag********@comc ast.net
says... Hi,
For some reason, when I create a new window using "myWin = window.open(url )", and then try to get the location of the window using "alert(myWin.lo cation)", it tells that access is denied. How can it be denied...it's a window I created...there fore, shouldn't I have access to it's location property?
The domain in the newly opened window is different from that of the
original window.
--
Hywel I do not eat quiche http://hyweljenkins.co.uk/ http://hyweljenkins.co.uk/mfaq.php
If the document in the window is not in the same domain then you can't
access it.
This is a security/privacy issue. http://msdn.microsoft.com/library/de...g_security.asp
Tim
"Aaron" <ag********@com cast.net> wrote in message
news:1f******** ************@co mcast.com... Hi,
For some reason, when I create a new window using "myWin = window.open(url )", and then try to get the location of the window
using "alert(myWin.lo cation)", it tells that access is denied. How can it
be denied...it's a window I created...there fore, shouldn't I have
access to it's location property?
Thanks, Aaron
I understand what you're saying about security...but I'm reading O'Reilly's
javascript: The Definitive Guide to learn this (which is supposedly a good
book), and there's a specific example where the location of another window
(another frame in the same set) is obtained and written into the a text box
of the current document. Why would this even be written if it's not
possible?
Also, I get the access denied message when I try to use a self-created "back
button" in one frame to control another frames location via it's history
object. This is in the book too, and it should work. Any ideas?
Thanks,
Aaron
"Aaron" <ag********@com cast.net> wrote in message
news:Ps******** ************@co mcast.com... I understand what you're saying about security...but I'm reading
O'Reilly's javascript: The Definitive Guide to learn this (which is supposedly a good book), and there's a specific example where the location of another window (another frame in the same set) is obtained and written into the a text
box of the current document. Why would this even be written if it's not possible?
You believe *everything* you read?
Also, I get the access denied message when I try to use a self-created
"back button" in one frame to control another frames location via it's history object. This is in the book too, and it should work. Any ideas?
The book is wrong. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Fabian von Romberg |
last post by:
Hi, I have installed Sql Reporting Services on 2 machines, one is WIN 2000
PRO and the other one is WIN 2000 ADV. SERVER. When I try to access a
report using the webbrowser, I get the following error, this happens only if
try access the report on the SERVER, it I try on my local machine, it works
just fine. Any help will be much appreciated.
Thanks in advance,
Fabian von Romberg
|
by: phancey |
last post by:
whoops - I should have posted this to CSharp not ASPNET:
Hi,
I am using a 3rd party product to create dynamic web service proxies
(downloaded from www.thinktecture.com).
My problem is that it doesn't work if Anonymous Access is turned off. I
know, from searching, that this is to do with Credentials but I just
can't seem to find where to fix it.
|
by: Martin Strojek |
last post by:
Hi,
I have the following problem with developing some web site.
I use Visual Studio 2003 to build a website. I tried Windows 2003
Server and switched now back to Windows XP with PWS but the error
occurs
in both installations.
When I do a compile/build of my app and go to the browser and
hit reload there comes an error:
|
by: Shailesh Gajare |
last post by:
Hi All,
I have creating an ASP.Net application with two web servers. I am
uploading a file which is being uploaded on one of the server, I want to
copy the uploaded file on the other server at the same time.
It says Access Denied.
I am using File.Copy ( Source , Destination , true ) command in my code,
where
Source : the current physical location of the uploaded file
|
by: Chrisser |
last post by:
Hi
I have an Intranet webpage starting with a mainpage from which the user
can open a new window using a link that is calling a function:
function openWindows(){
var left, top;
width = (window.screen.availWidth/2)+130;
width2 = (window.screen.availWidth/2)-130;
height = (window.screen.availheight);
| |
by: carson |
last post by:
I have written two windows services:
- service A does some crunching of local data files and uploads them to
a central processing computer via http.
- service B monitors a manifest file on a webserver to see if service A
needs to be updated.
What service B does if it sees their is an update for service A is to
download a new copy of the service A executable, stop service A,
replace the executable with the new copy, and start service B...
|
by: suresh_nsnguys |
last post by:
Hi,
This is my first message to this forum.I am facing one problem in frames.when i am trying to access child frame from parent frame i am getting "Access Denied Error".i know the reason bcz i am trying to access the frame in different domain.is there any way to tackle this problem
my code:
parent frame:
<html>
<script>
function displayURL(){
alert("child frame URL="+self.childframe1.location.href);
|
by: Jeremy Ames |
last post by:
I am trying to move an application from my system to a new test system. I really should have tried an easier program first, but I didn't really have a chance. My application was originally written in ASP.NET 1.1, but was migrated to 2.0 during development. The reason this is an issue is because the application is using the Microsoft.Web.UI.WebControls.dll for the tree view and tab strip controls that didn't exist prior to 2.0. Well, that is...
|
by: Andy |
last post by:
Thanks Peter,
I thought I'd give an update on this problem. My application had 2
assemblies that contained classed for the Data access and business
logic layer. It was on one of them that I was getting the Access
denied error. After checking different settings and googling I wasnt
able to pinpoint the problem and as a temporary fix I decided to merge
the two assemblies into one, my logic being no offending assembly no
access denied...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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...
|
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();...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |