vlead / vlabs-landing-pages

Other
1 stars 4 forks source link

Interaction between iframes using postmessage #97

Closed ksripathi closed 6 years ago

ksripathi commented 6 years ago

On vlabs-landing-page, header iframe contains login, register and logout buttons and content iframe holds the content of the labs, based on the content on the content iframe header buttons should be manipulated as needed. This we can achieve by using postmessage which is a method of an iframe object

ksripathi commented 6 years ago

This issue contains following sub-tasks

1) configure nginx server to load the javascript after the body-loads 2) create two VMs one content.base4.vlabs.ac.into hold the content and other header.base4.vlabs.ac.into hold header page 3) setup javascript variable document.domain = base4.vlabs.ac.in to allow cross communication between two different iframes coming from different origins

ksripathi commented 6 years ago

implementation : https://github.com/vlead/vlabs-landing-pages/blob/styles/src/frame.org#post-message-between-iframes

ksripathi commented 6 years ago

Raised issue at https://gitlab.com/vlead-systems/systems-operations/issues/246 to get domain names