scrolling

jquery scroll to named anchor when navigating from other page.

Hi, I have a submenu that is expanded on all pages of my site. The submenu contains links to named-anchors within one page which the parent menu item links to. I am using jquery scrollTO and localScroll successfully to animate scrolling within the page with the named-anchors but if I navigate to a named-anchor from a different page withi...

Change the scroll of an hidden div

Hi, I have an hidden div with a fixed height and a scrollbar. I would like to change the scroll position, but the browser won't le me do it, as the div is hidden. The scrollTop property will stick to 0. Also, I don't want to show and hide the div back, which causes flickering. If anyone knows how to do it, it'll be really helpful. Th...

Macvim: horizontal scroll bar

Using macvim, which is awesome. However I would love to have some kind of horizontal scroll bar. Is this possible? ...

Scroll through JLabel held in JScrollPane

I have a JScrollPane that holds a JLabel using the following code: //Create TEXT LOG JPanel textLogPane = new JScrollPane(logLabel); textLogPane.setPreferredSize(textLogPaneDim); //textLogPane.setOpaque(true); textLogPane.setBorder(BorderFactory.createLineBorder(Color.BLACK)); textLogPane.getViewp...

Prevent scrolling when videobox is on

I'm using videobox to embed streams into my site, and I just discovered that when videobox is "on"- i.e. I clicked on a link that brings it up and dims everything around it- I can still scroll down and see the rest of my (non-dimmed) site. This breaks immersion, and I'd like to disable the scrolling, but only for when the videobox is on....

Prevent multiline TextBox from "stealing" scroll event

I have a few multiline textboxes in a TabControl. The tabcontrol has a scrollbar, but as soon as a multiline textbox is focused scrolling will scroll the textbox instead of the tabcontrol. Is there any way to stop the textbox from taking the event and act more like a normal textbox, but still multiline? ...

Jittery scroll performance in UITableView after iOS 4 upgrade

I have some large images in a grouped UITableView. There's 1 row in each section which holds the image and there is associated header and footer text for each section about the image. I worked hard to get it to scroll smoothly is iPhone OS 3.x and finally succeeded. But... when I upgraded to iOS 4, that all changed. Now there is very jer...

Scrollable Content areas on Mobile Safari

I'm developing a web app for iOS devices, and want to have a header that stays on the top, and then two scrollable content areas underneath it, kind of like Gmail's iPad interface and the iPad split-view apps. Does anyone know how? I've looked at http://doctyper.com/archives/200808/fixed-positioning-on-mobile-safari/, which has a good so...

Scroll image by dragging the mouse

I have an image inside a scroll viewer and buttons to zoom in and zoom out. Now when the image is zoomed, i want to be able to click on the image and drag in any direction as if i was scrolling in those directions. How to do this? thanks. ...

How do I only load an image when the user scrolls to it

Many sites appear to only download images or generate parts of the document (eg for reviews) when the user scrolls far enough down the page to actually see them. This obviously will give you faster loading pages and save on bandwidth for anyone that does not bother scrolling down. How is this done, ideally with jquery? Or to ask it ano...

How do I make my scrolling smooth?

I have written a scroller function which will scroll one div inside another one. The idea is to use the setInterval method to change the margin of the inner element to simulate a scrolling div. The problem I am facing is that the scrolling is not entirely smooth. Sometimes it stops for a split-second and then it resumes. What can I do t...

Unwanted automatic scrolling with UIScrollView and UITextFields as subviews

The "too long; didn't read" version: Is there any way to disable the automatic scrolling behaviour of UIScrollView when telling a UITextField to becomeFirstResponder? I have a scroll view with paging enabled and several views as subviews, each subview being controlled by its own view controller. Each subview has a UITextField. The requ...

how to stop scroll side bar from expanding the content of the page?

hi, i have this code: <script type="text/javascript"> $(document).ready(function() { var offset = $("#sidebar").offset(); var sidebar_height = 0; var stopper = $("#stopper").offset(); var topPadding = 1; $(window).scroll(function() { if (sidebar_height==0) sidebar_height = $("#si...

How to maintain scroll position after client-side validation fails?

I've got an ASP.NET webform with asp:TextBox and asp:RequiredFieldValidator at the bottom of the page. If client side validation fails on form submit - the page scrolls all the way up. I'd like to maintain the scroll position on failed client-side validation. I've found this solution, but it seems overly complex. Any ideas? ...

Fixed background x position but not y with CSS?

I have a background image which I want to make fixed to my page when the page is scrolled. I want it where that if I scroll to the right, it remains in place. BUT, I also want to make it such that if I scroll the page in the y direction, the background DOES scroll with the page. An example would be line numbers in any IDE. I scroll the ...

How to determine if the user has scrolled to the bottom of the UITableView?

How can I determine if the user has scrolled to the last cell/bottom of a UITableView? ...

How can I use drawRect to load an image in a UITableView

I have a grouped UITableView with some large images. However, scrolling performance is quite poor (note: it was excellent before the iOS 4 upgrade, now it's very jittery). I've read that using drawRect instead of adding subviews to the cell could improve performance. First question: Is that true? Second question: If it will increase p...

How to scroll HTML page to given anchor using jQuery or Javascript?

Id like to make browser to scroll page to given anchor, just by using javascript. I have specified name or id attribute in my html code: <a name="anchorName">..</a> or <h1 id="anchorName2">..</h1> I'd like get same effect as you get by navigating to http://server.com/path#anchorName. The page should be scrolled so that the ancho...

Scrollable Android ListView in TableView Row

I have the following layout for a dialog: <?xml version="1.0" encoding="utf-8"?> <TableLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/categorylist" android:layout_width="fill_parent" android:layout_height="fill_parent" android:stretchColumns="0"> <TableRow> <ListView...

Prevent background images from allowing scrolling

Hi all, Link to page: http://www.northtreestudios.com/sandbox/ Wondering how I can get the background images of my site to not trigger the scroll bar due to their width/placement. I am using a 960 grid with 16 columns, but the background has several images at arbitrary positions to create some detail effects. These do not conform to th...