Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript_howto thread: History.back() -- A major pain.. help!!!!


Message #1 by Rajeev_Venkatraman <Rajeev_Venkatraman@s...> on Mon, 15 Jul 2002 20:25:44 +0530
The error page code is here... after that is the code for the page which is
giving error
<%@ Language=VBScript%>   

<% 
	Option Explicit
	On Error Resume Next
	
	Dim strError
	strError=Request.QueryString("error")
	
%>	
<html>
<head>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script>
function Back()
{
	history.go(-1);
}
</script>
</head>

<body bgcolor="#FFFFFF">
	<br>
	<P align=center><a href="javascript:Back()"><img
src="../images/Back_b.gif" border=0 alt="Back"></a></P>
		
</body>
</html>

The page which is creating the problem is another asp page which calls a
component to retreive some value on submission and if there is an error it
is redirected to the error page. It is a big page. Shall i post it in this??


-----Original Message-----
From: Mark Eckeard [mailto:meckeard2000@y...]
Sent: Tuesday, July 16, 2002 9:41 AM
To: JavaScript HowTo
Subject: [javascript_howto] Re: History.back() -- A major pain.. help!
!!!


I would have to see your code to determine that.

Post it so we can help.

Mark
--- Rajeev_Venkatraman <Rajeev_Venkatraman@s...>
wrote:
> can u tell me why it is selectively retaining some
> values and sometimes it
> is not.. 
> 
> -----Original Message-----
> From: Mark Eckeard [mailto:meckeard2000@y...]
> Sent: Monday, July 15, 2002 8:35 PM
> To: JavaScript HowTo
> Subject: [javascript_howto] Re: History.back() -- A
> major pain..
> help!!!!
> 
> 
> If your running ASP pages, set the values to session
> variables.  Then, whenever you hit the page, set the
> values from those session variables to the values of
> the input boxes.
> 
> Or you can use javascript cookies.
> 
> Mark.
> --- Rajeev_Venkatraman
> <Rajeev_Venkatraman@s...>
> wrote:
> > We are facing a peculiar problem with the
> > History.back function.
> > 
> > We have a common Error page where all the error
> > messages are redirected and
> > we have a Back button in that, which calls the
> Java
> > Script function
> > History.back().
> > 
> > The problem is that if the calling page is a data
> > entry page, and when the
> > page is called back, ideally it should retain all
> > the values that were
> > entered, and which happens for all the pages
> except
> > for a couple of them.
> > 
> > Can please someone suggest a possible remedy or
> any
> > settings that we need to
> > do  for this, or any coding issue that we can look
> > into in those pages.
> > 
> > Thanks in advance
> > 
> > Regards,
> > Rajeev
> >
>
**************************************************************************
> > 
> > This email (including any attachments) is intended
> > for the sole use of the
> > intended recipient/s and may contain material that
> > is CONFIDENTIAL AND
> > PRIVATE COMPANY INFORMATION. Any review or
> reliance
> > by others or copying or
> > distribution or forwarding of any or all of the
> > contents in this message is
> > STRICTLY PROHIBITED. If you are not the intended
> > recipient, please contact
> > the sender by email and delete all copies; your
> > cooperation in this regard
> > is appreciated.
> >
>
**************************************************************************
> > 
> > 
> > ---
> > 
> > Improve your web design skills with these new
> books
> > from Glasshaus.
> > 
> > Usable Web Menus
> >
>
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
> > r-20
> > Constructing Accessible Web Sites
> >
>
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
> > r-20
> > Practical JavaScript for the Usable Web
> >
>
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
> > r-20
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Autos - Get free new car price quotes
> http://autos.yahoo.com
> 
> 
> ---
> 
> Improve your web design skills with these new books
> from Glasshaus.
> 
> Usable Web Menus
>
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
> r-20
> Constructing Accessible Web Sites
>
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
> r-20
> Practical JavaScript for the Usable Web
>
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
> r-20
>
**************************************************************************
> 
> This email (including any attachments) is intended
> for the sole use of the
> intended recipient/s and may contain material that
> is CONFIDENTIAL AND
> PRIVATE COMPANY INFORMATION. Any review or reliance
> by others or copying or
> distribution or forwarding of any or all of the
> contents in this message is
> STRICTLY PROHIBITED. If you are not the intended
> recipient, please contact
> the sender by email and delete all copies; your
> cooperation in this regard
> is appreciated.
>
**************************************************************************
> 
> 
> ---
> 
> Improve your web design skills with these new books
> from Glasshaus.
> 
> Usable Web Menus
>
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
> r-20
> Constructing Accessible Web Sites
>
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
> r-20
> Practical JavaScript for the Usable Web
>
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
> r-20


__________________________________________________
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.com


---

Improve your web design skills with these new books from Glasshaus.

Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20
************************************************************************** 
This email (including any attachments) is intended for the sole use of the
intended recipient/s and may contain material that is CONFIDENTIAL AND
PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
distribution or forwarding of any or all of the contents in this message is
STRICTLY PROHIBITED. If you are not the intended recipient, please contact
the sender by email and delete all copies; your cooperation in this regard
is appreciated.
**************************************************************************

  Return to Index