Hi, Shooting in the dark here, but could it be that briefly during the update process (I notice you have two separate calls, one happening when the other completes) the stuff being updated is largely blank? Browsers try to keep the viewport full, so if you page gets shorter during the update process, the browser could be scrolling up to fill the viewport; then when you add back some content, the page gets longer again but of course the browser doesn't scroll back down.
Do you really need to do this as two separate updates? Perhaps if you replace the content with the new content all at once, maintaining about the same page size, you can avoid the scrolling. If not, you might be able to capture the scroll position of the page before the updates using document.viewport.getScrollOffsets[1] and then restore the scroll position after the updates using window.scrollTo[2][3]. But if you can avoid causing the scrolling in the first place, that's probably better. [1] http://www.prototypejs.org/api/document/viewport/getscrolloffsets [2] http://www.w3schools.com/HTMLDOM/met_win_scrollto.asp HTH, -- T.J. Crowder tj / crowder software / com On Oct 19, 10:28 am, SQE <[EMAIL PROTECTED]> wrote: > Hi Folks... > > I have a div in the middle of a page that updates a mysql db. > Everything is working fine, except that when the update happens, the > window scrolls to the top of the page, and I can't figure out > why.....is there a way to return to where I was working on a page > after an ajax.updater? > > new Ajax.Updater('updater', url, {evalScripts:true, onSuccess: > function() {new Ajax.Updater('currentlist', urlnext, > {evalScripts:true});}}); > > Thanks! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---