Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #11478

Re: FAQ Topic - Why do I get permission denied when accessing a frame/window? (2012-02-02)

From Dr J R Stockton <reply1206@merlyn.demon.co.uk>
Newsgroups comp.lang.javascript
Subject Re: FAQ Topic - Why do I get permission denied when accessing a frame/window? (2012-02-02)
Date 2012-02-07 21:41 +0000
Organization Home
Message-ID <Qq1LjHFfqZMPFw3T@invalid.uk.co.demon.merlyn.invalid> (permalink)
References (1 earlier) <70sli7dgivd0in2v9vuebuqkj5kp8bha8s@4ax.com> <N1i8U6HfYGLPFw9V@invalid.uk.co.demon.merlyn.invalid> <krpui7hli6jdbf3s2k8kpb703fr26kcch7@4ax.com> <Xns9FF17E3E13CCFeejj99@194.109.133.133> <mba0j75b4c40f7lvccf8rvrb6ha71p7nds@4ax.com>

Show all headers | View raw


In comp.lang.javascript message <mba0j75b4c40f7lvccf8rvrb6ha71p7nds@4ax.
com>, Mon, 6 Feb 2012 11:29:59, Gene Wirchenko <genew@ocis.net> posted:

>On 06 Feb 2012 11:24:36 GMT, "Evertjan."
><exjxw.hannivoort@interxnl.net> wrote:
>
>>Gene Wirchenko wrote on 06 feb 2012 in comp.lang.javascript:
>>
>>> On Fri, 3 Feb 2012 22:56:31 +0000, Dr J R Stockton
>>> <reply1205@merlyn.demon.co.uk> wrote:
>
>[snip]
>
>>>>GW for FAQ maintainer !
>>>
>>>      No.  I am much too ignorant of JavaScript to do it.
>>
>>We need one who is humble enough to admit to that.
>
>     While I know a lot more than I did not so long ago, I am still
>somewhat in the shallow end with my flotation jacket and leery of the
>dropoff.
>
>>And that is a faq!
>
>     Is there no one who knows JavaScript well who could do it?  I
>would be fine submitting some suggestions (from my fairly newbie
>perspective).


The problem in the past has been that maintainers have known JavaScript
too well, while being relatively poor at communicating to the sort of
people who are needing help.

An example from my own experience as a newcomer : I asked about writing
to a page which was already being displayed.  In those days, one might
need to use document.layers or document.all or document.getElementById,
for the general case of "labelling" and writing to a general location.

The then maintainer offered a complex piece of code which generated a
browser-dependent function to get a reference when called by another
function F expressed by a string; he said to use <div ID=anID></div> in
the HTML and F("anID", S) in the script to write string S into that div.

It worked, of course; and went into the FAQ; it is now simplified into
Section 9.4.

But it did not say, and 9.4 does not explicitly say, that the solution
to the task has two distinct consecutive parts - getting a reference to
the element, and setting the value` of the element.  It did not
explicitly say that the solution could be used for most types of
container element.  It did not mention that such a reference could be
obtained in other ways such as forms[3] or this.form.Btn1.

The two parts, separated but joinable, are far more widely useful than
the united code.


Now see <http://www.merlyn.demon.co.uk/js-faq-u.HTM#MaWP> ff.


-- 
 (c) John Stockton, Surrey, UK.  ?@merlyn.demon.co.uk   Turnpike v6.05   MIME.
   Web  <http://www.merlyn.demon.co.uk/> - FAQish topics, acronyms, & links.
 Proper <= 4-line sig. separator as above, a line exactly "-- " (SonOfRFC1036)
 Do not Mail News to me. Before a reply, quote with ">" or "> " (SonOfRFC1036)

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

FAQ Topic - Why do I get permission denied when accessing a frame/window? (2012-02-02) "FAQ server" <javascript@dotinternet.be> - 2012-02-02 00:00 +0000
  Re: FAQ Topic - Why do I get permission denied when accessing a frame/window? (2012-02-02) Gene Wirchenko <genew@ocis.net> - 2012-02-02 12:21 -0800
    Re: FAQ Topic - Why do I get permission denied when accessing a frame/window? (2012-02-02) Dr J R Stockton <reply1205@merlyn.demon.co.uk> - 2012-02-03 22:56 +0000
      Re: FAQ Topic - Why do I get permission denied when accessing a frame/window? (2012-02-02) Gene Wirchenko <genew@ocis.net> - 2012-02-05 21:39 -0800
        Re: FAQ Topic - Why do I get permission denied when accessing a frame/window? (2012-02-02) "Evertjan." <exjxw.hannivoort@interxnl.net> - 2012-02-06 11:24 +0000
          Re: FAQ Topic - Why do I get permission denied when accessing a frame/window? (2012-02-02) Gene Wirchenko <genew@ocis.net> - 2012-02-06 11:29 -0800
            Re: FAQ Topic - Why do I get permission denied when accessing a frame/window? (2012-02-02) Dr J R Stockton <reply1206@merlyn.demon.co.uk> - 2012-02-07 21:41 +0000
              Re: FAQ Topic - Why do I get permission denied when accessing a frame/window? (2012-02-02) "Evertjan." <exjxw.hannivoort@interxnl.net> - 2012-02-08 09:00 +0000

csiph-web