[jQuery] Form plugin shows just result
I'm playing around with the form plugin yet when I press the submit
button only the result (in my case "true" is shown afterwards. The
full form is gone. My code is rather simple
<script type="text/javascript">
$(document).ready(function() {
var options = {
beforeSubmit: validateInput,
dataType: 'json',
success: processResult
};
$('#kontakt_formular').ajaxForm (function() {alert (data[0]?
'success': 'failure')});
});
</script>
Yet if I remove the "var options" nothing is done at all. See
http://www.orpatec.ch/termola/index.php?page=contact.php
http://www.orpatec.ch/termola/index.php?page=contact2.php
O. Wyss