« Return to Thread: Idea for comments.php

Re: Idea for comments.php

by Owen Winkler :: Rate this Message:

Reply to Author | View in Thread

Roland Haeder wrote:
> I mean a hook inside the <form> tag itself like:
>
> <form <?php do_action('comment_form_tag', $post->ID); ?> action=".......>
>
> So everyone can choose to add onSubmit and/or onReset to it or not. :-)

Event.observe($('commentform'), 'submit', function(e) {
// The submit event code goes here.
});

Don't try to force PHP to do what you can already do more easily with
javascript.

Owen
_______________________________________________
wp-hackers mailing list
wp-hackers@...
http://lists.automattic.com/mailman/listinfo/wp-hackers

 « Return to Thread: Idea for comments.php