I like customizing forms. I want to use a custom button instead of the default system-provided button.
So I replace this in my Comment Form template:
<input type="submit" accesskey="s" name="post" id="comment-submit" value="Submit" />
To this:
<input type="image" src="http://nb.fusionfox.com/ui/images/button-submit.jpg" accesskey="s" name="post" id="comment-submit" value="Submit" />
And mt.js throws a fit:
**cf.post is undefined**
I didn't change the form tag or its attributes, and I didn't change anything by the submit type on the input tag for the button.
Any ideas why?
Reported on Movable Type 4.2
If cf.post is undefined, that means that the JavaScript was not able to retrieve it from the page. Chances are, that is because you are accessing post as a property of cf (comments_field in the JavaScript file).