Click here to Skip to main content
Click here to Skip to main content

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
Web Developer
Turkey Turkey
Ibrahim ULUDAG
Software Developer
ibrahimuludag@gmail.com
http://ibrahimuludag.blogspot.com/
http://www.ibrahimuludag.com/

Comments and Discussions

 
GeneralThanks for sharing this. PinmemberThanh H. Pham10-May-09 12:41 
GeneralIMPORTANT: Fix for Firefox, IE7, etc. when using doctype PinmemberCabbageMonster26-Mar-09 9:25 
GeneralThanks for the great share. Pinmembermcrabben719-Apr-07 12:08 
QuestionDoesn't works under IE7. Pinmembermarcin.rawicki12-Mar-07 4:46 
GeneralDoesn't Work under XHTML DOCTYPE Pinmembergtownsend200715-Jan-07 11:46 
GeneralDifferent Use PinmemberBobsAfro14-Jan-07 22:39 
GeneralThank you PinmemberFarhan Noor Qureshi16-Oct-06 12:12 
GeneralWorks perfectly, thanks a million! Pinmemberzangad19-Jul-06 6:05 
QuestionLink for Lili3 not working? PinmemberMads Christensen29-Jun-06 3:54 
GeneralTHANKS Pinmembertavo_14-May-06 6:28 
GeneralLili3 Enabled Pinmemberraoulguenette1-Feb-06 11:41 
GeneralRe: Lili3 Enabled Pinmemberibrahimuludag28-Apr-06 12:01 
GeneralDoesn't work with auto refresh PinmemberBaelzharon25-Jan-06 6:01 
GeneralRe: Doesn't work with auto refresh Pinmemberibrahimuludag28-Apr-06 12:03 
GeneralExcelente PinmemberAlejoFC25-Jan-06 5:06 
Generalfirefox support Pinmemberfrankkkkk4-Oct-05 5:54 
GeneralRe: firefox support [modified] PinmemberCabbageMonster26-Mar-09 7:40 
QuestionDisable for pagers? PinmemberDonzella6-Sep-05 6:45 
AnswerRe: Disable for pagers? Pinmemberibrahimuludag6-Sep-05 7:38 
GeneralRe: Disable for pagers? PinmemberDonzella6-Sep-05 8:03 
GeneralRe: Disable for pagers? PinsussAnonymous6-Sep-05 12:11 
GeneralRe: Disable for pagers? PinmemberDonzella6-Sep-05 12:21 
Generaldoesnt work with doctype PinmemberDroneX527-Jul-05 4:01 
GeneralRe: doesnt work with doctype PinmemberGreekShowPony29-May-06 5:36 
GeneralRe: doesnt work with doctype PinmemberCabbageMonster26-Mar-09 9:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    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 | Mobile
Web02 | 2.8.140827.1 | Last Updated 3 Apr 2005
Article Copyright 2005 by ibrahimuludag
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid