Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics 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 January 22nd, 2004, 06:38 AM
Authorized User
 
Join Date: Nov 2003
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
Default back function

Hi,
Is it is possible to program a button to work in exactly the same way as the back button found on most internet browsers. I ask this because i have a number of entries that are also hyper links to add more detail, with a check box next to them. I want the user to be able to check the relevant tick boxes, but if neccesary, click on the entry to add more detail, and once this extra detail has been submitted, be taken back to the original page, with all the ticks already made still there.

Is this possible without lots of parameter passing?


thankyou in advance

 
Old January 22nd, 2004, 04:15 PM
Friend of Wrox
 
Join Date: Aug 2003
Posts: 205
Thanks: 0
Thanked 0 Times in 0 Posts
Default

In a HTML Script tag (set to use JavaScript) type:

function goBack()
{
    window.history.back();
}

And call the function from the button.
 
Old January 23rd, 2004, 04:22 AM
Authorized User
 
Join Date: Nov 2003
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
Default

cheers!

 
Old January 23rd, 2004, 10:43 AM
Registered User
 
Join Date: Jan 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You can also set a button up to take you to any URL you want, as in:

<input type="button" value="go to Google!" onClick="location='www.google.com'">

Doesn't even need to be inside a form.






Similar Threads
Thread Thread Starter Forum Replies Last Post
send variable in function to another function schoolBoy Javascript How-To 6 March 3rd, 2007 09:16 AM
How to call javascript function from VB function vinod_yadav1919 VB How-To 0 February 13th, 2006 06:03 AM
history.back or hitting the back button won't work lian_a Classic ASP Basics 4 July 29th, 2004 12:14 AM
retreive function/Line from macro or function? MikoMax J2EE 0 April 1st, 2004 04:42 AM
Back Up shamsad Oracle 0 February 11th, 2004 06:00 AM





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