Warning: Cannot modify header information - headers already sent by (output started at /mounted-storage/home71b/sub009/sc41635-MUDG/finanzaslocales.com/wp-blog-header.php:26) in /mounted-storage/home71b/sub009/sc41635-MUDG/finanzaslocales.com/wp-content/themes/3k/js/comments.js.php on line 10
Warning: Cannot modify header information - headers already sent by (output started at /mounted-storage/home71b/sub009/sc41635-MUDG/finanzaslocales.com/wp-blog-header.php:26) in /mounted-storage/home71b/sub009/sc41635-MUDG/finanzaslocales.com/wp-content/themes/3k/js/comments.js.php on line 11
Warning: Cannot modify header information - headers already sent by (output started at /mounted-storage/home71b/sub009/sc41635-MUDG/finanzaslocales.com/wp-blog-header.php:26) in /mounted-storage/home71b/sub009/sc41635-MUDG/finanzaslocales.com/wp-content/themes/3k/js/comments.js.php on line 17
Warning: Cannot modify header information - headers already sent by (output started at /mounted-storage/home71b/sub009/sc41635-MUDG/finanzaslocales.com/wp-blog-header.php:26) in /mounted-storage/home71b/sub009/sc41635-MUDG/finanzaslocales.com/wp-content/themes/3k/js/comments.js.php on line 18
Warning: Cannot modify header information - headers already sent by (output started at /mounted-storage/home71b/sub009/sc41635-MUDG/finanzaslocales.com/wp-blog-header.php:26) in /mounted-storage/home71b/sub009/sc41635-MUDG/finanzaslocales.com/wp-content/themes/3k/js/comments.js.php on line 19
function AjaxComment(form) {
var url = 'http://www.finanzaslocales.com/wp-content/themes/3k/comments-ajax.php';
new Ajax.Updater(
{ success: 'commentlist', failure: 'error' }, url,
{
asynchronous: true,
evalScripts: true,
insertion: Insertion.Bottom,
onComplete: function(request) {
if (request.status == 200) {
if ($('leavecomment')) { $('leavecomment').remove(); }
new Effect.Appear($('commentlist').lastChild);
$('comments').innerHTML = parseInt($('comments').innerHTML) + 1;
Field.clear('comment');
Form.disable('commentform');
setTimeout('Form.enable("commentform")',15000);
}
Element.hide('commentload');
},
onFailure: function() {
$('error').setStyle( { visibility: 'visible', width: '100%', textAlign: 'center', padding: '1px 0', margin: '5px 0', background: '#ffff99' } );
Form.enable('commentform');
},
onLoading: function() {
$('commentload').show();
$('error').update('');
$('error').setStyle( { visibility: 'hidden' } );
Form.disable('commentform');
},
parameters: Form.serialize(form)
}
);
}
function initComment() {
$('commentform').onsubmit = function() { AjaxComment(this); return false; };
new Insertion.Before('submit', '');
new Insertion.After('submit','');
$('commentload').setStyle( { paddingTop: '3px', cssFloat: 'right' } );
$('commentload').hide();
}
Event.observe(window, 'load', initComment, false);