AAAAwww/administrator/components/com_chronoforms/form_actions/http_request/cfaction_http_request.php000060400000004705151466401100032712 0ustar00home/academiacparams); $document = JFactory::getDocument(); //create the JS function ob_start(); ?> //id; ?> = function(){ var myForm = $('chronoform_form_name; ?>'); if(myForm.hasClass('hasValidation') == get('request_event', 'submit') == 'submit') ? "false" : "true"; ?>){ myForm.set('send', { url: 'get('http_request_url', ''); ?>', method: 'post', async: false, onRequest: function(){ get('onrequest_fn'))) > 0){ echo trim($params->get('onrequest_fn')).";"; } ?> }, onSuccess: function(responseText, responseXML){ get('response_element_id', ''))): ?> $('get('response_element_id', '')); ?>').set('html', responseText); get('onsuccess_fn'))) > 0){ echo trim($params->get('onsuccess_fn')).";"; } ?> }, onFailure: function(xhr){ get('onfailure_fn'))) > 0){ echo trim($params->get('onfailure_fn')).";"; } ?> } }); myForm.send('get('http_request_url', ''); ?>'); } } window.addEvent('domready', function() { get('request_event', 'submit') == 'submit'): ?> if($('chronoform_form_name; ?>').hasClass('hasValidation') == false){ $('chronoform_form_name; ?>').addEvent('submit', request_caller_id; ?>); } $('get('event_element_id', ''); ?>').addEvent('get('request_event', 'submit'); ?>', request_caller_id; ?>); }); //]]> addScriptDeclaration($script); } } ?>