What are the options for making scrollable list regions in HTML?
So to create listbox-like areas?
Is DIV with overflow:scroll the best approach?
Or is iframe better?
Are there any better newer ways of doing this?
Would like to show region of HTML which updates with a list of objects in response to "push" changes from server using AJAX/Comet approach, and maintain user's scroll position when list updates. Can this be done without the list "jumping", and if so, how?
EDIT
I've done a basic DIV solution now. Basically using overflow:auto (as opposed to overflow:scroll) seems to be a good idea for static lists, and all-in-one-go updated lists.
Another week and I reckon I'll have got round to trying some of the animation ideas user 'egarcia' is talking about, and then I'll tick an answer.
I am prototyping in current versions of Firefox (on Windows XP and Linux) and Internet Explorer (in Windows XP) at the moment.
The DIV work I'm doing is just a small part of a somewhat larger blogging project.