java6 - DERS 6: ETKLEML FORMLAR YARATMAK Dersin sonunda...

Info iconThis preview shows pages 1–6. Sign up to view the full content.

View Full Document Right Arrow Icon
DERS 6: ETKİLEŞİMLİ FORMLAR  YARATMAK Dersin sonunda yapabilecekleriniz: -Formlar üzerinde işlem yapmak. -Form doğrulama (validation) işlemini yapmak. I. JAVASCRİPT'TE FORM DOĞRULAMA Web sayfalarında çok sık yapılan bir işlem form doğrulama işlemidir. Örneğin bir sipariş formunun alanlarının doldurulmasının ardından form alanlarının kontrolü gerekir. Bu işleme doğrulama (validation) denir. Örnek: <HTML> <HEAD> <TITLE>JavaScript Örnek </TITLE> <SCRIPT LANGUAGE="JavaScript">
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
<!-- function Form1(form) { if (form.adi.value == "") { alert("Adiniz ?"); return false; } else return true; } function email(form)
Background image of page 2
{ if (form.e-mail.value == "" || form.e-mail.value.indexOf('@',0) == -1) { alert("E-mail adresiniz geçerli değil!"); return false; } else return true; } function Form1 (form) {
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
form.submit(); else return false; } // --> </SCRIPT> </HEAD> <BODY> <CENTER> <H1>JavaScript Form Doğrulama </H1> </CENTER>
Background image of page 4
<FORM NAME="deneme" METHOD="POST" ACTION="kayit.asp">
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 6
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/23/2012 for the course CS CS101 taught by Professor Daviddavenport during the Winter '12 term at Bilkent University.

Page1 / 9

java6 - DERS 6: ETKLEML FORMLAR YARATMAK Dersin sonunda...

This preview shows document pages 1 - 6. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online