Welcome Guest, Not a member yet? Register   Sign In
trying to refresh browser
#7

(01-12-2021, 09:55 AM)demyr Wrote: If your request is PHP then, when the process is success you can redirect to the same page :

PHP Code:
$result $this->UserModel->save($data);
if(
$result){
return 
redirect()->to($_SERVER['HTTP_REFERER']);



If it is an ajax request:
Code:
window.setTimeout(function(){location.reload()},1500)
Thanks. I have lots of custom data in session variables. Is this an issue? With the ajax version can I place that in the middle of my php code?
proof that an old dog can learn new tricks
Reply


Messages In This Thread
trying to refresh browser - by richb201 - 01-12-2021, 04:52 AM
RE: trying to refresh browser - by php_rocs - 01-12-2021, 07:09 AM
RE: trying to refresh browser - by richb201 - 01-12-2021, 07:14 AM
RE: trying to refresh browser - by php_rocs - 01-12-2021, 07:19 AM
RE: trying to refresh browser - by demyr - 01-12-2021, 09:55 AM
RE: trying to refresh browser - by richb201 - 01-12-2021, 02:42 PM
RE: trying to refresh browser - by InsiteFX - 01-12-2021, 12:30 PM



Theme © iAndrew 2016 - Forum software by © MyBB