Prev: AJAX AutocompleteExtender does not work when type between delimeters
Next: SecurityException AspNetHostingPermission weirdness
From: Alexey Smirnov on 5 Mar 2010 04:15 On Mar 5, 10:00 am, "Peter Larsen [CPH]" <PeterLar...(a)community.nospam> wrote: > Hi Alexey, > > Using scrollIntoView() does work on first update, but nothing happens on the > following ajax updates. > > /Peter > > "Alexey Smirnov" <alexey.smir...(a)gmail.com> wrote in message > > news:66d75c21-d93a-4e89-b7ab-107d886f235c(a)b2g2000yqi.googlegroups.com... > On Feb 15, 10:56 am, "Peter Larsen [CPH]" > > <PeterLar...(a)community.nospam> wrote: > > Hi, > > > I have a ajax page where i want the page to scroll to the bottom of the > > page > > on each update. > > I have tried to use "#bookmarks" and "d.scrollIntoView(true);" scripts, > > but > > it doesn't seems to be triggered on updates. > > > Is it possible to fire scripts on ajax updates or how should i fix this > > scroll problem ?? > > > Thank you in advance > > Peter > > Peter, > > it should be possible with scrollIntoView. Just check before it if d > is not null. Maybe this is your problem. > > var d = document.getElementById('h1'); > if (d != null) > d.scrollIntoView(true); > > More athttp://msdn.microsoft.com/en-us/library/ms536730.aspx > > Hope this helps Hej Peter, can you please give an example of your layout? It might be something that "blocked" this from working. I've done similar tasks already with scrollIntoView and had no problems. Thanks |