Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #19954 > unrolled thread
| Started by | Tuxedo <tuxedo@mailinator.com> |
|---|---|
| First post | 2013-05-25 12:08 +0200 |
| Last post | 2013-05-27 21:24 +0000 |
| Articles | 20 on this page of 24 — 6 participants |
Back to article view | Back to comp.lang.javascript
Scroll position detection Tuxedo <tuxedo@mailinator.com> - 2013-05-25 12:08 +0200
Re: Scroll position detection "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2013-05-25 13:12 +0200
Re: Scroll position detection Tuxedo <tuxedo@mailinator.com> - 2013-05-25 16:02 +0200
Re: Scroll position detection Joao Rodrigues <groups_jr-1@yahoo.com.br> - 2013-05-27 01:07 -0300
Re: Scroll position detection Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-05-27 11:48 +0200
Re: Scroll position detection Joao Rodrigues <groups_jr-1@yahoo.com.br> - 2013-05-27 09:33 -0300
Re: Scroll position detection Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-05-27 14:39 +0200
Re: Scroll position detection Joao Rodrigues <groups_jr-1@yahoo.com.br> - 2013-05-27 11:33 -0300
Re: Scroll position detection Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-05-27 16:42 +0200
Re: Scroll position detection Denis McMahon <denismfmcmahon@gmail.com> - 2013-05-27 12:37 +0000
Re: Scroll position detection Joao Rodrigues <groups_jr-1@yahoo.com.br> - 2013-05-27 09:57 -0300
Re: Scroll position detection Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-05-27 16:45 +0200
Re: Scroll position detection Joao Rodrigues <groups_jr-1@yahoo.com.br> - 2013-05-27 11:58 -0300
Re: Scroll position detection Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-05-27 17:27 +0200
Re: Scroll position detection Joao Rodrigues <groups_jr-1@yahoo.com.br> - 2013-05-27 13:12 -0300
Re: Scroll position detection Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-05-27 19:41 +0200
Re: Scroll position detection Joao Rodrigues <groups_jr-1@yahoo.com.br> - 2013-05-27 15:24 -0300
Re: Scroll position detection Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-05-27 21:10 +0200
Re: Scroll position detection Joao Rodrigues <groups_jr-1@yahoo.com.br> - 2013-05-27 18:35 -0300
Re: Scroll position detection Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-05-28 00:00 +0200
Re: Scroll position detection Stefan Weiss <krewecherl@gmail.com> - 2013-05-28 02:30 +0200
Re: Scroll position detection Denis McMahon <denismfmcmahon@gmail.com> - 2013-05-27 10:16 +0000
Re: Scroll position detection Joao Rodrigues <groups_jr-1@yahoo.com.br> - 2013-05-27 09:45 -0300
Re: Scroll position detection Denis McMahon <denismfmcmahon@gmail.com> - 2013-05-27 21:24 +0000
Page 1 of 2 [1] 2 Next page →
| From | Tuxedo <tuxedo@mailinator.com> |
|---|---|
| Date | 2013-05-25 12:08 +0200 |
| Subject | Scroll position detection |
| Message-ID | <knq2it$m8o$1@news.albasani.net> |
I've used documentElement.scrollTop to identify page scroll position for
returning to previous page links.
However, I only just realised it doesn't work in Chrome and perhaps
therefore likely some other browers too.
Instead, I found body.scrollTop works in Chrome but doesn't work in FF.
While <!DOCTYPE html> is in use, would the following cover most situations
where scroll position can be identified?
if(document.documentElement.scrollTop){
y = document.documentElement.scrollTop;
}
if(document.body.scrollTop){
y = document.body.scrollTop;
}
Many thanks,
Tuxedo
[toc] | [next] | [standalone]
| From | "Evertjan." <exxjxw.hannivoort@inter.nl.net> |
|---|---|
| Date | 2013-05-25 13:12 +0200 |
| Message-ID | <XnsA1CB865D2BD6Aeejj99@194.109.133.133> |
| In reply to | #19954 |
Tuxedo wrote on 25 mei 2013 in comp.lang.javascript:
> if(document.documentElement.scrollTop){
> y = document.documentElement.scrollTop;
>}
> if(document.body.scrollTop){
> y = document.body.scrollTop;
>}
>
Try this:
<body onclick='alert
(document.documentElement.scrollTop||document.body.scrollTop)'>
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
[toc] | [prev] | [next] | [standalone]
| From | Tuxedo <tuxedo@mailinator.com> |
|---|---|
| Date | 2013-05-25 16:02 +0200 |
| Message-ID | <knqg8o$i8e$1@news.albasani.net> |
| In reply to | #19955 |
Evertjan. wrote:
> Tuxedo wrote on 25 mei 2013 in comp.lang.javascript:
>
> > if(document.documentElement.scrollTop){
> > y = document.documentElement.scrollTop;
> >}
> > if(document.body.scrollTop){
> > y = document.body.scrollTop;
> >}
> >
>
> Try this:
>
> <body onclick='alert
> (document.documentElement.scrollTop||document.body.scrollTop)'>
>
Thanks for the short version, it works fine.
Tuxedo
[toc] | [prev] | [next] | [standalone]
| From | Joao Rodrigues <groups_jr-1@yahoo.com.br> |
|---|---|
| Date | 2013-05-27 01:07 -0300 |
| Message-ID | <knum6d$7iu$1@speranza.aioe.org> |
| In reply to | #19955 |
On 25/05/2013 08:12, Evertjan. wrote:
> Tuxedo wrote on 25 mei 2013 in comp.lang.javascript:
>
>> if(document.documentElement.scrollTop){
>> y = document.documentElement.scrollTop;
>> }
>> if(document.body.scrollTop){
>> y = document.body.scrollTop;
>> }
>>
>
> Try this:
>
> <body onclick='alert
> (document.documentElement.scrollTop||document.body.scrollTop)'>
>
The W3C standard is pageYOffset:
<http://www.w3.org/TR/cssom-view/#dom-window-pageyoffset>
Also see:
<http://www.quirksmode.org/dom/w3c_cssom.html>
and
<https://developer.mozilla.org/en-US/docs/Web/API/window.scrollY>
So, nowadays we need to test for pageYOffset before testing for the
proprietary scrollTop. E.g
function getVerticalScroll() {
var yScroll, doc = document;
if (window.pageYOffset) {
// IE9+, FF3+, Safari 4+, Chrome 4+, Opera 10+
yScroll = window.pageYOffset;
} else if (doc.documentElement && doc.documentElement.scrollTop) {
// IE8 and older browsers in standards-compliant mode (strict mode).
yScroll = doc.documentElement.scrollTop;
} else if (doc.body) {
// IE in quirks mode and a last attempt for the other browsers.
yScroll = doc.body.scrollTop;
}
return yScroll;
}
--
Joao Rodrigues
[toc] | [prev] | [next] | [standalone]
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
|---|---|
| Date | 2013-05-27 11:48 +0200 |
| Message-ID | <10408762.JzxCSuINyj@PointedEars.de> |
| In reply to | #19965 |
Joao Rodrigues wrote:
> On 25/05/2013 08:12, Evertjan. wrote:
>> Tuxedo wrote on 25 mei 2013 in comp.lang.javascript:
>>> if(document.documentElement.scrollTop){
>>> y = document.documentElement.scrollTop;
>>> }
>>> if(document.body.scrollTop){
>>> y = document.body.scrollTop;
>>> }
>>>
>>
>> Try this:
>>
>> <body onclick='alert
>> (document.documentElement.scrollTop||document.body.scrollTop)'>
>>
>
> The W3C standard is pageYOffset:
> <http://www.w3.org/TR/cssom-view/#dom-window-pageyoffset>
When will you ever learn?
| CSSOM View Module
|
| W3C Working Draft 4 August 2011
|
| […]
| Publication as a Working Draft does not imply endorsement by the W3C
| Membership. This is a draft document and may be updated, replaced or
| obsoleted by other documents at any time. It is inappropriate to cite this
| document as other than work in progress.
--
PointedEars
Twitter: @PointedEars2
Please do not Cc: me. / Bitte keine Kopien per E-Mail.
[toc] | [prev] | [next] | [standalone]
| From | Joao Rodrigues <groups_jr-1@yahoo.com.br> |
|---|---|
| Date | 2013-05-27 09:33 -0300 |
| Message-ID | <knvjri$jvv$1@speranza.aioe.org> |
| In reply to | #19966 |
On 27/05/2013 06:48, Thomas 'PointedEars' Lahn wrote: > Joao Rodrigues wrote: > >> The W3C standard is pageYOffset: >> <http://www.w3.org/TR/cssom-view/#dom-window-pageyoffset> > > When will you ever learn? > > | CSSOM View Module > | > | W3C Working Draft 4 August 2011 > | > | […] > | Publication as a Working Draft does not imply endorsement by the W3C > | Membership. This is a draft document and may be updated, replaced or > | obsoleted by other documents at any time. It is inappropriate to cite this > | document as other than work in progress. > > So? -- Joao Rodrigues
[toc] | [prev] | [next] | [standalone]
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
|---|---|
| Date | 2013-05-27 14:39 +0200 |
| Message-ID | <1961737.pa7Y0WMOot@PointedEars.de> |
| In reply to | #19969 |
Joao Rodrigues wrote: > On 27/05/2013 06:48, Thomas 'PointedEars' Lahn wrote: >> Joao Rodrigues wrote: >>> The W3C standard is pageYOffset: >>> <http://www.w3.org/TR/cssom-view/#dom-window-pageyoffset> >> >> When will you ever learn? >> >> | CSSOM View Module >> | >> | W3C Working Draft 4 August 2011 >> | >> | […] >> | Publication as a Working Draft does not imply endorsement by the W3C >> | Membership. This is a draft document and may be updated, replaced or >> | obsoleted by other documents at any time. It is inappropriate to cite >> | this document as other than work in progress. > > So? Contrary to what you claimed, the W3C standard is _not_ pageYOffset because *there* *is* *no* *W3C* *standard* regarding such properties (yet). Also, that this *Working* *Draft* has not been updated for almost two years does not bode well for it ever becoming a W3C standard. -- PointedEars Twitter: @PointedEars2 Please do not Cc: me. / Bitte keine Kopien per E-Mail.
[toc] | [prev] | [next] | [standalone]
| From | Joao Rodrigues <groups_jr-1@yahoo.com.br> |
|---|---|
| Date | 2013-05-27 11:33 -0300 |
| Message-ID | <knvqs4$98b$1@speranza.aioe.org> |
| In reply to | #19970 |
On 27/05/2013 09:39, Thomas 'PointedEars' Lahn wrote: > Joao Rodrigues wrote: > >> On 27/05/2013 06:48, Thomas 'PointedEars' Lahn wrote: >>> Joao Rodrigues wrote: >>>> The W3C standard is pageYOffset: >>>> <http://www.w3.org/TR/cssom-view/#dom-window-pageyoffset> >>> >>> When will you ever learn? >>> >>> | CSSOM View Module >>> | >>> | W3C Working Draft 4 August 2011 >>> | >>> | […] >>> | Publication as a Working Draft does not imply endorsement by the W3C >>> | Membership. This is a draft document and may be updated, replaced or >>> | obsoleted by other documents at any time. It is inappropriate to cite >>> | this document as other than work in progress. >> >> So? > > Contrary to what you claimed, the W3C standard is _not_ pageYOffset because > *there* *is* *no* *W3C* *standard* regarding such properties (yet). Also, > that this *Working* *Draft* has not been updated for almost two years does > not bode well for it ever becoming a W3C standard. > Thomas, you are a very smart guy and you need not use fallacies to make believe you are always correct. Almost everything in W3C site is a Working Draft or a Recommendation: <http://www.w3.org/TR/#w3c_all> -- Joao Rodrigues
[toc] | [prev] | [next] | [standalone]
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
|---|---|
| Date | 2013-05-27 16:42 +0200 |
| Message-ID | <1784131.HvImZSadDv@PointedEars.de> |
| In reply to | #19974 |
Joao Rodrigues wrote: > On 27/05/2013 09:39, Thomas 'PointedEars' Lahn wrote: >> Joao Rodrigues wrote: >>> On 27/05/2013 06:48, Thomas 'PointedEars' Lahn wrote: >>>> Joao Rodrigues wrote: >>>>> The W3C standard is pageYOffset: >>>>> <http://www.w3.org/TR/cssom-view/#dom-window-pageyoffset> >>>> >>>> When will you ever learn? >>>> >>>> | CSSOM View Module >>>> | >>>> | W3C Working Draft 4 August 2011 >>>> | >>>> | […] >>>> | Publication as a Working Draft does not imply endorsement by the W3C >>>> | Membership. This is a draft document and may be updated, replaced or >>>> | obsoleted by other documents at any time. It is inappropriate to cite >>>> | this document as other than work in progress. >>> >>> So? >> >> Contrary to what you claimed, the W3C standard is _not_ pageYOffset >> because *there* *is* *no* *W3C* *standard* regarding such properties >> (yet). Also, that this *Working* *Draft* has not been updated for almost >> two years does not bode well for it ever becoming a W3C standard. > > Thomas, you are a very smart guy and you need not use fallacies to make > believe you are always correct. Almost everything in W3C site is a > Working Draft or a Recommendation: > <http://www.w3.org/TR/#w3c_all> The fallacies are yours. A Working Draft and anything else with a status *other* than Recommendation is _not_ (yet) a W3C standard: <http://www.w3.org/standards/about.html> p. You have been told this several times before. Yet you continue to claim the opposite of the truth. -- PointedEars Twitter: @PointedEars2 Please do not Cc: me. / Bitte keine Kopien per E-Mail.
[toc] | [prev] | [next] | [standalone]
| From | Denis McMahon <denismfmcmahon@gmail.com> |
|---|---|
| Date | 2013-05-27 12:37 +0000 |
| Message-ID | <knvk20$sdf$1@dont-email.me> |
| In reply to | #19969 |
On Mon, 27 May 2013 09:33:54 -0300, Joao Rodrigues wrote: > On 27/05/2013 06:48, Thomas 'PointedEars' Lahn wrote: >> Joao Rodrigues wrote: >>> The W3C standard is pageYOffset: >> When will you ever learn? >> | W3C Working Draft 4 August 2011 | > So? Do you not understand the difference between a standard and a working draft? Also, you made me agree with pointy head. That is unforgiveable! -- Denis McMahon, denismfmcmahon@gmail.com
[toc] | [prev] | [next] | [standalone]
| From | Joao Rodrigues <groups_jr-1@yahoo.com.br> |
|---|---|
| Date | 2013-05-27 09:57 -0300 |
| Message-ID | <knvl83$nvp$1@speranza.aioe.org> |
| In reply to | #19971 |
On 27/05/2013 09:37, Denis McMahon wrote: > On Mon, 27 May 2013 09:33:54 -0300, Joao Rodrigues wrote: > >> On 27/05/2013 06:48, Thomas 'PointedEars' Lahn wrote: >>> Joao Rodrigues wrote: > >>>> The W3C standard is pageYOffset: > >>> When will you ever learn? > >>> | W3C Working Draft 4 August 2011 | > >> So? > > Do you not understand the difference between a standard and a working > draft? Of course, I do! The fact is *all* browsers (even IE9 / 10 !!!) are compatible with pageY[X]Offset nowadays. So there's no plausible reason to not use these properties nowadays. > > Also, you made me agree with pointy head. That is unforgiveable! LOL. -- Joao Rodrigues
[toc] | [prev] | [next] | [standalone]
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
|---|---|
| Date | 2013-05-27 16:45 +0200 |
| Message-ID | <28567346.elAEKrzd9Y@PointedEars.de> |
| In reply to | #19973 |
Joao Rodrigues wrote: > On 27/05/2013 09:37, Denis McMahon wrote: >> On Mon, 27 May 2013 09:33:54 -0300, Joao Rodrigues wrote: >>> On 27/05/2013 06:48, Thomas 'PointedEars' Lahn wrote: >>>> Joao Rodrigues wrote: >>>>> The W3C standard is pageYOffset: >>>> >>>> When will you ever learn? >>>> >>>> | W3C Working Draft 4 August 2011 | >>> >>> So? >> >> Do you not understand the difference between a standard and a working >> draft? > > Of course, I do! The fact is *all* browsers (even IE9 / 10 !!!) are > compatible with pageY[X]Offset nowadays. So there's no plausible reason > to not use these properties nowadays. Red herring. You have claimed it would be “the W3C standard”; it is not. -- PointedEars Twitter: @PointedEars2 Please do not Cc: me. / Bitte keine Kopien per E-Mail.
[toc] | [prev] | [next] | [standalone]
| From | Joao Rodrigues <groups_jr-1@yahoo.com.br> |
|---|---|
| Date | 2013-05-27 11:58 -0300 |
| Message-ID | <knvsaa$dmv$1@speranza.aioe.org> |
| In reply to | #19976 |
On 27/05/2013 11:45, Thomas 'PointedEars' Lahn wrote: > Joao Rodrigues wrote: > >> On 27/05/2013 09:37, Denis McMahon wrote: >>> On Mon, 27 May 2013 09:33:54 -0300, Joao Rodrigues wrote: >>>> On 27/05/2013 06:48, Thomas 'PointedEars' Lahn wrote: >>>>> Joao Rodrigues wrote: >>>>>> The W3C standard is pageYOffset: >>>>> >>>>> When will you ever learn? >>>>> >>>>> | W3C Working Draft 4 August 2011 | >>>> >>>> So? >>> >>> Do you not understand the difference between a standard and a working >>> draft? >> >> Of course, I do! The fact is *all* browsers (even IE9 / 10 !!!) are >> compatible with pageY[X]Offset nowadays. So there's no plausible reason >> to not use these properties nowadays. > > Red herring. You have claimed it would be “the W3C standard”; it is not. > You insist in answering a fallacy with another. And you are nit-picking, as you usually do, on some trivial aspect of one's post instead of giving a real solution to the OP. I don't know what you do for living, but it is obvious that you have too much time in your hands to spend all day long trying to prove you are always right. Do your boss know about it? Okay, only W3C's Recommendations are the "web standards". But tell me: is there any reason to not test for pageYOffset support first in the OP's code? -- Joao Rodrigues
[toc] | [prev] | [next] | [standalone]
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
|---|---|
| Date | 2013-05-27 17:27 +0200 |
| Message-ID | <1886046.z6t1GHbE6s@PointedEars.de> |
| In reply to | #19977 |
Joao Rodrigues wrote: > On 27/05/2013 11:45, Thomas 'PointedEars' Lahn wrote: >> Joao Rodrigues wrote: >>> On 27/05/2013 09:37, Denis McMahon wrote: >>>> On Mon, 27 May 2013 09:33:54 -0300, Joao Rodrigues wrote: >>>>> On 27/05/2013 06:48, Thomas 'PointedEars' Lahn wrote: >>>>>> Joao Rodrigues wrote: >>>>>>> The W3C standard is pageYOffset: >>>>>> >>>>>> When will you ever learn? >>>>>> >>>>>> | W3C Working Draft 4 August 2011 | >>>>> >>>>> So? >>>> >>>> Do you not understand the difference between a standard and a working >>>> draft? >>> >>> Of course, I do! The fact is *all* browsers (even IE9 / 10 !!!) are >>> compatible with pageY[X]Offset nowadays. So there's no plausible reason >>> to not use these properties nowadays. >> >> Red herring. You have claimed it would be “the W3C standard”; it is not. > > You insist in answering a fallacy with another. There is no fallacy on my part; you claimed something that I have proven wrong. You should learn to live with that, and in the future be slower to make claims that you are not able to substantiate. > And you are nit-picking, No, I have made your false premise obvious (to you). This is important because /ex falso quodlibet/ (“from a false statement *anything* – right *and* wrong – can be deduced”) applies. > as you usually do, /Argumentum ad hominem/, and /ad populum/. I would strongly suggest instead that you go quiet when you are out of sound arguments. > on some trivial aspect It was you who claimed that it was “the W3C standard”. It is _not_ trivial that you are wrong, because W3C standards/Recommendations have significance to developers: It usually means that there are at least two interoperable implementations of the specified feature. (If only you knew what you are talking about.) > of one's post It has been claimed by at least two people, and proved by at least one person (me), that *you* are wrong. Live with it. > instead of giving a real solution to the OP. This is not a support forum. It is a discussion forum. You have argued something based on a false premise. That premise has been discussed, and proven wrong, so that it can be safely ignored. > I don't know what you do for living, but it is obvious that you have too > much time in your hands to spend all day long trying to prove you are > always right. Do your boss know about it? Argumentum ad hominem again. You should be ashamed of yourself that you resort to such low blows. > Okay, only W3C's Recommendations are the "web standards". Finally he can see, and it only took him … a few years? :-> > But tell me: is there any reason to not test for pageYOffset support first > in the OP's code? I will not waste more time to consider that question – yet another strawman argument – because of your anti-social behavior and because I have never claimed that there was such a reason in the first place. It is only you who has (intentionally?) misinterpreted my comment. May you die in ignorance. Score adjusted -- PointedEars Twitter: @PointedEars2 Please do not Cc: me. / Bitte keine Kopien per E-Mail.
[toc] | [prev] | [next] | [standalone]
| From | Joao Rodrigues <groups_jr-1@yahoo.com.br> |
|---|---|
| Date | 2013-05-27 13:12 -0300 |
| Message-ID | <ko00lg$r85$1@speranza.aioe.org> |
| In reply to | #19978 |
On 27/05/2013 12:27, Thomas 'PointedEars' Lahn wrote: > Joao Rodrigues wrote: >>>>> >>>>> Do you not understand the difference between a standard and a working >>>>> draft? >>>> >>>> Of course, I do! The fact is *all* browsers (even IE9 / 10 !!!) are >>>> compatible with pageY[X]Offset nowadays. So there's no plausible reason >>>> to not use these properties nowadays. >>> >>> Red herring. You have claimed it would be “the W3C standard”; it is not. >> >> You insist in answering a fallacy with another. > > There is no fallacy on my part; Yes, sir, there is! And you know exactly where. > you claimed something that I have proven > wrong. You have proven?! You have only spotted that was a W3C's Working Draft; ie, a Recommendation to-be in some time in the future. Just that! <snip> >> But tell me: is there any reason to not test for pageYOffset support first >> in the OP's code? > > I will not waste more time to consider that question – yet another strawman > argument – because of your anti-social behavior... You are gazing at yourself in the mirror. Freud explains. > and because I have never > claimed that there was such a reason in the first place. It is only you who > has (intentionally?) misinterpreted my comment. May you die in ignorance. > > Score adjusted How can you be so pedantic? -- Joao Rodrigues
[toc] | [prev] | [next] | [standalone]
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
|---|---|
| Date | 2013-05-27 19:41 +0200 |
| Message-ID | <1614253.6SbFCPW3aX@PointedEars.de> |
| In reply to | #19979 |
Joao Rodrigues wrote: > On 27/05/2013 12:27, Thomas 'PointedEars' Lahn wrote: >> you claimed something that I have proven wrong. > > You have proven?! You have only spotted that was a W3C's Working Draft; > ie, a Recommendation to-be in some time in the future. Just that! A Working Draft ist _not_ “a Recommendation to-be some time in the future”. It is something that *might become* a Recommendation some time in the future. Not only the W3C Process Document, that I cited, but also the paragraph that I quoted from the very document that you cited makes that *very* clear to anyone who can read. -- PointedEars Twitter: @PointedEars2 Please do not Cc: me. / Bitte keine Kopien per E-Mail.
[toc] | [prev] | [next] | [standalone]
| From | Joao Rodrigues <groups_jr-1@yahoo.com.br> |
|---|---|
| Date | 2013-05-27 15:24 -0300 |
| Message-ID | <ko08c2$i11$1@speranza.aioe.org> |
| In reply to | #19982 |
On 27/05/2013 14:41, Thomas 'PointedEars' Lahn wrote: > Joao Rodrigues wrote: > >> On 27/05/2013 12:27, Thomas 'PointedEars' Lahn wrote: >>> you claimed something that I have proven wrong. >> >> You have proven?! You have only spotted that was a W3C's Working Draft; >> ie, a Recommendation to-be in some time in the future. Just that! > > A Working Draft ist _not_ “a Recommendation to-be some time in the future”. > It is something that *might become* a Recommendation some time in the > future. Not only the W3C Process Document, that I cited, but also the > paragraph that I quoted from the very document that you cited makes that > *very* clear to anyone who can read. > The W3C Editors' Draft has just been updated (27 May 2013): <http://dev.w3.org/csswg/cssom-view/> Note that the pageYOffset attribute (which actually returns the same value returned by the scrollY attribute) is just one item among many others of that document. AFAIC pageYOffset hasn't changed since the latest version of the Working Draft. Nowadays, pageYOffset is widely supported by *all* major web browsers (IE9+, FF3+, Safari 4+, Chrome 4+, Opera 10+) since the Working Draft was produced by the W3C's CSS Working Group (people from Microsoft, Google, Mozilla, Opera, Apple, Adobe, W3C Staff, HP, Intel, etc., even from jQuery Foundation - sorry to let you know that.) <http://www.w3.org/Style/CSS/members> Therefore, going back to the OP's code, I cannot see any reason to not test for window.pageYOffset before testing for the MSIE proprietary scrollTop. -- Joao Rodrigues
[toc] | [prev] | [next] | [standalone]
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
|---|---|
| Date | 2013-05-27 21:10 +0200 |
| Message-ID | <1678891.pDxAfIlnAs@PointedEars.de> |
| In reply to | #19983 |
Joao Rodrigues wrote: > On 27/05/2013 14:41, Thomas 'PointedEars' Lahn wrote: >> Joao Rodrigues wrote: >>> On 27/05/2013 12:27, Thomas 'PointedEars' Lahn wrote: >>>> you claimed something that I have proven wrong. >>> You have proven?! You have only spotted that was a W3C's Working Draft; >>> ie, a Recommendation to-be in some time in the future. Just that! >> >> A Working Draft ist _not_ “a Recommendation to-be some time in the >> future”. It is something that *might become* a Recommendation some time >> in the future. Not only the W3C Process Document, that I cited, but also >> the paragraph that I quoted from the very document that you cited makes >> that *very* clear to anyone who can read. > > The W3C Editors' Draft has just been updated (27 May 2013): > <http://dev.w3.org/csswg/cssom-view/> > > Note that the pageYOffset attribute (which actually returns the same > value returned by the scrollY attribute) is just one item among many > others of that document. AFAIC pageYOffset hasn't changed since the > latest version of the Working Draft. An Editor's Draft has even less significance than a Working Draft. A Recommendation has the support of the W3C Membership, which is why it is reasonably called a “Web standard”. A Working Draft usually (but not always) has the support of all people of the Working Group (and so, it can be assumed, by the companies they work for, unless they are independent invited experts). An Editor's Draft does not have even that. > Nowadays, pageYOffset is widely supported by *all* major web browsers > (IE9+, FF3+, Safari 4+, Chrome 4+, Opera 10+) since the Working Draft > was produced by the W3C's CSS Working Group (people from Microsoft, > Google, Mozilla, Opera, Apple, Adobe, W3C Staff, HP, Intel, etc., even > from jQuery Foundation - sorry to let you know that.) > <http://www.w3.org/Style/CSS/members> Do you really not realize how embarrassing your continuing unfounded, stupid megalomania is for you? I have been doing professional Web development for 13 years now, Web development in general even longer, and I certainly do not need to be lectured – by you of all people – about browser support or the W3C. > Therefore, going back to the OP's code, I cannot see any reason to not > test for window.pageYOffset before testing for the MSIE proprietary > scrollTop. The thing that you apparently are unable to understand is that *both* properties are nothing but proprietary as of now. -- PointedEars Twitter: @PointedEars2 Please do not Cc: me. / Bitte keine Kopien per E-Mail.
[toc] | [prev] | [next] | [standalone]
| From | Joao Rodrigues <groups_jr-1@yahoo.com.br> |
|---|---|
| Date | 2013-05-27 18:35 -0300 |
| Message-ID | <ko0jis$j7t$1@speranza.aioe.org> |
| In reply to | #19985 |
On 27/05/2013 16:10, Thomas 'PointedEars' Lahn wrote: > Joao Rodrigues wrote: >> The W3C Editors' Draft has just been updated (27 May 2013): >> <http://dev.w3.org/csswg/cssom-view/> >> >> Note that the pageYOffset attribute (which actually returns the same >> value returned by the scrollY attribute) is just one item among many >> others of that document. AFAIC pageYOffset hasn't changed since the >> latest version of the Working Draft. > > An Editor's Draft has even less significance than a Working Draft. A > Recommendation has the support of the W3C Membership, which is why it is > reasonably called a “Web standard”. A Working Draft usually (but not > always) has the support of all people of the Working Group (and so, it can > be assumed, by the companies they work for, unless they are independent > invited experts). An Editor's Draft does not have even that. You talk as if you were a member of the W3C or the CSS Working Group. But searching for "Thomas PointedEars Lahn" in Google, I couldn't find anything about your work other than thousands of posts in Usenet, many of them containing pedantic assertions and/or aggressive and abusive language specially with newcomers. > >> Nowadays, pageYOffset is widely supported by *all* major web browsers >> (IE9+, FF3+, Safari 4+, Chrome 4+, Opera 10+) since the Working Draft >> was produced by the W3C's CSS Working Group (people from Microsoft, >> Google, Mozilla, Opera, Apple, Adobe, W3C Staff, HP, Intel, etc., even >> from jQuery Foundation - sorry to let you know that.) >> <http://www.w3.org/Style/CSS/members> > > Do you really not realize how embarrassing your continuing unfounded, stupid > megalomania is for you? Only you are the megalomaniac here, mister. Do you think you are of any importance in the web development world? If so, where are your videos, books and any other reference material. Personal website doesn't count. > I have been doing professional Web development for > 13 years now, Web development in general even longer, Professional?! I don't think so. Obviously you live on Government funds, doing nothing all day long other than abusing and trolling everybody here in comp.lang.javascript. And you have been doing that for long 13 years for sure. That's what Internet archives tell me so. Angela Merkel should be told about that. > and I certainly do not > need to be lectured – by you of all people – about browser support or the > W3C. > Quoting you: "Usenet is _not_ a one-to-one communications medium". So, I'm not lecturing anything. >> Therefore, going back to the OP's code, I cannot see any reason to not >> test for window.pageYOffset before testing for the MSIE proprietary >> scrollTop. > > The thing that you apparently are unable to understand is that *both* > properties are nothing but proprietary as of now. > That pageYOffset is proprietary?!?! Now you're delusional. -- Joao Rodrigues
[toc] | [prev] | [next] | [standalone]
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
|---|---|
| Date | 2013-05-28 00:00 +0200 |
| Message-ID | <7684548.plq7IPHa5s@PointedEars.de> |
| In reply to | #19988 |
Joao Rodrigues wrote:
> On 27/05/2013 16:10, Thomas 'PointedEars' Lahn wrote:
>> Joao Rodrigues wrote:
>
> [libel]
>
>>> Therefore, going back to the OP's code, I cannot see any reason to not
>>> test for window.pageYOffset before testing for the MSIE proprietary
>>> scrollTop.
>>
>> The thing that you apparently are unable to understand is that *both*
>> properties are nothing but proprietary as of now.
>
> That pageYOffset is proprietary?!?! Now you're delusional.
“Multiple exclamation marks,” he went on, shaking his head,
“are a sure sign of a diseased mind.”
─Terry Pratchett, “Eric”
--
PointedEars
Twitter: @PointedEars2
Please do not Cc: me. / Bitte keine Kopien per E-Mail.
[toc] | [prev] | [next] | [standalone]
Page 1 of 2 [1] 2 Next page →
Back to top | Article view | comp.lang.javascript
csiph-web