SEO Forums: Your seo discussion forum  
Welcome, Unregistered.
You last visited: Today at 01:11 AM
Tags:



Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-26-2008, 04:38 AM
Jeff Bigham
Guest
 
Posts: n/a
Default "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
Reply With Quote


  #2 (permalink)  
Old 09-26-2008, 04:38 AM
sasuke
Guest
 
Posts: n/a
Default Re: "Access is denied" in IE on node.focus()

On Sep 26, 4:12*am, Jeff Bigham <jeffrey.big...@gmail.com> wrote:
> 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

Reply With Quote


  #3 (permalink)  
Old 09-26-2008, 08:31 PM
Thomas 'PointedEars' Lahn
Guest
 
Posts: n/a
Default Re: "Access is denied" in IE on node.focus()

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.microsoft.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
Reply With Quote


  #4 (permalink)  
Old 09-27-2008, 07:23 AM
Jorge
Guest
 
Posts: n/a
Default Re: "Access is denied" in IE on node.focus()

On Sep 26, 9:28*pm, Thomas 'PointedEars' Lahn <PointedE...@web.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.microsoft.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.
Reply With Quote


  #5 (permalink)  
Old 09-27-2008, 07:24 AM
Thomas 'PointedEars' Lahn
Guest
 
Posts: n/a
Default Re: "Access is denied" in IE on node.focus()

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.microsoft.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, <f806at$ail$1$8300dec7@news.demon.co.uk>
Reply With Quote


  #6 (permalink)  
Old 09-27-2008, 07:24 AM
Jorge
Guest
 
Posts: n/a
Default Re: "Access is denied" in IE on node.focus()

On Sep 27, 3:42*am, Thomas 'PointedEars' Lahn <PointedE...@web.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.
Reply With Quote


Reply



Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 01:11 AM.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Great Seo Blog at SEONOTEPAD.COM