Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by NiteLink

  1. NiteLink

    Displaying Year Range

    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
  2. NiteLink

    Calculate the Years

    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));
  3. NiteLink

    Hide / Unhide Based on Combobox Selection

    Place the following in the onChange or onClick of the combobox: 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...
  4. NiteLink

    What browsers to test in?

    That's interesting, Mike. [thumbsup2] Shows that MSIE is still the majority. Fight? [lightsaber] What fight? [shocked]
  5. NiteLink

    Chicks in IT: Any statistics available?

    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]
  6. NiteLink

    my hdd NTFS format is gone?

    Do you have another hdd? Maybe you can try copying data to the other hdd before formatting the current one? Fight? [lightsaber] What fight? [shocked]
  7. NiteLink

    Excel and =DAY( )

    If I'm not wrong, weekday is supposed to be a format for the date itself. Fight? [lightsaber] What fight? [shocked]
  8. NiteLink

    Counting the Number of Selected Items in List

    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...
  9. NiteLink

    pop up question

    How about using a function and then call that function when you need a link to popup? Fight? [lightsaber] What fight? [shocked]
  10. NiteLink

    don't save on [Enter] in web form

    Another way is to validate the form onClick of the submit button. Fight? [lightsaber] What fight? [shocked]
  11. NiteLink

    How Many User Accounts Do I need In XP Pro?

    No Problem. Fight? [lightsaber] What fight? [shocked]
  12. NiteLink

    How Many User Accounts Do I need In XP Pro?

    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...
  13. NiteLink

    Duplicating Field Values Into Another

    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 . . ...
  14. NiteLink

    Do you keep your cool or go off on them?

    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...
  15. NiteLink

    Allow Numbers Only Field

    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...

Part and Inventory Search

Back
Top