Gossamer Forum
Home : Products : DBMan : Customization :

short/long display and modif

Quote Reply
short/long display and modif
hello all !
I've modified html.pl to use short and long display (on my intranet, so i've no adress to give to you !, thanks JPD)
users want to be able to go directly to modify a record when they've found the one they're searching (in view_record_long),
I've added an url-link to go to the modify_record function directly (I build the cgi call with modify_record=1 and Id=$rec{'id'}). It works fine.
The problem is that i want to go back to the short list display after html_modify_success display of the modification, but i can't find how to do this.
Does anyone understand my problem and have an idea?
Quote Reply
Re: short/long display and modif In reply to
The only quick and dirty solution I have is to use a javascript code that will take you back two pages in history:

Code:
<a href="javascript:history.go(-2)">Back to Search Results</a>

Change the Search Results to whatever the page is you want users to re-access.

Hope this helps.

Regards,

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us