| Index
» Projects
» phpMyEdit
» Forum
» Trigger to send the user back one page |
 |
netalvesj
Joined: 07 Mar 2005
Posts: 3
Posted: 2005-04-18 11:07
Back to top
Reply with quote
|
Hi,
I've used triggers, and now I have a problem.
If the user Cancels an operation I want to send him back one page.
I've tried this solution
$opts['triggers']['delete']['cancel'] = 'categories.TDC.inc';
categories.TDC.inc:
<?php
Header("Location: javascript:history.go(-1)");
?>
But it does not work.
any expert ideas?
Best wishes,
JAlves
|
nepto
Joined: 06 Jan 2003
Posts: 381
Location: Phoenix, Arizona (USA)
Posted: 2006-06-10 09:33
Back to top
Reply with quote
|
You have to print out HTML page with link "Please go back", something like this:
| Code: |
<html>
<head>
<title>Error</title>
</head>
<body>
<a href="javascript:history.go(-1);">Back</a>
</body>
</html>
|
But you may get "Page cannot be displayed" in your browser. Any (better) sugestion?
_________________ Ondrej Jombik (Nepto)
Visit my
homepage
, review my recent
CV
or
projects
and give me some
feedback
.
|
nepto
Joined: 06 Jan 2003
Posts: 381
Location: Phoenix, Arizona (USA)
Posted: 2006-06-10 10:48
Back to top
Reply with quote
|
What *may* work is, that you will use links-based navigation instead of buttons.
_________________ Ondrej Jombik (Nepto)
Visit my
homepage
, review my recent
CV
or
projects
and give me some
feedback
.
|
|
Post new topic
Reply to topic
|
|
|
|