473,837 Members | 1,561 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

"Access is denied" in IE on node.focus()

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
denied" error, the textbox actually does focus. Perhaps odder still,
it seems to not happen if I put an alert() immediately before the
focus(). Perhaps it has something to do with the page having lost
focus when focus() is called?

Very strange behavior and, as usual, IE is basically no help in
isolating what the problem is.

Thanks for any help.

-Jeff
Sep 25 '08 #1
18 2569
On Sep 26, 4:12*am, Jeff Bigham <jeffrey.big... @gmail.comwrote :
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
denied" error, the textbox actually does focus. *Perhaps odder still,
it seems to not happen if I put an alert() immediately before the
focus(). *Perhaps it has something to do with the page having lost
focus when focus() is called?

Very strange behavior and, as usual, IE is basically no help in
isolating what the problem is.
Maybe this would help. < http://www.dannyg.com/ref/jsminifaq.html#q15
>
Thanks for any help.

-Jeff
HTH,
/sasuke

Sep 26 '08 #2
sasuke wrote:
Maybe this would help. < http://www.dannyg.com/ref/jsminifaq.html#q15
Only the upper part could help. It becomes the usual Goodman nonsense
starting with "Setting the document.domain properties of both pages may
solve the problem". First of all, it does not solve the problem since
recent UAs tend to disregard this property and would make it read-only if
standards compliance is to be achieved; it would only solve the problem, as
this property was intended to function, if the second-level domain of both
requests were the same. And IE only shows the error (unless you have
disabled showing script errors, then there is only an error icon in the
status bar), other UAs exhibit the same behavior but might issue messages to
their background error consoles instead.

The nonsense goes on with "One more source of this error in IE ...". The
HTTP GET *command* (defined in RFCs 1945 and 2616) does NOT have a built-in
limit (for the request URI), especially not around 512 characters. In fact,
URIs have no limit defined (in RFC3986) at all, but Internet Explorer has
implemented a (quite annoying) limit of 2083 characters per URI -- an
information that is readily available in the MSKB, along with its
workaround, had Goodman the general intention to back up any of his
ridiculous claims: <http://support.microso ft.com/kb/208427>.

Incidentally, you should take everything Goodman says or writes with regard
to Web development with at least a handful of salt. You might get the
picture when I tell you that his facts hit rate appears to be even lower
than Resig's.
HTH

PointedEars
--
realism: HTML 4.01 Strict
evangelism: XHTML 1.0 Strict
madness: XHTML 1.1 as application/xhtml+xml
-- Bjoern Hoehrmann
Sep 26 '08 #3
On Sep 26, 9:28*pm, Thomas 'PointedEars' Lahn <PointedE...@we b.de>
wrote:
>
The nonsense goes on with "One more source of this error in IE ...". *The
HTTP GET *command* (defined in RFCs 1945 and 2616) does NOT have a built-in
limit (for the request URI), especially not around 512 characters. *In fact,
URIs have no limit defined (in RFC3986) at all, but Internet Explorer has
implemented a (quite annoying) limit of 2083 characters per URI -- an
information that is readily available in the MSKB, along with its
workaround, had Goodman the general intention to back up any of his
ridiculous claims: <http://support.microso ft.com/kb/208427>.
But that's not a workaround. URIs are limited to 2083 bytes in IE.
Full stop. That you can send whatever in the headers or in the payload
of a POST is another completely different and unrelated matter. Do you
work for M$ or what ?

--
Jorge.
Sep 26 '08 #4
Jorge wrote:
Thomas 'PointedEars' Lahn wrote:
>The nonsense goes on with "One more source of this error in IE ...". The
HTTP GET *command* (defined in RFCs 1945 and 2616) does NOT have a built-in
limit (for the request URI), especially not around 512 characters. In fact,
URIs have no limit defined (in RFC3986) at all, but Internet Explorer has
implemented a (quite annoying) limit of 2083 characters per URI -- an
information that is readily available in the MSKB, along with its
workaround, had Goodman the general intention to back up any of his
ridiculous claims: <http://support.microso ft.com/kb/208427>.

But that's not a workaround. URIs are limited to 2083 bytes in IE.
No, to 2083 *characters*. On a side note, HTTP/1.1 allows servers to
support a limited Request-URIs length, and they SHOULD respond with a
special status code in the case the request URI is too long.
Full stop. That you can send whatever in the headers or in the payload
of a POST is another completely different and unrelated matter.
It is a solution for the problem that was suggested *both* by Goodman and
the MSKB. However, the problem was not properly analyzed by Goodman which
needed correction. That correction, made by me, was backed up with a
reference to the MSKB.
Do you work for M$ or what ?
Get a life.
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>
Sep 27 '08 #5
On Sep 27, 3:42*am, Thomas 'PointedEars' Lahn <PointedE...@we b.de>
wrote:
No, to 2083 *characters*. *On a side note, HTTP/1.1 allows servers to
support a limited Request-URIs length, and they SHOULD respond with a
special status code in the case the request URI is too long.
Well. Of course there's not much point in accepting a 200GB url,
right ?
But 2083 *characters* doesn't look like a reasonable maximum.
Furthermore, I can inject into a page or simply run a (longer that
2083 *characters*) program as a bookmarklet in any other browser
except IE. Always IE.

--
Jorge.
Sep 27 '08 #6
Some more information which I found:

- Though as such there is no limit on the URI length; if the server
implementation decides on one or if the HTTP client erroneously
converts a given POST request to a GET, it should send a 414 response
code when such a situation is encountered.
- SGML specifies that the URL length in <a href='url'can't be more
than 1024 characters.
- I still wonder why both the articles say that the POST data is send
in header when it actually forms a part of the HTTP Request Body?

< http://classicasp.aspfaq.com/forms/w...arameters.html
>
/sasuke
Sep 27 '08 #7
sasuke wrote:
Some more information which I found:

- Though as such there is no limit on the URI length; if the server
implementation decides on one [...] it should send a 414 response
code when such a situation is encountered.
Yes, see also <news:48******* *****@PointedEa rs.de>.
or if the HTTP client erroneously converts a given POST request to a GET, [...]
Nonsense. The HTTP client decides which type of request it makes. The HTTP
server MUST NOT process a GET request like a POST request and vice-versa.
The server status code 414 is solely for the purpose of telling the server
that the URI is too long for this server. See RFC2616, section 10.4.15.

<http://www.rfc-editor.org/rfc/rfc2616.txt>
- SGML specifies that the URL length in <a href='url'can't be more
than 1024 characters.
Utter nonsense. First of all, SGML does not specify the `a' element and its
`href' attribute; HTML does. Second, the length of attribute values in
applications of SGML is not limited; HTML is an application of SGML. Third,
the `href' attribute of the `a' element is defined in HTML to be of type
URI, and since the definition of that type refers to RFC1738 (obsoleted by
RFC4248, RFC4266; updated by RFC1808, RFC2368, RFC2396, *RFC3986*) there is
no theoretical limit on the length of the attribute value.

<http://xml.coverpages. org/sgmlsyn/sgmlsyn.htm#C7. 9.4>
<http://www.w3.org/TR/1999/REC-html401-19991224/types.html#h-6.4>
- I still wonder why both the articles say that the POST data is send
in header when it actually forms a part of the HTTP Request Body?
Utter incompetence?
< http://classicasp.aspfaq.com/forms/w...arameters.html
Just another URI that you can strike through on your list of reliable
development resources.
PointedEars
--
Use any version of Microsoft Frontpage to create your site.
(This won't prevent people from viewing your source, but no one
will want to steal it.)
-- from <http://www.vortex-webdesign.com/help/hidesource.htm>
Sep 27 '08 #8
Thomas 'PointedEars' Lahn wrote:
[...] The HTTP client decides which type of request it makes. The HTTP
server MUST NOT process a GET request like a POST request and vice-versa.
The server status code 414 is solely for the purpose of telling the server
^^^^^^
telling the _client_
that the URI is too long for this server. See RFC2616, section 10.4.15.

<http://www.rfc-editor.org/rfc/rfc2616.txt>

PointedEars
--
Use any version of Microsoft Frontpage to create your site.
(This won't prevent people from viewing your source, but no one
will want to steal it.)
-- from <http://www.vortex-webdesign.com/help/hidesource.htm>
Sep 27 '08 #9
On Sep 27, 11:21*pm, Thomas 'PointedEars' Lahn <PointedE...@we b.de>
wrote:
sasuke wrote:
Some more information which I found:
*- Though as such there is no limit on the URI length; if the server
implementation decides on one [...] it should send a 414 response
code when such a situation is encountered.

Yes, see also <news:48******* *****@PointedEa rs.de>.
or if the HTTP client erroneously converts a given POST request to a GET, [...]

Nonsense. *The HTTP client decides which type of request it makes. *The HTTP
server MUST NOT process a GET request like a POST request and vice-versa.
The server status code 414 is solely for the purpose of telling the server
that the URI is too long for this server. *See RFC2616, section 10.4.15..
Yes, I read that, but the section says exactly the same thing as I
said about converting POST to GET requests.

/
=============== =============== =============== =============== ============
10.4.15 414 Request-URI Too Long
|------------------------------------------------------------------------
| The server is refusing to service the request because the Request-
URI
| is longer than the server is willing to interpret. This rare
| ^^^^^^^^^
| condition is only likely to occur when a client has improperly
| ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^
| converted a POST request to a GET request with long query
| ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^ ^^^^^^^^^^^
| information, when the client has descended into a URI "black hole"
of
| redirection (e.g., a redirected URI prefix that points to a suffix
of
| itself), or when the server is under attack by a client attempting
to
| exploit security holes present in some servers using fixed-length
| buffers for reading or manipulating the Request-URI.
*- SGML specifies that the URL length in <a href='url'can't be more
than 1024 characters.

Utter nonsense. *First of all, SGML does not specify the `a' element and its
`href' attribute; HTML does. *Second, the length of attribute values in
applications of SGML is not limited; HTML is an application of SGML. *Third,
the `href' attribute of the `a' element is defined in HTML to be of type
URI, and since the definition of that type refers to RFC1738 (obsoleted by
RFC4248, RFC4266; updated by RFC1808, RFC2368, RFC2396, *RFC3986*) there is
no theoretical limit on the length of the attribute value.

<http://xml.coverpages. org/sgmlsyn/sgmlsyn.htm#C7. 9.4>
<http://www.w3.org/TR/1999/REC-html401-19991224/types.html#h-6.4>
*- I still wonder why both the articles say that the POST data is send
in header when it actually forms a part of the HTTP Request Body?

Utter incompetence?
Thought so, just wanted to make sure. Thanks.
<http://classicasp.aspfaq.com/forms/w...-querystring/g....

Just another URI that you can strike through on your list of reliable
development resources.
*sigh* This makes it two in the same thread. I guess finding reliable
sources of gaining knowledge is like finding a needle in a haystack.
Thanks for the references and clarifications.

/sasuke
Sep 27 '08 #10

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

Similar topics

8
7675
by: Frances Del Rio | last post by:
I'm getting Getting "Access is Denied" on resizeTo and moveTo methods in IE (IE 6.0..) I saw two posts about this from 7/6 & 7/7.. I suspect, like previous poster said, that this has to do w/MS Windows Updates (Tools --> Windows Update in IE..) because this started happening to me recently (ONLY in IE, works fine in N7), and I updated about two weeks ago (AND: this is happening to me also at work, where I have same OS (W2000 Pro), and...
2
7189
by: Craig Santoli | last post by:
"... to ASPNet as attempted from C:\WINNT\System32\WBEM\WinMgmt.exe." This error keeps appearing in the Windows 2000 Server Event Viewer. Any ideas on what's causing this or how to prevent it? Thanks, Craig Santoli
1
7058
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
1202
by: Christophe Niel | last post by:
Hi As stated in Q315159, I have a problem to access a SQL server, but, I don't have the same cause : I use Application Center so I had to I use a domain account as the Asp.net worker process in order to have the right NTFS permission on the replicated files of the application (otherwise I have unknown account as ASPNET does not have the same SID on the 2 server) I already had the "Network Library =dbmssocn" option in the connect string...
6
4146
by: ASP.Confused | last post by:
I have an ASP.NET page writtein in VB that uses ADODB. I just had to force-install MDAC 2.8 after I tried to rollback to 2.6 (my web host uses this, and I wanted to be compatible with them.) I had to manually install all of the ODBC drivers and the rest of the DLL's, and now I am getting "Access is Denied" errors on any page that uses ADODB. How do I fix it? I already gave the ODBC drivers in the folders in "c:\program files\common...
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
0
1789
by: Rico | last post by:
Helolo, I have an ASP.NET application on a Windows 2003 Server machine WITHOUT VS. I am working on an XPPro machine with VS 2003. I have installed the remote debugging components on the server. Aside from having administrative rights, I have also put myself in the Debugger Users group. I have added ASPNET and even IUSR_SERVERNAME to the Debuggers group (don't worry, it's a dev server not a live machine) and I still get "Access Denied"...
1
5146
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.
1
8612
by: Odd B Andersen | last post by:
I get this message in the db2diag.log. 2008-04-01-10.41.37.174000+120 E13321H539 LEVEL: Error (OS) PID : 3528 TID : 144 PROC : db2syscs.exe INSTANCE: DB2 NODE : 000 DB : XDKD01 APPHDL : 0-3541 APPID: 139.108.97.170.43026.0804010841 EDUID : 144 EDUNAME: db2agent (XDKD01) 0 FUNCTION: DB2 UDB, oper system services,...
0
9844
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
9683
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10578
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
9409
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...
0
5670
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
5851
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4477
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
4049
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3126
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.