You need to sign in to do that
Don't have an account?
mxalix258
CommandButton to reload entire window
Hi,
I have a piece of code that is a command button that links to another page, the problem is since the visualforce page is embedded as an iFrame, it only loads within the iframe. How can I get it so that it reloads the entire window with the URL that I am looking to go to?
<apex:pageblockButtons location="top"> <apex:commandbutton action="/a02/o" title="View All" value="View All"> </apex:commandbutton> </apex:pageblockButtons>
this should work. it worked for me.
All Answers
You could try something like this.
I forgot to mention that I am utilizing a custom controller, would that affect the usability of your solution? It gave me an error of "unknown property"
If so you could use a redirect method in the controller which will have the url value to redirectURL field which is being use for redirection.
Let me know if it still doesnot work.
My visualforce page isn't able to recognize the variable "redirectURL" is there something wrong with the method I put in my controller?
try this.
Thanks a lot for your help so far! It just seems to be perpetually loading now. It never loads the whole page. Here is the code:
can you try this small change.
When I load the visualpage, it automatically reloads the target URL (/a02/o) without clicking anything....any thoughts on why that would be?
try this. if this doesnt work... we should go with onclick event..
No such luck....for some reason it still seems as though the page is continually loading back and forth. I'm sorry, I didn't realize this would be so complicated!
this should work. it worked for me.
Thank you so much!