This topic is locked
[SOLVED]

 Back Button

3/19/2013 3:07:46 PM
PHPRunner General questions
K
KennyB author

I have a Detail screen where I placed some buttons that will navigate to other VIews or Lists filtered by the Key on the Detail screen.
I would like to Navigate back to the detail screen. Is it possible to just have a BACK button that will close the current view and show the previous screen. I know i can hit the IE back arrow and it will show but how do i do it with a button on the screen.
There may be times where I with be at the Detail and then click a button that shows a Filtered list page and then that will go to a view page
Example
employee number 15 selected from list

goes to the Master record for the employee 15
have 3 buttons

  1. Comments - click this it shows a List page of comments entered - Hitting back here returns to Master
  2. Work History - click this shows a List page of dates then user can View a specific date data for employee 15 Hitting back here returns to the List page of dates for Employee 15
  3. Additional Indo - Click this shows a View page of the additional info for Employee 15 Hitting back here returns to Master

Admin 3/19/2013

You can use PHPRunner 'Insert button' feature and the following ClientBefore code:

history.go(-1); return false;
K
KennyB author 3/19/2013



You can use PHPRunner 'Insert button' feature and the following ClientBefore code:

history.go(-1); return false;



Thanks.. This worked in IE and FireFox but not in CHROME.. is there a method that would work no matter what browser is being used?

K
KennyB author 3/19/2013



Thanks.. This worked in IE and FireFox but not in CHROME.. is there a method that would work no matter what browser is being used?


SOLVED: Searching all over I finally found this to work .. From reading your solution should of worked in CHROME. Not sure why it did not on my pc.

I did have to add the return false to this one also (Got lucky I guess)
This works in IE, CHROME and FIREFOX
added to before client...
location.href = document.referrer;

return false;