| Index
» Projekty
» phpMyEdit
» Fórum
» Trigger to send the user back one page |
 |
netalvesj
Založený: 07.03.2005
Príspevky: 3
Zaslal: 2005-04-18 11:07
Návrat hore
Odpovedať s citátom
|
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
Založený: 06.01.2003
Príspevky: 320
Bydlisko: Phoenix, Arizona (USA)
Zaslal: 2006-06-10 09:33
Návrat hore
Odpovedať s citátom
|
You have to print out HTML page with link "Please go back", something like this:
| Kód: |
<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
Založený: 06.01.2003
Príspevky: 320
Bydlisko: Phoenix, Arizona (USA)
Zaslal: 2006-06-10 10:48
Návrat hore
Odpovedať s citátom
|
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
.
|
|
Odoslať novú tému
Odpovedať na tému
|
|
|
|