Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- echo 'var longitud=document.thisform'.$this->id.'.post.value.length;';
- echo 'var element = $("#edit-form").parentNode)';
- echo 'if(longitud>0)';
- echo 'var options = {success: function(response) {if (/^ERROR:/.test(response)) alert(response); else { element.html(response); $("#addpost").hide("fast"); } } }; ';
- echo 'else var options = {success: function(response) {if (/^ERROR:/.test(response)) alert(response); else { $("#"+element).html(response); $("#addpost").hide("fast"); } } }; ';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement