|
Prev: Appending Events
Next: Extending objects either from existing object or by loading externalplugins. How?
From: Geoff Cox on 5 May 2008 09:56 Hello I have a <div> in which the returned AJAX info appears but IE and FF seem to deal with it differently. IE at the moment places it to the right of a set of other <div>s whilst it is just below the bottom of the page with FF. Is it possible to force the page to move down so that the returned info is visible without expecting the user to scroll down to find it? Cheers Geoff
From: Martin Honnen on 5 May 2008 10:19 Geoff Cox wrote: > I have a <div> in which the returned AJAX info appears but IE and FF > seem to deal with it differently. IE at the moment places it to the > right of a set of other <div>s whilst it is just below the bottom of > the page with FF. > > Is it possible to force the page to move down so that the returned > info is visible without expecting the user to scroll down to find it? You can call scrollIntoView on your div e.g. divElementObject.scrollIntoView(true); -- Martin Honnen http://JavaScript.FAQTs.com/
From: Geoff Cox on 5 May 2008 16:10
On Mon, 05 May 2008 16:19:01 +0200, Martin Honnen <mahotrash(a)yahoo.de> wrote: >Geoff Cox wrote: > >> I have a <div> in which the returned AJAX info appears but IE and FF >> seem to deal with it differently. IE at the moment places it to the >> right of a set of other <div>s whilst it is just below the bottom of >> the page with FF. >> >> Is it possible to force the page to move down so that the returned >> info is visible without expecting the user to scroll down to find it? > >You can call scrollIntoView on your div e.g. > divElementObject.scrollIntoView(true); Thanks Martin! Cheers Geoff |