Hello all,
I have a page here - this is the PARENT page : http://www.beleuramyhome.org.au/videoclips.html
It has a Layout grid with 2 columns
In the RHS column is an iFrame, The iFrame loads into itself a CHILD page which has in it a Blog Object
The Blog object has in it many entries, and the visitor scrolls down to click on a button, by that time - the Viewer which resides in the LHS of the PARENT page is already out of sight.
I want to force the click to execute 2 things onto the PARENT page
1) Make the link of the new video clip into the viewer, AND
2) Force the PARENT page to scroll back into view top of page
This can be better seen on a mobile phone - where the problem manifest itself
I have seen some suggestion of using a windows=>postmessage from the click in the blog into the PARENT but have no idea how to go about it
Hope somebody here can help me
Thanks
Posting a message from a Child page to its parent
Forum rules
This section is to share tips, tricks and tutorials related to WYSIWYG Web Builder.
Please do not post questions or problems here. They will not be answered.
PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901
This section is to share tips, tricks and tutorials related to WYSIWYG Web Builder.
Please do not post questions or problems here. They will not be answered.
PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901
- BaconFries
-
- Posts: 5933
- Joined: Thu Aug 16, 2007 7:32 pm
Re: Posting a message from a Child page to its parent
Forum rules
This section is to share tips, tricks and tutorials related to WYSIWYG Web Builder.
Please do not post questions or problems here. They will not be answered.
This section is to share tips, tricks and tutorials related to WYSIWYG Web Builder.
Please do not post questions or problems here. They will not be answered.
Re: Posting a message from a Child page to its parent
OOPS... unintentional, didn't notice into which forum I am posting.BaconFries wrote:Forum rules
This section is to share tips, tricks and tutorials related to WYSIWYG Web Builder.
Please do not post questions or problems here. They will not be answered.
BUT - to pay for my Sin, I RESOLVED this as follows, and offer to share it as my trick contribution
In the CHILD page, where the Blog object is:
Open the Events tab, click Add and Add 2 events. For both - chose OnClick, for both chose Java Script
In this order - insert
1) window.parent.scrollTo(0, 0);
2) return true;
Upon clicking the selected Blog option, it loads the respective URL into the viewer, and scrolls the browser back to the top of the page... Easy... (after I found a hint at w3schools.com)
Hope some else can find this useful