Wrox Programmer Forums
BOOK: Professional Ajax 2nd Edition ISBN: 978-0-470-10949-6
This is the forum to discuss the Wrox book Professional Ajax, 2nd Edition by Nicholas C. Zakas, Jeremy McPeak, Joe Fawcett; ISBN: 9780470109496
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Ajax 2nd Edition ISBN: 978-0-470-10949-6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old November 13th, 2008, 06:03 PM
Authorized User
Join Date: Apr 2008
Posts: 44
Thanks: 0
Thanked 0 Times in 0 Posts
Default ASP.NET Ajax Scroll Issue

Dear book readers and authors:

I have a slight problem with my asp.net application and was wondering if you could help me out, using the fundamentals in this book.

I have an asp.net ajax application which refreshes messages every 7 seconds via a timer control. I have a literal control wrapped in a div tag which grabs new messages from my sql server database via asp.net ajax. Now in IE, everytime the page refreshes, I have a javascript function which allows the scrollbars of the div to be placed all the way at the bottom, so that the user does not have to rescroll down to the bottom of the div every 7 seconds.. The following is the javascript function that does so (it works..)

function ScrollOnRefresh() {
   var element = document.getElementById("MessagesDiv");
   element.scrollTop = 1000000000;

This function will not work in Firefox at all, could someone please help me with the work around for firefox that places the scrollbar all the way to the bottom of the messagesdiv.

thank you,


Similar Threads
Thread Thread Starter Forum Replies Last Post
asp.net 2.0 Gridview control vertical scroll bar kulkarnimonica ASP.NET 2.0 Professional 2 March 8th, 2010 08:14 AM
ASP.NET App Scroll Issue aspcoder BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 3 November 14th, 2008 07:50 PM
ASP.NET 2.0 Ajax raminriahi General .NET 2 September 5th, 2007 12:48 PM
Turning a regular ASP.NET App into an AJAX ASP.Net donrafeal7 Ajax 2 August 31st, 2007 12:33 AM
how to add scroll bars in asp.net listbox control DARSIN General .NET 3 January 26th, 2006 11:39 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.