Click here to Skip to main content
12,450,766 members (45,718 online)
Click here to Skip to main content
Add your own
alternative version

Stats

99.3K views
582 downloads
29 bookmarked
Posted

Crossbrowser SmartNavigation Alternative II

, 3 Apr 2005
Rate this:
Please Sign up or sign in to vote.
An article describing how to create a server control that preserves the scroll position in longer pages.

Introduction

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.

License

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

Share

About the Author

ibrahimuludag
Software Developer (Senior)
Turkey Turkey
Ibrahim ULUDAG
Software Developer
ibrahimuludag@gmail.com
https://linkedin.com/in/ibrahimuludag
http://www.ibrahimuludag.com/

You may also be interested in...

Pro
Pro

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
mcrabben719-Apr-07 12:08
membermcrabben719-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
tavo_14-May-06 6:28
membertavo_14-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
sussAnonymous6-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.

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.160826.1 | Last Updated 3 Apr 2005
Article Copyright 2005 by ibrahimuludag
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid