Einzelnen Beitrag anzeigen

omata

Registriert seit: 26. Aug 2004
Ort: Nebel auf Amrum
3.154 Beiträge
 
Delphi 7 Enterprise
 
#4

Re: JavaScript onsubmit mit dem Internet Explorer

  Alt 14. Jul 2008, 23:47
Code:
<form action="addbook.php" method="post" name="bookdata">
  :
  <input type="button" value=" Datensatz hinzufügen " onclick="ValidateForm();" />
  <input type="reset" value=" Felder zurücksetzen " />
  :
</form>
Code:
function ValidateForm() {
  /* Alle Pflichtfelder auf Inhalt prüfen */
  if (   (document.bookdata.isbn13.value == "")
      || (document.bookdata.title.value == "")) {
    :
    /* Abschicken des Formulars verhindern */
  }
  else {
    :
    :
    /* Formular absenden */
    document.bookdata.submit;
  }
}
  Mit Zitat antworten Zitat