Wrox Programmer Forums
|
Javascript General Javascript discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 6th, 2004, 04:23 PM
Friend of Wrox
 
Join Date: Apr 2004
Posts: 121
Thanks: 0
Thanked 0 Times in 0 Posts
Default Remembering URL

I am looking to setup a function that looks at the current url of the page that is being displayed and passes that url to an external function. Then when someone comes back into a specific page, they can click a link to take them back to where they left off. Any thoughts?

Clay Hess
__________________
Clay Hess
 
Old April 6th, 2004, 11:34 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 996
Thanks: 2
Thanked 11 Times in 11 Posts
Send a message via Yahoo to melvik
Default

u can get the corrent location with
Code:
window.location.href
& store it in a [u]Session </u>or [u]Cookie </u>& use it as u wish...
HTH.

Always:),
Hovik Melkomian.
 
Old April 7th, 2004, 07:46 AM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
Default

You could store it in a JavaScript cookie or pass it to the server for PHP or ASP or something to store it in a session, as Hovik said, or pass it to a database to store a list of locations. Depends on exactly what you want to use this for.

----------
---Snib---
----------

<><





Similar Threads
Thread Thread Starter Forum Replies Last Post
URL Redirect based on given URL somnath.kartic VS.NET 2002/2003 1 August 2nd, 2012 08:21 AM
URL rewriting with URL forwarding mtabyana BOOK: Professional Search Engine Optimization with PHP: A Dev's Guide to SEO ISBN: 978-0-470-10092-9 0 October 22nd, 2007 08:22 AM
how to get the URL js_pandey Beginning PHP 2 July 8th, 2005 08:08 AM
extract URL from Favorites (.URL Files) PhilHawks VB.NET 2002/2003 Basics 2 November 2nd, 2004 04:35 AM
remembering last login webpage. jenjenyan Classic ASP Basics 2 February 9th, 2004 11:44 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.