Click here to Skip to main content
15,860,972 members
Articles / Web Development / HTML
Article

Crossbrowser SmartNavigation Alternative II

Rate me:
Please Sign up or sign in to vote.
5.00/5 (13 votes)
3 Apr 2005 126.2K   617   29   32
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.

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

And insert this code into your form.

HTML
<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


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

Comments and Discussions

 
GeneralThanks for sharing this. Pin
Thanh H. Pham10-May-09 12:41
Thanh H. Pham10-May-09 12:41 
GeneralIMPORTANT: Fix for Firefox, IE7, etc. when using doctype Pin
CabbageMonster26-Mar-09 9:25
CabbageMonster26-Mar-09 9:25 
GeneralThanks for the great share. Pin
Michael Sadlon19-Apr-07 12:08
Michael Sadlon19-Apr-07 12:08 
QuestionDoesn't works under IE7. Pin
marcin.rawicki12-Mar-07 4:46
marcin.rawicki12-Mar-07 4:46 
GeneralDoesn't Work under XHTML DOCTYPE Pin
gtownsend200715-Jan-07 11:46
gtownsend200715-Jan-07 11:46 
GeneralDifferent Use Pin
BobsAfro14-Jan-07 22:39
BobsAfro14-Jan-07 22:39 
GeneralThank you Pin
Farhan Noor Qureshi16-Oct-06 12:12
Farhan Noor Qureshi16-Oct-06 12:12 
GeneralWorks perfectly, thanks a million! Pin
zangad19-Jul-06 6:05
zangad19-Jul-06 6:05 
QuestionLink for Lili3 not working? Pin
Mads Christensen29-Jun-06 3:54
Mads Christensen29-Jun-06 3:54 
GeneralTHANKS Pin
grascioni14-May-06 6:28
grascioni14-May-06 6:28 
GeneralLili3 Enabled Pin
raoulguenette1-Feb-06 11:41
raoulguenette1-Feb-06 11:41 
Hi
I'm using Lili3 with the Enabled property. It seems that once you disable it in a PostBack, it can't be enable anymore (Enabled = true had no effect).

Thanks
GeneralRe: Lili3 Enabled Pin
ibrahimuludag28-Apr-06 12:01
ibrahimuludag28-Apr-06 12:01 
GeneralDoesn't work with auto refresh Pin
Baelzharon25-Jan-06 6:01
Baelzharon25-Jan-06 6:01 
GeneralRe: Doesn't work with auto refresh Pin
ibrahimuludag28-Apr-06 12:03
ibrahimuludag28-Apr-06 12:03 
GeneralExcelente Pin
AlejoFC25-Jan-06 5:06
AlejoFC25-Jan-06 5:06 
Generalfirefox support Pin
frankkkkk4-Oct-05 5:54
frankkkkk4-Oct-05 5:54 
GeneralRe: firefox support [modified] Pin
CabbageMonster26-Mar-09 7:40
CabbageMonster26-Mar-09 7:40 
QuestionDisable for pagers? Pin
Donzella6-Sep-05 6:45
Donzella6-Sep-05 6:45 
AnswerRe: Disable for pagers? Pin
ibrahimuludag6-Sep-05 7:38
ibrahimuludag6-Sep-05 7:38 
GeneralRe: Disable for pagers? Pin
Donzella6-Sep-05 8:03
Donzella6-Sep-05 8:03 
GeneralRe: Disable for pagers? Pin
Anonymous6-Sep-05 12:11
Anonymous6-Sep-05 12:11 
GeneralRe: Disable for pagers? Pin
Donzella6-Sep-05 12:21
Donzella6-Sep-05 12:21 
Generaldoesnt work with doctype Pin
DroneX527-Jul-05 4:01
DroneX527-Jul-05 4:01 
GeneralRe: doesnt work with doctype Pin
GreekShowPony29-May-06 5:36
GreekShowPony29-May-06 5:36 
GeneralRe: doesnt work with doctype Pin
CabbageMonster26-Mar-09 9:23
CabbageMonster26-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.