[TYPO3-shop] Problems when form is submitted by javascript
Franz Holzinger
franz at fholzinger.com
Wed Sep 13 07:40:30 CEST 2006
Hello Joachim,
> <input type="Submit" name="products_update" value="Zurück zum
> Warenkorb"> <input type="Button" name="products_finalize"
> value="Bestellvorgang abschliessen!" onClick="checkAgb();">
>
there is missing the return in the onClick parameter:
return false; if an error has occured
return true; if everything went fine
document.forms[0] will work only if there is no other form on the page.
The function document.getElementById should be used also here.
Greets,
Franz
More information about the TYPO3-project-tt-products
mailing list