Click here to Skip to main content
15,908,843 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 130.1K   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

 
GeneralLILI vb and c# Pin
hanspeppel1-Jun-05 23:52
hanspeppel1-Jun-05 23:52 
Hello Ibrahim ULUDAG,

I working at an ASP.NET VB project, here i try to implement the Lili functionlaity. Everthing goes well, add the Lili.dll add to the project, enter the <cc2:lili id="Lili1" runat="server"> in the form. Build to solution and not getting any errors, also the page work fine, but the functionalti is not working.

When i test this is not working, do you think this is a code language problem VB / C# ? or something else. I can show you the results, but not going to enter the URL on this site, because i work on a private development enviroment. I hope you will or can help me!

Greating Hans.



Hans van de Peppel
GeneralRe: LILI vb and c# Pin
ibrahimuludag5-Jun-05 11:35
ibrahimuludag5-Jun-05 11:35 
GeneralVery nice Pin
Donzella28-Apr-05 6:26
Donzella28-Apr-05 6:26 
GeneralRe: Very nice Pin
ibrahimuludag29-Apr-05 12:10
ibrahimuludag29-Apr-05 12:10 
GeneralRe: Very nice Pin
Donzella29-Apr-05 16:28
Donzella29-Apr-05 16:28 
GeneralNot working in DIV tags Pin
stephg1238-Apr-05 4:14
stephg1238-Apr-05 4:14 
GeneralRe: Not working in DIV tags Pin
GreekShowPony29-May-06 5:30
GreekShowPony29-May-06 5:30 

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.