Help - Search - Members - Calendar
Full Version: forward next links
HTMLHelp Forums > Web Authoring > General Web Design
coolvibes
Here is A problem i have site wide call me stupid but i tried to link forward back buttons buy means of where i come from last. but as my site developed i have more than one way to reach pages now .my question being is there some code that remembers were i was last so when i click back button it lets me go back to the page previous in instead of my chaotic not always working approach.
Kind regards
Admin@raveskool.com
pandy
Yeah, with JavaScript or for example SSI. But why would you? Every browser I've seen had a back button or some other way to go back to the previous page.
http://www.comptechdoc.org/independent/web...avahistory.html
http://bignosebird.com/sdocs/backbutton.shtml
coolvibes
Browser has forward back buttons but not next and why have a next on its own without back or home? Look a bit lonely wouldn’t you say. For example on my Kaleidoscope flyer page http://www.raveskool.com/rave_site/a005.html you would click next and get the next flyer in the sequence http://www.raveskool.com/rave_site/a006.html and when you click back you get the pervious page.
But if i arrived from say my download select page http://www.raveskool.com/rave_site/dld016.html when i clicked back i would get next flyer in the sequence instead of the downloads page i came from hope this explains my dilemma in a bit more detail.
Kind regards
coolvibes
pandy

QUOTE
Browser has forward back buttons but not next and why have a next on its own without back or home? Look a bit lonely wouldn’t you say. For example on my Kaleidoscope flyer page


There actually are browsers with a next button, but I don't understand what that has to do with anything. I thought you wanted back and forward.



QUOTE

But if i arrived from say my download select page http://www.raveskool.com/rave_site/dld016.html when i clicked back i would get next flyer in the sequence instead of the downloads page i came from hope this explains my dilemma in a bit more detail.


That's why you need JS or SSI (or PHP or something else). Try the examples. Or just use the browser's back button. happy.gif
coolvibes
I hate php for a start of i have to backwards engineer someone else’s work to get to grips with it .even now i shudder at the thought of writing more. But if this is what i need i will look in to it tonight and let you know how i faired which is not going to be good took me 6 hours last time
Kind regards
coolvibes
pandy
So use JavaScript or SSI then.
coolvibes
I am sorry didn’t i make it clear it ought myself every think you see which is not a lot don’t matter if its forth Pascal or basic 1 i still have to rip other peoples work apart to grasp the basic code i dears then its trial and error until i crack it even java script is a challenge not impossible as i will always achieve what i set out to do it is just the time i wish i was some programming whiz kid but i am not and that’s fact but thanks for advice don’t suppose you fancy some one on one tuition i am a fast learner

Kind regards wanabe web guru
coolvibes
Darin McGrew
Please see the FAQ entry How do I create a back button on my page?
coolvibes
<!--==========================================
====Raveskool.com, Created by Coolvibes===
==========================================
===================================================================
==== Copyright 2008 Raveskool.com smile.gif ltd All rights reserved. ===
==== Fwd bck Nav ===
===================================================================-->
<head>
<title>eg</title>
</head>
<body>
<![CDATA[

<script type="text/javascript">
function goHist(a)
{
history.go(a);
}
</script>

<form method="post">
<input type="button" value=" BACK " onClick="goHist(-1)">
<input type="button" value="FORWARD" onClick="goHist(1)">
</form>

]]>
</body>
</html>
So what if i only want text not the buttons showing ?
kind regards
coolvibes
Darin McGrew
QUOTE
So what if i only want text not the buttons showing ?
Put the onclick event handler on a link, rather than on a button.
coolvibes
Sory dont know how
kind regards
pandy
HTML
<a href="page.html" onclick="history.back(); return false">back</a>


Where 'page.html' is the link you use now. That way people without JS will get that, which is better than that they don't go anywhere when they click.

'return false' kills the link (when JS is available). Don't know why it's needed in this case, but it seems to be. Without it the browser follows the real link, at least my IE does. Why is that, I wonder? unsure.gif
coolvibes
i ripped the code from coffe cup sample i surpose i should try it in a page i will do it after the kids are inbed at 8 post my page then i will know how wrong or right i am
coolvibes
No sometimes i just dont understand why the code dose what it dose this is one of those times i will try again after i finished the site updates and requests thanks for all your help much appricated.

kind regards
admin@raveskool.com
coolvibes
Ps my avatar keeps being removed this one is clean and also in the site parameters so is site Admin having ago feel free to ban me from your forum if you have a problem mate all i will say is i have been nothing but polite and conformed to all requests so what exactly is your problem.
Darin McGrew
I'm not sure what happened to your second avatar. If you've got a new avatar that is more appropriate, then please try uploading it again.
coolvibes
thanks Darin Sorry had a bad experience on another linux forum admin banned me because i refused to use spell check
kind regards
Darin McGrew
We don't ban people for refusing to spellcheck their posts. But you should be aware that sloppy writing creates a worse impression than careful writing does.
coolvibes
And now i error check site html code what a mess i have working pages now but wish i had been more carefull when coding now i have work ahead i didnt give 1000 pages a usefull name eg a001 not good for the spider software for search engines so i just finished 100 pages 900 left talk soon thanks for all your help and sorry again
kind regards
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.