Yeah I read those sources even before I posted this topic

. But this line puzzels me:
Quote:
In addition to the usual limitations imposed by using client-side scripting, these techniques have some specific problems. In particular, the ONSUBMIT event handler for the form is not invoked; this however is not very serious, since you can put the code (e.g. for form data checking) into the ONSUBMIT attribute value before calling submit(). The JavaScript Form FAQ contains answers to questions related to these issues.
|
Does that mean that I cannot use the described javascript method in my case by default?
My javascript skills kinda suck so I ended up with stuff like this:
Code:
<input type="image" class="button" name="preview" src="/images/en_US/preview.gif" onclick="javascript: document.vbform.submit.value('$vbphrase[preview_post]');return false;" accesskey="r" tabindex="1" />
which didnt get me anywhere.
You see the problem for me is that the "preview' button doesnt get registered correctly (or at all). Doesn't matter if I press "post" or "preview".... it gives the same result... the message gets posted.