473,804 Members | 3,010 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Access Denied

I have a ie window that launches a pop up window with no menus/toolbars
nothing just the page. When I run an bookmarklet on main window it works
fine but when I try running this on the popup I get an access denied error.
All the javascript is doing is getting innertxt from a textbox. It works
fine when main window is done but when popup is used it does not work. If
anybody can help would greatly appreciate it.
Jun 27 '08 #1
4 1595
Chico Che wrote:
I have a ie window that launches a pop up window with no menus/toolbars
nothing just the page. When I run an bookmarklet on main window it works
fine but when I try running this on the popup I get an access denied error.
All the javascript is doing is getting innertxt from a textbox. It works
fine when main window is done but when popup is used it does not work. If
anybody can help would greatly appreciate it.
Looking at your code, I see that your problem is with ..... oh wait,
there is no code to look at. In that case, I'm going to take a guess at
the problem being on line 37.
Jun 27 '08 #2
Stevo <no@mail.invali dwrote in news:g3******** *****@news.t-online.com:
Chico Che wrote:
>I have a ie window that launches a pop up window with no
menus/toolbars nothing just the page. When I run an bookmarklet on
main window it works fine but when I try running this on the popup I
get an access denied error. All the javascript is doing is getting
innertxt from a textbox. It works fine when main window is done but
when popup is used it does not work. If anybody can help would
greatly appreciate it.

Looking at your code, I see that your problem is with ..... oh wait,
there is no code to look at. In that case, I'm going to take a guess
at the problem being on line 37.
My bad here is the code:

[InternetShortcu t]
URL=javascript: var d=document;var df = document.frames ;var screen = "Not
Found"; var id = "@$@OBJ0000 2[1]";if(df.len gth != 0){df[0].focus();for (f=
0; f< df.length;f++){ var scrvalue = df[f].document.getEl ementById(id);i f
(scrvalue != null){screen = scrvalue.innerT ext;}}}else{var scrvalue =
d.getElementByI d(id);if (d!= null){screen = scrvalue.innerT ext}}alert
(screen);
Modified=307DA7 9EA1BBC10110
IconIndex=3
IconFile=C:\WIN NT\System32\url .dll
Jun 27 '08 #3
Chico Che wrote:
Stevo wrote:
>Chico Che wrote:
>>I have a ie window that launches a pop up window with no
menus/toolbars nothing just the page. When I run an bookmarklet on
main window it works fine but when I try running this on the popup I
get an access denied error. All the javascript is doing is getting
innertxt from a textbox. It works fine when main window is done but
when popup is used it does not work. If anybody can help would
greatly appreciate it.
[...]

[...] var d=document;var df = document.frames ;var screen = "Not
Found"; var id = "@$@OBJ0000 2[1]";if(df.len gth != 0){df[0].focus();for (f=
0; f< df.length;f++){ var scrvalue = df[f].document.getEl ementById(id);i f
(scrvalue != null){screen = scrvalue.innerT ext;}}}else{var scrvalue =
d.getElementByI d(id);if (d!= null){screen = scrvalue.innerT ext}}alert
(screen);
The code doesn't handle the case that `scrvalue' is not an object reference
(e.g. is `null) because there is no element with that ID. The assignment

screen = scrvalue.innerT ext;

results in a TypeError (in IE: "Object expected") then. This is what
happened when I used the bookmarklet on an arbitrary document in
"Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; ...; .NET CLR 1.1.4322;
..NET CLR 2.0.50727)".

Anything else is specific to the document you are viewing; you should post
the URL of the opener. However, a likely cause of the error message is that
the supposed frame's content document is accessed through a domain different
from the domain of the popup document. This would be a security precaution,
by design, and cannot be reliably worked around.

Also, `document.frame s' should be `window.frames' , and `screen' should be
something else (as there is a host-defined property of the Global Object
with that name already).
PointedEars
--
Prototype.js was written by people who don't know javascript for people
who don't know javascript. People who don't know javascript are not
the best source of advice on designing systems that use javascript.
-- Richard Cornford, cljs, <f8************ *******@news.de mon.co.uk>
Jun 27 '08 #4
On Jun 24, 2:29 pm, Thomas 'PointedEars' Lahn <PointedE...@we b.de>
wrote:
Chico Che wrote:
Stevo wrote:
Chico Che wrote:
Also, `document.frame s' should be `window.frames' , and `screen' should be
something else (as there is a host-defined property of the Global Object
with that name already).
Alternatively, the code can be wrapped in a function:-

(function(){ /* bookmarklet code here */ })();

To avoid polluting or colliding with global namespace.

Garrett
PointedEars
Jun 27 '08 #5

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

Similar topics

2
3060
by: calfdog | last post by:
Hello, Does anyone know a workaround for calling fireEvent. With the latest from Microsoft OS XP2 and Hot fixes to IE it now gives an "access denied" error in Python when called. Here is what I am trying to do: Set the "campus" listbox value and theb call fire event, such as in the code below. I get an "access denied" error.
0
2948
by: Steve | last post by:
Hi, Yesterday I signed up for another dedicated linux server with the hosting company I use and I am having problems getting MySQL 4.1.3 working on it. I've tried just about everything I can think of to login via the MySQL client but get a variation of the following error every time: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
9
6332
by: | last post by:
Hi All, I have allready tried to ask a similar question , but got no answer until now. In the meantime, I found, that I cannot understand some thread-settings for the Main() function . If I use the attribute for the Main() function, I get "access denied error", if I use a ManagementEventWatcher to connect to the local machine to receive events. Is there anybody out there, how possibly can explain why this happens?? If I remove this...
0
3540
by: ASP.Confused | last post by:
The old message looked a little stale, so I am re-posting it here. Anybody have any ideas of what I could do?!? The previous responses to this question are below. If you want to look at the original question, the subject line is: ADODB.NET and "Access Denied" I have an ASP.NET page writtein in VB that uses ADODB. I just had to
16
7392
by: Brad | last post by:
After compiling my asp.net project I'm receiving a "BC31011 - Access is denied" error when attempting to run or debug. The only thing that seems to resolve problem is IISReset. After a reset my project runs fine for several compiles then the error starts up again...and another iisreset. I seem to recall a similar issue a long time back which required turning off indexing, which I have had off since (I just re-checked to confirm it is...
12
3104
by: Ron Weldy | last post by:
I have a test server runinng 2003/IIS 6 with a mixture of asp and asp.net files. On my workstation I have a share set up to the folder where the web files reside. I am just doing quick and dirty asp editing (like I used to be able to do with 2K/IIS5) where I use VS.NET, open an asp file, make changes, save and refresh my browser. Problem is that I get an Access is Denied error when I try to save the file and then the file gets wiped on...
3
8010
by: Shailesh Humbad | last post by:
I figured out what was causing the "Access is Denied" error when calling functions from referenced DLLs in my service. I've tried to be very detailed, so bear with me. It turns out that libraries I made myself were not having this problem, but it only happened with a zip library I downloaded and copied into my program's directory. When using classes from this library, my service threw an "Access Is Denied" FileLoadException, which...
3
7966
by: David Thielen | last post by:
Hi; I created a virtual directory in IIS 6.0 and my asp.net app runs fine. But when it tries to write a file I get: Access to the path is denied. - C:\Inetpub\wwwroot\RunReportASP\images C:\Inetpub\wwwroot\RunReportASP is the directory of my virtual directory for my app. In it's properties I did check "Write" as a permission. What else do I need to do?
8
6054
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...
0
3967
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...
0
9706
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, 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...
0
10578
Oralloy
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...
0
10332
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
9152
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
7620
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
6853
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
5522
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
5651
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4300
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

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.