AAAAwww/administrator/components/com_chronoforms/form_actions/iframe_request/cfaction_iframe_request.php000060400000003136151372326000033460 0ustar00home/academiacparams); $document = JFactory::getDocument(); JHTML::_('behavior.mootools'); $mainframe = JFactory::getApplication(); $uri = JFactory::getURI(); $cf_url = $uri->root(); $cf_url .= 'administrator/components/com_chronoforms/form_actions/iframe_request/'; $document->addScript($cf_url.'iFrameFormRequest.js'); //create the JS function ob_start(); ?> //form_name; ?> = new iFrameFormRequest('chronoform_form_name; ?>',{ onRequest: function(){ get('onrequest_fn'))) > 0){ echo trim($params->get('onrequest_fn')).";"; } ?> }, onComplete: function(response){ get('response_element_id'))) > 0): ?> document.id('get('response_element_id')); ?>').set('html',response); get('onsuccess_fn'))) > 0){ echo trim($params->get('onsuccess_fn')).";"; } ?> } }); }); //]]> addScriptDeclaration($script); } } ?>