"Previous" doesn't function as 'back'...
I've noticed that in setting up a button to jump to <previous page> the result is the button may not take you back to the actual previous page you were viewing.
If your browsing takes you from page one directly to page four, then the <previous> action won't take you back to your actual previous page - page one - it will take you to page three. <Previous> and <Next> buttons do work as expected if you navigate the site sequentially -- from page 1 to 2 to 3 to 4 etc.
Is there a way to have a 'previous' button that behaves like a browser 'back' button and will take you to the actual previous page you visited?
Regards, Ross
Re: "Previous" doesn't function as 'back'...
Quote:
Originally Posted by
Ross Macintosh
Is there a way to have a 'previous' button that behaves like a browser 'back' button and will take you to the actual previous page you visited?
Not without scripting.
Re: "Previous" doesn't function as 'back'...
Simply insert following string in the "Link to web address" field:
javascript:history.go(-1)
For "forward" button it's:
javascript:history.go(1)
Re: "Previous" doesn't function as 'back'...
John,
Shouldn't this (what the script does) be the NORMAL behavior for <Next page> and <Previous page> ?
The way they work now is useful, but perhaps should be named something else.
Re: "Previous" doesn't function as 'back'...
Quote:
Originally Posted by
jclements
Shouldn't this (what the script does) be the NORMAL behavior for <Next page> and <Previous page> ?
No it shouldn't. The idea of the "next" and "previous" links in the WD is that if you swap pages in your site, you don't need to alter their links in case they are used as a sequence. See the Gary Priester tutorial as an example.
These are just absolutely different things and have nothing in common except for the names used. :)
Quote:
The way they work now is useful, but perhaps should be named something else.
Well, the history navigation is usually called "Back" and "Forward" not the "Previous page" and "Next page". Look at the tooltips in your browser. So I'm pretty sure that our naming of this feature is absolutelly correct.
BTW, why would anyone add back/fore buttons on his page if every user see them both on the browsers toolbar? :confused:
Re: "Previous" doesn't function as 'back'...
"BTW, why would anyone add back/fore buttons on his page if every user see them both on the browsers toolbar? "
For client specific needs. For example web based online training manuals or Operation and Maintenance manuals. Folks on production floor can be really unsaavy with browser navigation. Also may depend upon how Browser is configured at different workstations on the floor.
You'd be surprised at some of the guidelines set by clients, especially those will low budgets for training their employees.
Re: "Previous" doesn't function as 'back'...
I see. I assume this is very specific demand. Overwhelming majority of the pages created with WD are oriented at readers familiar with their browser (otherwise they would be not able to reach any page in the web, since everyone who knows how to enter url, knows how to use back and forward buttons). Thus, this feature is mostly redundant. Especially considering the simplicity of it's implementation by the designer, as I have suggested previously.
Implementing this capability may also provoke unexperienced designers to use it too often. Using history links is not considered a good practice as it can be misleading and confusing for the visitors. And unexperienced designers are a major group of WD users. On the other hand, experienced designers would not have any problems using simple js links.
Just my thoughts though.
Re: "Previous" doesn't function as 'back'...
"...just my thoughts"
My thoughts as well. The debate about the user's knowledge with regards to software/computers has been an issue the occurs over and over when formulating electronic documentation manuals and the like.
I agree with you, but it seems to fall of deaf ears. Companies have invested many $ in IT people and programmers to develop specially targeted apps, only to reverse their thinking (downsizing IT departments)and look for an off-the-shelf solution [hello XWD] . Time is the only remedy. ... But I regress.
I get frustrated by it too (probably the same way you get with non-Html savvy folks like myself :o )
I think XWD will help in bridging this gap. You patience with "us" is key to our understanding. So long as you're willing to listen, so will Xara's loyal customers.
Re: "Previous" doesn't function as 'back'...
I've found the discussion in this thread very interesting and food for thought.
It seems to me that John Clements suggestion that the 'previous/next' & 'back/forward' should all be available options in the link-to drop-down makes much sense to me. I believe as a tool it should be as flexible as possible. Offering the designer choice is a good thing.
In support of having the additional options included in a future version I offer the following scenario: When designing a web site it is entirely plausible that you could include a page that is linked from several others. Once visited, the navigation should really go "back" and not to a sequential next or previous.
While I can agree Covoxer's argument that back & forward are typically browser functions, I still think the tool should provide flexibility (without needing script skills).
Regards, Ross
Re: "Previous" doesn't function as 'back'...
It's a conundrum for sure. For when you go back to the page last visited, the page you left becomes the page last visited :rolleyes:
Re: "Previous" doesn't function as 'back'...
Further to that Steve, I can agree it isn't very logical to have a back button on every page in a site; yet, there can still be specific pages where it really is appropriate. A good example is if you have a multipage site and every page links to a Copyright notice page. When through visiting that page it makes sense to have a 'back' navigation -- much more sense than a previous or next.
Regards, Bossy Rossy
Re: "Previous" doesn't function as 'back'...
Geez, time zones at opposite ends-o-the-world, at the sametime.
Re: "Previous" doesn't function as 'back'...
Re: "Previous" doesn't function as 'back'...
For these unique cases (and I mean unique - how many sites with back button have you seen?) - you can easily use this link:
javascript:history.go(-1)
Why clutter interface with it? Is it hard to remember? Then type "javscript back" in a google. It's really a trivial thing.
And on top of it - it is considered a bad practice to include history links on pages. Sorry for repeating myself, but it looks like you don't read my posts a all.
There is quite a lot MUCH more important and useful things that should be added to future versions of WD than this.
Re: "Previous" doesn't function as 'back'...
Fair enough John. :)
I certainly read all your postings and appreciate your work. Still, of course, I reserve the right to disagree. While you see it as a little trivial thing I see it as potentially useful - even if it is uncommonly used today.
Regards, Ross