Beginner Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOtherBeginner Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
A high performance database engine using optimized data access for all development environments including Delphi, Visual Studio .NET, Visual Basic, Visual FoxPro. and more. Learn More
  #1  
Old June 17th, 2000, 04:14 PM
Pepe Pepe is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Posts: 71 Pepe User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
I made page that redirects user to another page 2 seconds after loading, but I actually need it to go back two pages from history.
How should I modify this line:
<meta http-equiv="Refresh" content="2; URL=http://mysite.com/submit.html">

Reply With Quote
  #2  
Old June 17th, 2000, 06:24 PM
Adrian2 Adrian2 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2000
Location: London, England
Posts: 251 Adrian2 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
I don't think you can do that from a REFRESH, you have to use JavaScript.

<html>
<head>
<title>JS History test</title>
</head>

<body onLoad="history.go(-2)">
<h1>Goodbye!</h1>
</body>

</html>

--------------------

Important points:

1. Not all browsers use JavaScript or will have their JS turned on.

2. The browser history stores clicks and not necessarily pages, so you may run into trouble if you have anchor targets within the intermediate pages. If not, then it should go back two pages.

3. This sort of thing is nearly always a bad idea anyway. Just what are you trying to do? I have a hunch that your users will be confused and/or irritated. It is *they* who should be in control!

Reply With Quote
  #3  
Old June 17th, 2000, 07:10 PM
Pepe Pepe is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Posts: 71 Pepe User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Thanks for a code.
Purpose of script is to send user back to form page, after entering wrong password, and then requesting password to be sent by email
I'm sending them this way because data that they already filled in form will remain.

[This message has been edited by Pepe (edited June 17, 2000).]

Reply With Quote
  #4  
Old June 18th, 2000, 04:52 AM
freebsd
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
>>I'm sending them this way because data that they already
>>filled in form will remain.

I see your point. You should realize redirecting them back to the form page will make them to start filling the fields all over again.

Have you ever seen guestbook preview page? It basically carry the original form fields over to that preview page. As for your case, you can use hidden fields to carry the correctly filled fields over and require them to re-enter whatever missing fields or incorrect field (wrong password in your case).

Reply With Quote
Reply

Viewing: Dev Shed ForumsOtherBeginner Programming > 2x back redirect


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway