Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
How can I make embeddable forum 'jump' to top of iframe when link clicked?
conorcan
New
Why? Because otherwise the user can be presented with blank or cut off pages.
The best way to explain this is by example.
If you look at the list of discussions on fiverfriday.com, you'll see that it is an embedded forum. Now, if you click on a link near the bottom of that list you'll apparently get a white page.
Clicking on a link within the iframe of an embeddable page should take you to the top of that iframe so that this situation doesn't happen.
The best way to explain this is by example.
If you look at the list of discussions on fiverfriday.com, you'll see that it is an embedded forum. Now, if you click on a link near the bottom of that list you'll apparently get a white page.
Clicking on a link within the iframe of an embeddable page should take you to the top of that iframe so that this situation doesn't happen.
Tagged:
0
Best Answer
-
Todd Vanilla StaffHmm. It does look like you are using embed vanilla, but perhaps some other script on you page is interfering.
One thing you can try is giving an element just above the forum an id and then adding the following javascript:parent.location.hash.replace('#header');
0
Answers
Add this to the default.master.tpl file in the views folder:
onload="self.scrollTo(0,0)"
It doesn't work, but
onload="parent.scrollTo(0,0)"
works on scrolling THE WHOLE page back to the top (which is not what I want).
One thing you can try is giving an element just above the forum an id and then adding the following javascript: