Access Frame into frame, frame into frame
Archive for the ‘JavaScript Stuffs’ Category
validating for string using regular expression
Posted: April 3, 2010 in JavaScript StuffsTags: accepts only string, validating for string using regular expression
function check() { if (cutSpaces(myform.deptname.value)==”) { alert (“Department name can’t be blank “); myform.deptname.focus(); return false; } if (cutSpaces(myform.hod.value)==0) { alert (“HOD name can’t be blank “); myform.deptname.focus(); return false; } isAlphabet(document.getElementById(‘deptname’), ‘Letters Only Please’); } function isAlphabet(elem, helperMsg) { alert(elem.value); var alphaExp = /^[a-zA-Z]+$/; if(elem.value.match(alphaExp)){ return true; } else{ alert(helperMsg); elem.focus(); return false; } [...]
print all the elements of form using javascriptto print all the elements of form using javascript
Posted: April 2, 2010 in JavaScript Stuffsfor(i=0;i<myform.elements.length;i++) { alert(myform.elements[i].name +myform.elements[i].id); } alert(document.getElementById('subname').value); alert(myform.subname.value);
window.location.href = “dtsettings.php?QryStatus=Password Changed Successfully”;
Heading Bouncing Image Description JavaScript “Bouncing Image” Preview N/A Code <!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 3.2 Final//EN”> <HTML> <HEAD>
Heading Blinking Background Description JavaScript “Blinking Background with different Colors” Preview N/A Code <!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 3.2 Final//EN”> <HTML> <HEAD>