Detail view - GoBack in IE - Webpage has expired

jflash

Member
It started in thread: http://fabrikar.com/forums/showthread.php?t=22834

I made small change in file:
/components/com_fabrik/views/form/view.html.php
On row 557. There was:
Code:
$gobackaction = "onclick=\"history.back();\"";
and i change it:
Code:
$gobackaction = "onClick=\"parent.location='http://www.myhomepage.ee/index.php/myview'\"";
It works in IE and Firefox, but i think there is a better way to put needed web-address in PHP :)
 
thanks - why didn't I think of that! You can get the referring page in PHP with:

$_SERVER['HTTP_REFERER'];

so I've added that to the code @github

-Rob
 
Remember that sometimes that won't exist. Not often, but (say) if someone comes in from a bookmark in their browser, or by letting their browser auto-complete a URL they have previously visited.

I can't remember offhand if it'll just be empty, or actually won't exist in $_SERVER.

-- hugh
 
yup - been through and replaced it in several places with a JRequest::getVar() call.
 
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top