Place the following in the column:
@Text(@Year(StartDate)) + "/" + @Text(@Year(EndDate))
Depending on the dates in StartDate and EndDate, the display will show:
2003/2004
The following will calculate the number of years by rounding off the decimals.
var f = document.forms[0];
f.Age.value = Math.round((Date.parse(f.CurrentDate.value) - Date.parse(f.BirthDate.value) ) / (1000 * 60 * 60 * 24*365));
...var f = document.forms[0];
var specialRm = f.RoomSelection.options[f.RoomSelection.selectedIndex].text;
var chkIndex = specialRm.indexOf('(*)'); //Some of the options contain (*) therefore indexOf('(*)') is used.
if (chkIndex !== -1)
{
f.CoBrochures.style.visibility = 'visible';
for...
So far, I've seen only male IT managers. My company so far, I've seen is a female sales manager. The other managers are male.
Fight?
[lightsaber]
What fight? [shocked]
Below is the code to be placed in the onChange of the Select field:
var f = document.forms[0];
var fldVal;
num = 0;
fldVal = f.PersonName.length;
for ( i = 0; i < fldVal; i++ )
{
if ( f.PersonName[i].selected)
{
num = num + 1;
}
}
f.NoOfRep.value = num;
NoOfRep will display...
From what I understand, your normal day to day user account has Administrator privileges because you may want to install programmes without logging in as the Administrator in order to install.
If you don't install programmes all the time, then a limited user account will do if you can run the...
You create a button by selecting 'Javascript' on the 'Run' drop down option. Put the code in 'onClick' event. e.g
document.forms[0].b.value = document.forms[0].a.value
document.forms[0].b2.value = document.forms[0].a2.value
document.forms[0].b3.value = document.forms[0].a3.value
.
.
...
Kjonnn, I agree with you. It's really a danger too at my side. The users, esp those with IT Degree, they think that they know something but the thing is they don't know the impact of what they are doing. Hence, they keep thinking that the IT dept is not working hard enough, not installing...
The following is placed in the onChange:
var f = document.forms[0]
var v = f.GPNo.value
for ( i=0; i<v.length; i++) {
if ( ( v.charCodeAt(i)<48 || v.charCodeAt(i)>57 ) && v.charCodeAt(i) !== 44 ) {
alert ( "Gate Pass must be numeric." )
f.GPNo.value = "";
f.GPNo.focus()
return false...
...onChange of the Email field:
function checkemail(){
var testresults
var str=document.forms[0].Email.value
var filter=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
if (filter.test(str))
testresults=true
else{
alert("Please input a valid...
Place the following in the onClick of the radio option:
var mydate=new Date()
var year=mydate.getYear()
var day=mydate.getDay()
var month=mydate.getMonth()
var daym=mydate.getDate()
var daym=mydate.getDate()
var hours=mydate.getHours()
var minutes=mydate.getMinutes()
var dn="AM"
if...
...function Calendar_get_month(monthNo) {
return Calendar.Months[monthNo];
}
function Calendar_get_daysofmonth(monthNo, p_year) {
/*
Check for leap year ..
1.Years evenly divisible by four are normally leap years, except for...
2.Years also evenly divisible by 100 are not leap years...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.