Click here to Skip to main content
Licence 
First Posted 3 Apr 2005
Views 74,357
Bookmarked 29 times

Crossbrowser SmartNavigation Alternative II

By | 3 Apr 2005 | Article
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

About the Author

ibrahimuludag

Web Developer

Turkey Turkey

Member

Ibrahim ULUDAG
Software Developer
ibrahimuludag@gmail.com
http://ibrahimuludag.blogspot.com/
http://www.ibrahimuludag.com/


Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
GeneralThanks for sharing this. PinmemberThanh H. Pham12:41 10 May '09  
GeneralIMPORTANT: Fix for Firefox, IE7, etc. when using doctype PinmemberCabbageMonster9:25 26 Mar '09  
GeneralThanks for the great share. Pinmembermcrabben712:08 19 Apr '07  
QuestionDoesn't works under IE7. Pinmembermarcin.rawicki4:46 12 Mar '07  
GeneralDoesn't Work under XHTML DOCTYPE Pinmembergtownsend200711:46 15 Jan '07  
GeneralDifferent Use PinmemberBobsAfro22:39 14 Jan '07  
GeneralThank you PinmemberFarhan Noor Qureshi12:12 16 Oct '06  
GeneralWorks perfectly, thanks a million! Pinmemberzangad6:05 19 Jul '06  
QuestionLink for Lili3 not working? PinmemberMads Christensen3:54 29 Jun '06  
GeneralTHANKS Pinmembertavo_6:28 14 May '06  
GeneralLili3 Enabled Pinmemberraoulguenette11:41 1 Feb '06  
GeneralRe: Lili3 Enabled Pinmemberibrahimuludag12:01 28 Apr '06  
GeneralDoesn't work with auto refresh PinmemberBaelzharon6:01 25 Jan '06  
GeneralRe: Doesn't work with auto refresh Pinmemberibrahimuludag12:03 28 Apr '06  
GeneralExcelente PinmemberAlejoFC5:06 25 Jan '06  
Generalfirefox support Pinmemberfrankkkkk5:54 4 Oct '05  
GeneralRe: firefox support [modified] PinmemberCabbageMonster7:40 26 Mar '09  
QuestionDisable for pagers? PinmemberDonzella6:45 6 Sep '05  
AnswerRe: Disable for pagers? Pinmemberibrahimuludag7:38 6 Sep '05  
GeneralRe: Disable for pagers? PinmemberDonzella8:03 6 Sep '05  
GeneralRe: Disable for pagers? PinsussAnonymous12:11 6 Sep '05  
GeneralRe: Disable for pagers? PinmemberDonzella12:21 6 Sep '05  
Generaldoesnt work with doctype PinmemberDroneX54:01 27 Jul '05  
GeneralRe: doesnt work with doctype PinmemberGreekShowPony5:36 29 May '06  
GeneralRe: doesnt work with doctype PinmemberCabbageMonster9:23 26 Mar '09  

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.

Permalink | Advertise | Privacy | Mobile
Web04 | 2.5.120528.1 | Last Updated 3 Apr 2005
Article Copyright 2005 by ibrahimuludag
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid