Click here to Skip to main content
14,972,394 members
Articles / Web Development / HTML
Posted 3 Apr 2005


29 bookmarked

Crossbrowser SmartNavigation Alternative II

Rate me:
Please Sign up or sign in to vote.
5.00/5 (13 votes)
3 Apr 2005
An article describing how to create a server control that preserves the scroll position in longer pages.


In my previous article, I have introduced Crossbrowser SmartNavigation Alternative. However, this doesn't support link buttons, because the link buttons either does not submit the form or does not fire an event. Instead of getting the scroll positions in the onsubmit event, getting them in the onscroll event is better. But other browsers badly supports the onscroll event. This event is fired when mouse moves the scroll in other browsers. So I get the scroll positions using onscroll, onkeypress and onclick events in other browsers.

I have tested this on Internet Explorer 6.0, FireFox 1.0 and Netcape 7.2.

Adding this control to your page

Insert this code to the head of your page.

<%@ Register TagPrefix="cc1" Namespace="Uludag" Assembly="lili2" %>

And insert this code into your form.

<cc1:Lili2 id="Lili1" runat="server"/>

Or, you can follow the instructions in my previous article.

I hope this helps somebody out there, I would be interested in receiving any comments.


This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


About the Author

Software Developer (Senior)
Turkey Turkey
Ibrahim ULUDAG
Software Developer

Comments and Discussions

GeneralThanks for sharing this. Pin
Thanh H. Pham10-May-09 12:41
MemberThanh H. Pham10-May-09 12:41 
GeneralIMPORTANT: Fix for Firefox, IE7, etc. when using doctype Pin
CabbageMonster26-Mar-09 9:25
MemberCabbageMonster26-Mar-09 9:25 
GeneralThanks for the great share. Pin
Michael Sadlon19-Apr-07 12:08
MemberMichael Sadlon19-Apr-07 12:08 
QuestionDoesn't works under IE7. Pin
marcin.rawicki12-Mar-07 4:46
Membermarcin.rawicki12-Mar-07 4:46 
GeneralDoesn't Work under XHTML DOCTYPE Pin
gtownsend200715-Jan-07 11:46
Membergtownsend200715-Jan-07 11:46 
GeneralDifferent Use Pin
BobsAfro14-Jan-07 22:39
MemberBobsAfro14-Jan-07 22:39 
GeneralThank you Pin
Farhan Noor Qureshi16-Oct-06 12:12
MemberFarhan Noor Qureshi16-Oct-06 12:12 
GeneralWorks perfectly, thanks a million! Pin
zangad19-Jul-06 6:05
Memberzangad19-Jul-06 6:05 
QuestionLink for Lili3 not working? Pin
Mads Christensen29-Jun-06 3:54
MemberMads Christensen29-Jun-06 3:54 
GeneralTHANKS Pin
grascioni14-May-06 6:28
Membergrascioni14-May-06 6:28 
GeneralLili3 Enabled Pin
raoulguenette1-Feb-06 11:41
Memberraoulguenette1-Feb-06 11:41 
GeneralRe: Lili3 Enabled Pin
ibrahimuludag28-Apr-06 12:01
Memberibrahimuludag28-Apr-06 12:01 
GeneralDoesn't work with auto refresh Pin
Baelzharon25-Jan-06 6:01
MemberBaelzharon25-Jan-06 6:01 
GeneralRe: Doesn't work with auto refresh Pin
ibrahimuludag28-Apr-06 12:03
Memberibrahimuludag28-Apr-06 12:03 
GeneralExcelente Pin
AlejoFC25-Jan-06 5:06
MemberAlejoFC25-Jan-06 5:06 
Generalfirefox support Pin
frankkkkk4-Oct-05 5:54
Memberfrankkkkk4-Oct-05 5:54 
GeneralRe: firefox support [modified] Pin
CabbageMonster26-Mar-09 7:40
MemberCabbageMonster26-Mar-09 7:40 
QuestionDisable for pagers? Pin
Donzella6-Sep-05 6:45
MemberDonzella6-Sep-05 6:45 
AnswerRe: Disable for pagers? Pin
ibrahimuludag6-Sep-05 7:38
Memberibrahimuludag6-Sep-05 7:38 
GeneralRe: Disable for pagers? Pin
Donzella6-Sep-05 8:03
MemberDonzella6-Sep-05 8:03 
GeneralRe: Disable for pagers? Pin
Anonymous6-Sep-05 12:11
MemberAnonymous6-Sep-05 12:11 
GeneralRe: Disable for pagers? Pin
Donzella6-Sep-05 12:21
MemberDonzella6-Sep-05 12:21 
Generaldoesnt work with doctype Pin
DroneX527-Jul-05 4:01
MemberDroneX527-Jul-05 4:01 
GeneralRe: doesnt work with doctype Pin
GreekShowPony29-May-06 5:36
MemberGreekShowPony29-May-06 5:36 
GeneralRe: doesnt work with doctype Pin
CabbageMonster26-Mar-09 9:23
MemberCabbageMonster26-Mar-09 9:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.