Have a look at LeftAndMain::ForceReload, I think this is what you want - i.e refreshing the page in the cms.
LeftAndMain::ForceReload();
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
Have a look at LeftAndMain::ForceReload, I think this is what you want - i.e refreshing the page in the cms.
LeftAndMain::ForceReload();
Hey Dio, thanks for the reply. I can't get it to respond to that call. I'm putting it in the iframe controller, just before the Director::redirect, is that the correct place?
Hallo aram,
"This does refresh the page.........over and over and over infinately Unfortunatly because the form is in an Iframe when you refresh the page like this is also refreshes the iframe which then refreshes the page and so on. unless I missed some code in there?"
I have seen this Problem now. It's only with Firefox 3. I have solved it with:
function refresh() {
top.location.href="/cms/admin";
}
Hi Fridolin
I still seem to get an infinite refresh in both IE7 and FF3.....it seems like that approach hast to be impossible unless you can set some sort of "if alredy reloaded dont reload agaon" type clause.
EDIT: sry, posted the wrong thread