Posting a message from a Child page to its parent
Posted: Sun Aug 14, 2016 7:53 am
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
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