Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #7748
| From | Dr J R Stockton <reply1143@merlyn.demon.co.uk> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: function call location? |
| Date | 2011-10-27 19:27 +0100 |
| Organization | Home |
| Message-ID | <qJZ1rgE1JaqOFwXS@invalid.uk.co.demon.merlyn.invalid> (permalink) |
| References | (1 earlier) <20ecde0b-c4e3-44df-9e34-a447753b0fb9@g16g2000yqa.googlegroups.com> <Iw2tVDKADwoOFwho@invalid.uk.co.demon.merlyn.invalid> <8fa806c9-a274-4ca7-b6be-8d6235d2f7ae@s14g2000vbj.googlegroups.com> <JsntC3FA$vpOFwYn@invalid.uk.co.demon.merlyn.invalid> <67d427d7-f6c3-4e54-9a64-af58f667094f@u35g2000yqb.googlegroups.com> |
In comp.lang.javascript message <67d427d7-f6c3-4e54-9a64-af58f667094f@u3
5g2000yqb.googlegroups.com>, Wed, 26 Oct 2011 05:09:29, Scott Sauyet
<scott.sauyet@gmail.com> posted:
>Dr J R Stockton wrote:
>> Antony Scriven posted:
>>
>>> As Scott already said, why does it need to go near the
>>> script element?
>>
>> Because that, as a default, will in my pages usually be near enough
>> where I would choose to have it appear. Then, only where that is not
>> near enough will I need to indicate a specific location.
>
>I had been trying to point out, though, that mark-up proximity need
>have no bearing on visible proximity.
>
>What would you expect if the alert was called from a script running in
>the HEAD?
You missed the bit "in my pages". Because I like to have scripts in the
source adjacent to the forms that use them, the scripts in the heads (if
any) (and in include files) rarely contain specific material such as
alerts (apart from warnings issued as a result of browser testing, which
apply page-wide). You also missed "as a default"; I have always
intended to provide a possible second argument giving the exact
location, as an ID string or an element reference.
I would not expect; I would test. It might be OK, but does not need to
be.
General : FYI :
CSS : .TWO { border-bottom: 0.6ex double black; }
HTML : <span class=TWO>Maths result</span>
gives a nice text-scaled double underline, as I was taught to use in
school.
--
(c) John Stockton, nr London, UK. ?@merlyn.demon.co.uk Turnpike v6.05.
Website <http://www.merlyn.demon.co.uk/> - w. FAQish topics, links, acronyms
PAS EXE etc. : <http://www.merlyn.demon.co.uk/programs/> - see in 00index.htm
Dates - miscdate.htm estrdate.htm js-dates.htm pas-time.htm critdate.htm etc.
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar
function call location? Dr J R Stockton <reply1142@merlyn.demon.co.uk> - 2011-10-20 19:53 +0100
Re: function call location? Antony Scriven <adscriven@gmail.com> - 2011-10-20 17:13 -0700
Re: function call location? Dr J R Stockton <reply1142@merlyn.demon.co.uk> - 2011-10-22 18:43 +0100
Re: function call location? Scott Sauyet <scott.sauyet@gmail.com> - 2011-10-23 10:00 -0700
Re: function call location? Dr J R Stockton <reply1143@merlyn.demon.co.uk> - 2011-10-24 19:43 +0100
Re: function call location? Scott Sauyet <scott.sauyet@gmail.com> - 2011-10-25 05:13 -0700
Re: function call location? Dr J R Stockton <reply1143@merlyn.demon.co.uk> - 2011-10-26 20:13 +0100
Re: function call location? Antony Scriven <adscriven@gmail.com> - 2011-10-24 02:11 -0700
Re: function call location? Dr J R Stockton <reply1143@merlyn.demon.co.uk> - 2011-10-25 19:28 +0100
Re: function call location? Scott Sauyet <scott.sauyet@gmail.com> - 2011-10-26 05:09 -0700
Re: function call location? Dr J R Stockton <reply1143@merlyn.demon.co.uk> - 2011-10-27 19:27 +0100
Re: function call location? Antony Scriven <adscriven@gmail.com> - 2011-10-27 17:25 -0700
Re: function call location? Dr J R Stockton <reply1143@merlyn.demon.co.uk> - 2011-10-29 20:36 +0100
csiph-web