Home > Not Working > Javascript Scrolltop Not Working In Firefox

Javascript Scrolltop Not Working In Firefox

Contents

The script still works under Chrome and IE, so it must be an issue with FF. been linked to insufficient sleep"? Why do governments not execute or otherwise permanently contain super villains? Getting "Current Sitecore database cannot be established" using Sitecore Powershell Extensions I used a solution that I happened to already have on my laptop on an exam. Check This Out

BTW, if you scroll down the page you will see a "Top" button appear near the bottom right. Movie involving a cute Blondie that fights a dragon concatenate lines based on first char of next line Why didn't "spiel" get spelled with an "sh"? It seems to be a Firefox issue. –jthe Feb 4 '14 at 15:47 Indeed $("body, html").scrollTop(0) is working also in firefox. Portions of this content are ©1998–2016 by individual mozilla.org contributors.

Javascript Scrolltop Not Working In Firefox

Why do solar planes have many small propellers instead of fewer large ones? asked 2 years ago viewed 14611 times active 2 months ago Upcoming Events 2016 Community Moderator Election ends in 7 days Blog How We Make Money at Stack Overflow: 2016 Edition Is it legal to index into a struct? nickjames # February 21, 2014 at 4:25 am hi Paulie, no, I don't have a link for demo.

Do I need an Indie Studio Name? asked 1 year ago viewed 8489 times active 1 month ago Upcoming Events 2016 Community Moderator Election ends in 7 days Blog How We Make Money at Stack Overflow: 2016 Edition The Element.scrollTop property gets or sets the number of pixels that the content of an element is scrolled upward. Firefox Get Scrolltop As you say, it's odd that this didn't appear to be an issue until FF36.

Join them; it only takes a minute: Sign up document.body.scrollTop Firefox returns 0 : ONLY JS up vote 26 down vote favorite 2 Any alternatives in pure javascript? Document.body.scrolltop Firefox Here's a few links I've seen. Why Confidence Interval is always wider than Prediction interval? http://stackoverflow.com/questions/28633221/document-body-scrolltop-firefox-returns-0-only-js You won't be able to vote or comment. 001.animate(ScrollTop) not working in Firefox. (self.jquery)submitted 1 year ago by markj79There's been a lot of discussion about this problem on StackOverflow and I can't seem to solve

Email Address CSS-Tricks* is created, written by, and maintained by Chris Coyier and a team of swell people. Jquery Animate Scrolltop Not Working In Chrome Paulie_D # February 21, 2014 at 4:18 am Do you have a link? Thanks. –TheCuBeMan Oct 25 '15 at 16:26 add a comment| up vote 29 down vote A little off-topic, but if you want to animate using scrolltop, you must do $('html,body').animate({scrollTop:0}, 'slow'); Thanks –Al Ex Tsm Feb 20 '15 at 16:51 I've confirmed that this fixes my issue as well. –Martyn Chamberlin May 26 at 16:13 4 It doesn't work

Document.body.scrolltop Firefox

You can reset it. Clicking Here Because you're missing the closing quote in $("html, body) permalinkembedsavegive gold[–]markj79[S] 0 points1 point2 points 1 year ago(3 children)No I didn't copy my code. Javascript Scrolltop Not Working In Firefox Be cool. Firefox Scrolltop Always 0 Which version are you using?

http://www.greyhoundpets.com/greyhounds.php Near the top of the page, you'll see a "Select name" pull-down list. his comment is here It is made possible through sponsorships from products and services we like. *May or may not contain any actual "CSS" or "Tricks". But others reading this thread could help notify and disscuss the problem with Github-Firefox. Please post more of your code - the question shouldn't be dependent on external resources. Firefox Body Scrolltop

Does any organism use both photosynthesis and respiration? Can leaked nude pictures damage one's academic career? Paulie_D # February 21, 2014 at 4:28 am This is a common problem you can see in forums and stackoverflow. this contact form Animated Scroll If you want to animate a scroll, jQuery returns an error if using the window object (1.11.2 tested).

Simple geometry. Animate Not Working In Firefox Suggestions for easy peanut butter clean-up Can someone explain this visual proof of the sum of squares? Share save files between computers more hot questions question feed default about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life

Share save files between computers Getting "Current Sitecore database cannot be established" using Sitecore Powershell Extensions One Itemize problem How to check whether a partition is mounted by UUID?

Book 010, Number 3901 When has the Tory party split over trade issues? This should scroll to the requested name, but does not. This button also uses the jQuery scrollTop function and it still works in FF36. Jquery Animate Not Working In Firefox Join them; it only takes a minute: Sign up jQuery scrollTop() not working on 'body' element in Firefox up vote 5 down vote favorite I do not understand why the scrollTop()

Thanks. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. This button also uses the jQuery scrollTop function and it still works in FF36. http://qrwsoftware.com/not-working/scrolltop-javascript-example.html I don't know why that wasn't a problem in the past, but perhaps if you rename your function to something like scrollToName() that will resolve it?

Voila, it worked. Utensil that forms meat into cylinders GO OUT AND VOTE What difficulty would the Roman Empire have sieging a fantasy kingdom's 49m wall? In otherwords, a reduced test case. Have not tested yet on explorer: http://monkey-me.herokuapp.com https://github.com/coolcatDev/monkey-me-heroku/blob/master/static/js/myscripts.js At page load should scroll down to div '.content': var destiny = document.getElementsByClassName('content'); var destinyY = destiny[0].offsetTop; scrollTo(document.body, destinyY, 200); function scrollTo(element, to,

Safari is fine. Senff # February 21, 2014 at 8:39 am Out of the box, scrollto works fine in Firefox (mine at least): http://codepen.io/senff/full/ILgxw Paulie_D # February 21, 2014 at 8:47 am Out of Resources: A List Apart Smashing Magazine Sitepoint CSS-Tricks .net magazine Mozilla Hacks Opera Web Standards Curriculum Chromium blog jQuery API jQuery UI jQuery Mobile The jQuery Project JSON Other subreddits you Taxing GoFundMe Donations more hot questions question feed default about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts

why did scrolltop stop working in firefox 36? 6 replies 12 have this problem 3639 views Last reply by triggervorbs 1 year ago triggervorbs Posted 3/4/15, 1:53 PM I have a Paulie_D # February 21, 2014 at 5:13 am http://stackoverflow.com/questions/17776544/jquery-scrolltop-firefox-not-working ?? Anyone? Why do governments not execute or otherwise permanently contain super villains?

Back to top