Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
submit comment form via javascript:form.submit()
hi,
I need to be able to submit the comment form from a javascript click event like so:
document.txpCommentInputForm.submit()
however, apparently, if the form already contains an element with name=submit
then that becomes the form.submit
object rather then a form.submit()
function.* The Submit button reders out with just such a name!
So, I think what I need to do is change the name of the submit button. Any ideas how to do this? Or, is there a way around this that I am not seeing?
thanks!
ned
*see here http://www.webprodevelopment.com/BrightLight/archives/17-this.form.submit-is-not-a-function.-Really,-its-an-object!.html for reference.
Last edited by theinterned (2007-08-20 00:57:23)
Offline