« Return to Thread: Idea for comments.php

Re: Idea for comments.php

by Austin Matzko :: Rate this Message:

Reply to Author | View in Thread

On 10/2/06, Roland Haeder <webmaster@...> wrote:
> Some people (may) like to add some JavaScript pre-checking (e.g. useful for
> AJAX) to their plugins (contact forms, wherever the "blog reader" has to
> interact with the blog).
>
> Currently you have to "hack" comments.php a little but what about a
> filter-based solution? So plugin coders can very easy add their JavaScript to
> a onsubmit and onreset "stub".

Why not put the JavaScript in the header, via the wp_head action hook?
_______________________________________________
wp-hackers mailing list
wp-hackers@...
http://lists.automattic.com/mailman/listinfo/wp-hackers

 « Return to Thread: Idea for comments.php