navigation

Is there a name for this type of page navigation?

Just out of curiosity, is there a name for the kind of navigation I've been working on? It looks like this: <<first <previous 1 2 3 4 5 [...] 20 next> last>> i.e. navigation where you've got x pages, but you don't want to show x links, you want to limit the amount of space taken up, so you show y links at a time, and indicate the exis...

How to get Asp.Net to redirect user back to their starting point.

Guys, I’ve been writing code for 15+ years, but managed to avoid “Web Development” until 3 months ago. I have inherited a legacy Asp.net application (started in .net 1.1, we’re now on .Net 2.0), it’s the administration tool for our product. In several places the admin tool simply maintains long lists of values. The list (could be 200+...

How do I programatically turn off show pages in navigation for sharepoint

I am progamatically creating a SharePoint site using SPWeb spWeb = spSite.AllWebs.Add(...); What code do I need run to set the spWeb to turn off the "Show pages in navigation" option? Answer: publishingWeb.IncludePagesInNavigation = false; ...

Any page navigation helpers for ASP.NET MVC?

Are there any html helpers for page navigation. eg. if i have 1000 records to display, i want to display the Previous 1 2 3 4 ... etc Next link stuff under the filtered collection. Anyone know of anything out there? ...

Tab Navigation - Frames or AJAX?

I have what I imagine to be a pretty standard web-interface. There are 4 different ListViews (grid controls) which are accessed by a series of Tabs on the top. I have implemented this as follows: Tab 1 will load Page 1 containing Grid 1 into Frame 2, Tab 2 will load Page 2 containing Grid 2 into Frame 2 etc. However this then mea...

Programmatically scroll to an Anchor Tag

Consider the following code: <a href="#label2">GoTo Label2</a> ... [content here] ... <a name="label0"></a>More content <a name="label1"></a>More content <a name="label2"></a>More content <a name="label3"></a>More content <a name="label4"></a>More content Is there a way to emulate clicking on the "GoTo Label2" link to scroll to the ap...

PortalSiteMapProvider causing excessive SPRequest objects

We have a custom navigation webpart that uses the PortalSiteMapProvider of MOSS to build a menu navigation. It seems that the Provider is not managing it's objects. Any idea on how to manage the objects that are being created in the Provider? It is causing log errors like so: Potentially excessive number of SPRequest objects (9) curren...

css horizontal navigation spacing

I'm trying to create a horizontal navigation bar in css with 5 evenly spaced links. The html hopefully will remain like this: <div id="footer"> <ul> <li><a href="one.html">One</a></li> <li><a href="two.html">Two</a></li> <li><a href="three.html">Three</a></li> <li><a href="four.html">Four</a></li> <li><a href="five.html">Five...

Programmatically navigating to the Windows Mobile home screen

We have an application that downloads some files in the background. Our application pops up when an Internet connection is made, and after prompting the user to accept the downloads, we'd like to switch back to the home screen while we do our stuff. We can't work out how to do to this. We can emulate pressing "back" a few times, which s...

MOSS SpNavigationNode.Children always empty

I'm trying to return all the child nodes of a set of navigation nodes in sharepoint, the SDK implies I should be doing something like this: NodeColl = objSite.Navigation.TopNavigationBar Dim Node as SPNavigationNode For Each Node In NodeColl if Node.IsVisible then Response.Write("<siteMapNode url=""" & Node.Url & """ title=""" &...

Active navigation with jQuery - can't apply a default class to anchor.

I am currently trying to make a navigation-menu where an active-class is applied to the anchors with hrefs that match the current url, so I can style that anchor in a way that makes it stand out from the rest of the menu. This is my mark-up: <div id="sidebar"> <h2>Navigation menu</h2> <h2 class="subnav"><a href="menu1/menu_item1">Men...

Navigation, background swap not having every <li> on mouseover

Hey, I am using the following jquery code: $("#top ul li.corner").mouseover(function(){ $("span.left-corner").addClass("left-corner-hover"); $("span.right-corner").addClass("right-corner-hover"); $("span.content").addClass("content-hover"); }).mouseout(function(){ $("span.left-corner").removeClass("left-corner-hover"); ...

IE6 Navigation hovers

I'm using the following code to have a non-JS navigation: <ol id="navigation"> <li id="home"><a href="#"><img src="./images/nav/home-hover.png" alt="Home" /></li> ... </ol> And the CSS: #navigation a { display: block; height: 25px; } #navigation a img { display: none; } #navigation a:hover img { display: blo...

if statement inside a variable

I am building a conditional navigation menu that has 3 levels (the 3rd level added today by business, no worries its not like I launch next week. Oh wait I do:)). I have a javascript var that contains the html for my first conditional level. I am now trying to insert another level inside of the first. var myVar = '<ul class="linksUnit"...

Navigation in django

I've just done my first little webapp in django and I love it. I'm about to start on converting an old production PHP site into django and as part its template, there is a navigation bar. In PHP, I check each nav option's URL against the current URL, in the template code and apply a CSS class if they line up. It's horrendously messy. I...

using css to duplicate html elements

Hi, I've been handing a design for a webpage which I'm trying to implement correctly. This design contains navigation elements which are partially or entirely duplicated all over the page - in particular, links to the main 3 categories for navigation are present on the page no less than 4 times. I'm no web design expert, but I don't l...

Fixed font size in firefox?

I'm wanting to keep the font size of a navigation menu the same size for all browsers. I set the font-size of the navigation menu text to a specific pixel size. In IE this works, but not in FF. The problem is, if a person changes their browser's font size, then it completely ruins the menu layout in FF. Is there a way to adjust thi...

CSS "see-through" background - crazy navigation menu problem

Hi guys, I have a crazy navigation menu that I have to code. It's kind of tough. Please see the screenshot of the design here: navigation menu screenshot As you can see, the background of the "Home" menu item is quite tough! I can't figure out how to make its background "see-through", meaning it cuts through the dark background and ...

Show home in breadcrumb navgation in Document Library in My Site in SharePoint

Hi, The breadcrumb in the document library in My Sites shows: user name > Document Library name Is it possible to change it to "Home > User name > Document Library name" or "Home > Document Library Name" What is the easiest way to achieve this? Kind regards, ...

Highlighting an active tab - CSS

Hello, I have a small tabbed navigation setup using CSS. When hovering over the tabs the colour changes, great. However when i click a tab and it navigates to the corresponding page, i would like that tab (the active tab?) to remain highlighted, indicating the current page. I am currently doing this by using a class (.currenttab ) and ...