Hi Dan, For browser security reasons the JavaScript history does not have the user's previous URL or page title's available - you can only ask the browser history to restore to a previous entry in the history list, but without knowing anything about those URLs.
The referrer idea could work, if browser referrers were more reliable than they are. Some browser settings prevent the referrer from being sent, and in my experience witango never did a good job of capturing the referer properly (at least in older versions). The preferred method is to build a "bread crumb" trail via cookies set using JavaScript on each page. There are tons of script examples for this available. http://www.google.ca/search?q=javascript+bread+crumb+trail Hope that helps. Scott, On Tuesday, October 16, 2007 7:48pm, Dan Stein <[EMAIL PROTECTED]> said: > I have an image gallery that people can get to from many different pages. > > I could just use a JS back history and it will work fine. But it would be > more elegant if I could show text like back to Kenya Program etc. I could > pass that in the link from each page then the question is how to get that > into the text using JS or AJAX stuff > > It would be even better if I could just grab the referring URL for the href > in the back and the passed text as the text for the link. > > Anyone have thoughts on how to do this? > > I could do it with witango I am processing htm pages through the server so I > could change this to an htm page but if there was a way to stick to the JS > it would be cleaner. > > You can see the site here > > http://gr.dss-demo.com/ > > > -- > -- > Dan Stein > FileMaker 7 Certified Developer > Digital Software Solutions > 799 Evergreen Circle > Telford PA 18969 > Land: 215-799-0192 > Cell: 610-256-2843 > Fax 215-799-0192 ( Call 1st) > FMP, WiTango, EDI,SQL 2000, MySQL, CWP > [EMAIL PROTECTED] > www.dss-db.com > > > "It is perfectly safe to stand nowhere." > > > ________________________________________________________________________ > TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf ________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
