My current project requires me to split up a particularly long survey into chunks, allowing a survey taker to only submit those chunks that he/she feels like submitting and ignoring the rest.
Now to be all spiffy I simply fade out the affected chunk once the user clicks submit and then throw back a growl notification at him thanking him for his submission. However, it was at this point that I hit a small snag in that the growl works visually best if you scroll all the way back up to the top of the page and thus I set about looking on the web for a decent scrollTo jQuery plugin as quite simply I don’t have the time to whip up my own.
All of which brought to me the discovery of Ariel Flesler’s nifty jQuery.ScrollTo plugin which you can read more about (and grab) here: http://flesler.blogspot.com/2007/10/jqueryscrollto.html
Add the link to the plugin in your page and hey presto, when you want to scroll the screen all the way up, simply do this:
$.scrollTo(0);
Nifty.
Related Posts :
Sometimes a person forgets the simple things in life, so every now and then it is a good thing t ...
Gian Carlo Mingati has made life particularly easy for you if you are in search for a simple to ...
Jeff Robbins of Lullabot brings to us a rather nifty jQuery plugin in the form of BeautyTips, a ...
A very clever little jQuery function here that I've gone and lifted from some deep, dark domain ...
You'll often find yourself using frameworks that may be running a number of different javasc ...






