navigation

Preloading a Page before Navigating to it WPF

My WPF app consists of a NavigationWindow, and then a set of Pages defined as separate xaml files. The NavigationWindow loads and displays the various pages in turn. My problem is that loading the pages is expensive and may fail. Thus, I want to preload the page in the background, and then only call Navigate() once the page has finish...

How do I clear navigation history in Silverlight/Windows Phone 7?

I'm making a Windows Phone 7 app that has login/logout semantics (authenticating to a web app). When the user logs out I navigate back to the login screen and forget the session authentication. When doing so I'd also like to clear the navigation history so that can't go back to a page that expects them to be already authenticated. Can'...

List of Controller Routes in Rails 3?

Hey everybody! What I'm trying to do: I create some controllers, for example: Home About Gallery Contact Now I want to create a navigation automatically. So is there a way to programmatically fetch the list of controllers/actions to build this navigation? I don't want to fix the navigation everytime I add a controller. ...

How can I disabled debug navigation in django-cms?

I always see "selected (Level:" or "Sibling" next to each menu element. What I should do to disable this information from my website. ...

javascript location.href onchange event listener?

I want to show a message whenever you are leaving the page (not an annoying alert, just some html telling you to wait), in thinking about it I'm facing certain difficulties: when the user presses Stop in the browser, cancelling the navigate-away action, I'd like the message to go away. whenever any link is clicked, the message should a...

Is there a web control to dynamically generate a table of contents?

Say I have a basic page like so: <custom:TableOfContents /> <h1>Some Heading</h1> <h2>Foo</h2> <p>Lorem ipsum</p> <h2>Bar</h2> <p>Lorem ipsum</p> <h2>Baz</h2> <p>Lorem ipsum</p> <h1>Another Heading</h2> <h2>Qux</h2> <p>Lorem ipsum</p> <h2>Quux</h2> <p>Lorem ipsum</p> Assume all the header tags exist as se...

EF Accessing Parent Navigation Properties from the Child

I have a EF Model constructed like the following WorkOrderHeaders Which has a FK into these parent properties (Many to One relationships) WOPriorities WOStatusTypes WOPersonnel Also has these Child collections which are Linked to its PK (One to Many Relationships) WOFieldUpdates WODetails The One to many collections load correc...

Windows phone Navigation issue

Hi, I have an application where from the MainPage.xaml I navigate to a page called say two.xaml. In Two.xaml I then navigate to Three.xaml.. Now for Three.xaml I want to navigate back to the mainPage.Xaml. In Three.xaml if I do this.NavigationService.GoBack(); this.NavigationService.GoBack(); I get an InvalidOperationException. If ...

NavigationService.GoBack(); question

Hi there, When I call NavigationService.GoBack(); it doesn't reload the page. For example I have Page 1 which is my Login page, then I Navigate to Page 2 to the Settings Page. When I have saved my Settings on Page 2 I wish it to Navigate back to Page 1 and show the new settings that are displayed. Is there any call I can make where th...

ASP.NET C# - Sitemap using global resource file and nodes dynamically added from database?

I have a sitemap that's pulling its information from a global resource file (because the website is in two languages). That part is working. Now, I want to make it so that part of the sitemap is dynamically added from the database (product categories). I found a tutorial here and tried to implement it but it's not working. I can get ...

How To Perform Navigation In Silverlight 4.0 Using MVVM?

I'm new to Silverlight and I'm having trouble understanding how to properly navigate between pages, especially when I need to pass data around. Classic example: I have a list of People on one page, and when I click on a person in the datagrid I'd like to go to the details page and load that data. I need to pass the PersonId. More impor...

Is there an analog to "locate.replace()" in Silverlight 4 Navigation?

If a user navigates to a page that displays an "add item" view (#/items/add), I want to basically skip that url when they click "back" after they save the item. How can I do this? Here is the behavior I'm after in more detail... if the user has navigated to and is currently on this silverlight url: #/items/list when they click the "a...

Would it be possible to jump between prev/next Terminal command prompts?

Hi, I'm using zsh in OS X Terminal.app and for quite a while, I've been longing for a way to jump back and forth between prev/next prompts in the terminal's output. One convenience with this would be to be able to review (and track errors at) the end of each command's output; eg. when you building stuff from source with ./configure; mak...