Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Wednesday, October 14, 2026
About Us
Magazine
Open Source
CVS
Services
Index  »  Projects  »  phpMyEdit  »  Forum  »  Trigger to send the user back one page

phpMyEdit General     Trigger to send the user back one page
Post new topic   Reply to topic    
 
netalvesj     Joined: 07 Mar 2005   Posts: 3  
Post 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)
Post 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)
Post 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    

Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top · Feedback form · Application form
Report bug on PLATON.SK website · Terms of use · Privacy policy