Response title
This is preview!
<script> $(document).ready(function() {
to refresh the comment area when click, work ok but suggestion welcome on how to make it more do the actions more smooth $('a#refresh_button').live('click',function() { $('.comment_holder').fadeOut(750, function() { $('.comment_holder').html(''); $('.comment_holder').load('".$blogreurl."').fadeIn(750, function() { }); }); });
This is the comment form when i submit, the data gets sent to the server ok and the comments area fade outs and the message box fade in and fades out slow but at the last part of the function where i want the outside form (THIS IS THE SITES COMMENT FORM CLASS) to fade back in it dont work ???? that what i need help on $('input#comment_submit').live('click',function() {
var inputData = $('#comment_box').val(); if(inputData != '') { $.ajax({ type: 'POST', url: 'link_to_phpfile.php', data: $('#cform').serialize(), success: function() {
$('.blog_message').append('<b>Post was submitted to Database!</b>'); $('.comment_holder').fadeOut(500, function() { $('.comment_holder').html(''); $('.comment_holder').load('".$blogreurl."').fadeIn(2000, function() { alert('Comment Refrsher'); }); });
$('.outside_form').fadeOut(500, function() { $('.blog_message').fadeIn(5000, function() { $('.blog_message').fadeOut(10000, function() { alert('Message fade switch'); }); }); });
$('outside_form').fadeIn(1000, function() { alert('Form fade back in alert T.T'); }); } }); return false; } }); });
</script>
© 2013 jQuery Foundation
Sponsored by and others.