I have been using Freeway 4 Pro for only a very short time and have to say that I am loving the experience. My background is in print design where I work on Quark and InDesign.
Previously I used GoLive as a novice. In that program it is possible to use mathematical instructions to navigate and I wondered if the same was possible in Freeway.
I would like to be able to use the instruction “go back to previous page” rather than actually specifying which page that is - navigate to page you just came from, or page minus one.
Do you want to do this with text or a button? here are a couple of
options:
Text
1# Select the text
2# Press Command - K
3# Select ‘External’
4# Type: javascript:history.back() into the text area
5# Press ‘OK’
This uses javascript so the text won’t work for users who do not have
js enabled.
Button
Freeway doesn’t offer any way to extend a button. but you could use
the source code snooper and alter the button that way, another way and
probably the simplest would probably be to use a markup item.
1# Select ‘Insert Markup…’ from the ‘Page’ menu
2# Copy and paste this next line of code into the markup window:
<input type="button" value="Go back to previous page"
onClick=“history.go(-1);”>
3# Press ‘OK’
You could ajust the 1- (back one page) to -2 to go back two pages.
Hope this helps.
On Feb 10, 2008, at 10:44 AM, David wrote:
I have been using Freeway 4 Pro for only a very short time and have
to say that I am loving the experience. My background is in print
design where I work on Quark and InDesign.
Previously I used GoLive as a novice. In that program it is possible
to use mathematical instructions to navigate and I wondered if the
same was possible in Freeway.
I would like to be able to use the instruction “go back to previous
page” rather than actually specifying which page that is - navigate
to page you just came from, or page minus one.
Sometime around 10/2/08 (at 11:01 +0100) Mike B said:
Hi David,
Do you want to do this with text or a button? here are a couple of
options:
Text
1# Select the text
2# Press Command - K
3# Select ‘External’
4# Type: javascript:history.back() into the text area
5# Press ‘OK’
This uses javascript so the text won’t work for users who do not have
js enabled.
Note: this process is the same for graphic items. The button
technique also mentioned is purely for actual form-style buttons, not
button-like graphics. Hmm… I hope I’ve made things clearer rather
than just muddied the water!
This will work for most people, yes. But those who don’t have it
enabled will click and click and nothing will happen. If this is
mission-critical navigation, I would encourage you to think about
another way to do it altogether.
By the way, the way I was taught to do this is with:
javascript: history.go(-1);
I have not encountered this back command before, but it looks useful!
Walter
On Feb 10, 2008, at 7:40 AM, David wrote:
Thank you both for the quick responses.
Do you think that the majority of people have javascript enabled? I
am trying to do this “history back one” navigation using a roll-
over button.