scroll

Detecting divs as rendered in the window to implement Google-Reader-like auto-mark-as-read?

Hello, When using Google Reader and browsing RSS entries in the "Expanded" view, entries will automatically be marked as 'read' once a certain percentage of the div is visible on the screen (difficult to tell what percentage has to be visible in the case of Google Reader). So, as I scroll down line-by-line, the javascript code can deter...

Firefox overflow:scroll resize issue.

In Firefox...... <div id="container" style="overflow:scroll; width:400px; height:500px"> <div id="content" style="height:500px; width:800px"/> </div> The "container" DIV should have scroll bars since the div with id "content" is wider than it. If, using JavaScript (see below), I reset the size of the "content" div to "200px", I...

Javascript mechanism to autoscroll to the bottom of a growing page?

Hopefully, this will be an easy answer for someone with Javascript time behind them... I have a log file that is being watched by a script that feeds new lines in the log out to any connected browsers. A couple people have commented that what they want to see is more of a 'tail -f' behavior - the latest lines will always be at the bott...

How to change the row position of virtual mode DataGridView?

How to change the row position of virtual mode DataGridView? I am using Windows Forms. ...

Emacs mouse scrolling

When I scroll in Emacs using mouse wheel, it scrolls 5 lines at a time, which, I think, is way too much - where do I set a new value? Also, when I scroll in Emacs with a mouse (either wheel or scrollbar), the cursor jumps to stay inside the visible screen area - is there a way to override that behavior, making it staying on the line it ...

CSS: Liquid Bar with Text Won't Expand

Hello! I have a horizontal bar that has been given a width of 100%. Within the horizontal bar, I have text that is left-aligned within a 978px container. Whenever the browser window is shrunk so that it is less than 978px wide, a scrollbar along the bottom of the page appears. Whenever I scroll to the right, the bar no longer spans t...

HTML What is the height of a horizontal scrollbar?

Hi, For an overlay i need to know the height of a vertical scrollbar. What can i do to get this value? And is the height the same in FireFox and Internet Explorer? Thnx ...

More Scrolling Overflowed Divs with Javascript

Hi. My question basically goes back to this: Scrolling Overflowed DIVS with JavaScript I want to know how to do that without using jQuery. Any help would be appreciated. Thanks in advance! Also: in the linked question, does it scroll the div down one full scroll height each time the code is executed? If so, how can I make it scroll dow...

How to make scroller in jQuery?

Hi, I want to make scroller like given here: http://www.shopping.com/xPC-Kettler-Kettler-Vito-Xl~linkin_id-8051267 in jQuery. Its in dojo I think. Please give me link of scroller like this one. Thanks ...

ASP.Net TreeView Scrolling the selected node into view

Is there a way to scroll the selected node of an ASP.Net TreeView into view after a postback? In my parrticular scenario the control is repopulated after each postback. Thanks! ...

WPF: Listbox, centering selected item

Is it possible to always keep selected item in the middle of a listbox? If the user selects an item, I want to scroll so that the newly selected item is in the middle. I guess it want be possible for the 'edge cases' (the first and last few items), but that's ok. ...

change div based on how far down the page you have scrolled

I am trying to change the text inside a div based on how far down a page you have scrolled. I've been tinkering with jQuery's scrollTop and document height but have so far failed to produce the desired results. How would I get the position of an element on the page and then get jQuery to do something once you have scrolled to that eleme...

Weird owner-drawn-variable combo box behavior

In my .NET owner-drawn-variable combo box, when I move by page or by mouse wheel, it appears to scroll in the WRONG DIRECTION, but then ends up on the right item. Nothing seems to avoid this behavior. I tried making it owner-drawn-fixed, but it then changed the size of the combo box. How can I make it scroll normally? Thanks in advan...

Is there a way to automagically make a canvas scroll on overflow in WPF ?

Hi all.. Been checking the web and this site, but couldn't come up with any descent results. Is there a way to make a canvas in WPF show scrollbars on overflow ? Been trying the scrollviewer, but can't get it to work :( Thanks in advance.. ...

GDI+ Offscreen Buffered Scrolling

Hello, I am creating a custom control using C# GDI+. Quick explanation...the control will be say 500 pixels on screen but will contain perhaps 500000 pixels of information. So although i'm only showing 500px at a time i need to obviously scroll in the horizontal plane (left & right). The tricky part is that each 500px chunk of bitmap t...

AutoScroll iframe parent while dragging (Prototype & Scriptaculous)

I am having an iframe on a page. The iframe resizes itself based on the content loaded in it. So, it won't be having any scroll bars. The iframe contains a list of draggable elements (Prototype & Scriptaculous). I have to drag the elements from bottom to top or vice versa, and while dragging, the parent window should scroll accordingly....

Scrolling down a page after rendering in Rails

Is there a way to scroll or jump down a page after rendering it? Specifically, in my controller action, there are some situations where I'll want to send the user to a particular place on the page. If it were just a link from another page, I'd probably use a URI fragment identifier - "http://blorg.com/page#id" - but this needs to be dy...

How can I reproduce the flick-to-scroll behavior of the iPhone UIScrollView in my own custom view?

I would like to reproduce UIScrollView's flick-to-scroll behavior, but I don't want to use (or can't use) that class. What can I do? ...

Flex: container scrollbars in HBox

I have an HBox in my flex application. The problem is, when there are too many things inside the HBox a scroll bar appears at the bottom of the app. How can I make it appear in the HBox, so the scrollbar only scrolls thestuff inside the HBox and not the entire app? ...

jquery: how can I prevent the webpage from scrolling back to the top when I use slideup?

I have a webpage with multiple DIV elements. If i use the jquery function SlideUp to hide one (which is towards the bottom of the page), the page automatically scrolls back to the top. How can I prevent this? To trigger the jquery function, I do something like this: $(MyLink).click(function() { MyDiv.slideUp("slow"); } MyLink being...