Again, I’m not a javascript guru. But the next sample will load an url in one of the iframes which are build as a container application. The one form in a container will load another in the secondary container (iframe) I do this in the onscriptinit to load a default help page, but the principle would be the same I guess… Hope this helps you a bit.
echo '<script type="text/javascript">function disp_a(xfrm,xuri) { parent.document.getElementById("id-iframe-widget1").src="../form_sideline/form_sideline.php?glob_id=newcustomer&glob_shopid=generic"; } </script>';
$javascript_function = 'disp_a'; // Javascript function name
$javascript_parameters = array( // Javascript function parameters, add as many as needed
'',
'');
// Call javascript function
sc_ajax_javascript($javascript_function, $javascript_parameters);