The main difference between the two pages is the method of sending messages. Recieving messages is the same in both.
Send messages to iframe using iframeEl.contentWindow.postMessage
Recieve messages using window.addEventListener('message')
<?php | |
// put array in here | |
$array = array ( | |
'key' => 'group_54624ad06f391', | |
'title' => 'Company List', | |
'fields' => array ( | |
array ( | |
'key' => 'field_54624aff43237', | |
'label' => 'Companies', |