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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. cfinitialize

    Need Help - Checking Select Checkbox

    i'm new to javascript, so i had plenty of questions. google can't answer all of it :]]
  2. cfinitialize

    Need Help - Checking Select Checkbox

    really nifty. i like it. thank you very much!
  3. cfinitialize

    Need Help - Checking Select Checkbox

    one last question... i know what it does, but how does it do it? appIDElement.checked = !appIDElement.checked;
  4. cfinitialize

    Need Help - Checking Select Checkbox

    thank you. i sure did learn quite a bit. i really like your code, it's a lot easier to read - very efficient. i've always been weak at creating codes as such. i will eventually get what i want, but most likely it's not as clean and not as efficient as others' solution.
  5. cfinitialize

    Need Help - Checking Select Checkbox

    got it. here's how the js link is setup: <a href="javascript:lnkChkNQ('#Trim(appDetail[Counter][10])#','appReqLine')">#Trim(appDetail[Counter][10])#</a> and here's the final js code: // JavaScript Document var cond = 0; function lnkChk(tdid,frmname) { frmobj = document.forms[frmname]...
  6. cfinitialize

    Need Help - Checking Select Checkbox

    here's the finished code. now i just to duplicate it for each of the appstatus values... unless that too can be "variable-ize"? var cond = 0; function lnkChkNQ(tdid,frmname) { frmobj = document.forms[frmname]; elmlen=frmobj.length; var appIndex = 1; var elemID =...
  7. cfinitialize

    Need Help - Checking Select Checkbox

    i'm so stupid. nevermind :) a small validation to check if the boxes are checked or not will do.
  8. cfinitialize

    Need Help - Checking Select Checkbox

    okay... this code works on selecting all records with appstatus of NQ - var cond = 0; function lnkChkNQ(tdid,frmname) { frmobj = document.forms[frmname]; elmlen=frmobj.length; var appIndex = 1; var elemID = 'applicantID'; for(i=0;i<elmlen;i++) {...
  9. cfinitialize

    Need Help - Checking Select Checkbox

    yea, I didn't know what the indexOf does. here's the page source. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head><script type="text/javascript"...
  10. cfinitialize

    Need Help - Checking Select Checkbox

    I don't understand what this line means or do? frmobj.elements[i].name.indexOf(elemID) == 0
  11. cfinitialize

    Need Help - Checking Select Checkbox

    actually, only the checkbox elements are named applicantID_# - oh. I see what you're saying. let me try again.
  12. cfinitialize

    Need Help - Checking Select Checkbox

    wait... how do you edit posts here? applicantID_8 is the element. it's 1 more than the actual elements.
  13. cfinitialize

    Need Help - Checking Select Checkbox

    Lee, I modified the input and added id="applicantID_#Counter#" - that's why I'm using getElementById. however, I did make the loop change. The loop processed, but it never gave me any element name missing.
  14. cfinitialize

    Need Help - Checking Select Checkbox

    error - document.getElemetById(appID) has no properties
  15. cfinitialize

    Need Help - Checking Select Checkbox

    okay... this one will select all the "NQ" lines. but will not deselect. var cond = 0; function lnkChkNQ(tdid,frmname) { frmobj = document.forms[frmname]; elmlen=frmobj.length for(i=1;i<elmlen;i++) { var appID = 'applicantID_' + i; var getApplicantID =...
  16. cfinitialize

    Need Help - Checking Select Checkbox

    i'm trying now to pull the value of applicantID - but I'm getting object required. for(i=1;i<elmlen;i++) { var prefix = 'appStatus_' + i; var appName = document.getElementById(prefix).name; var appValue = document.getElementById(prefix).value...
  17. cfinitialize

    Need Help - Checking Select Checkbox

    for(i=1;i<elmlen;i++) { var prefix = 'appStatus_' + i; var appName = document.getElementById(prefix).name; var appstatvalue = hiddenvalue.replace(appName, ''); alert("the value is " + appstatvalue); } //end for "hiddenvalue" undefine?
  18. cfinitialize

    Need Help - Checking Select Checkbox

    also, I never expected anyone to write it for me. if there was one already written, great! otherwise, I've always been willing to put forth the effort - but I needed some sort of direction - your 'pseudocode' had me started.
  19. cfinitialize

    Need Help - Checking Select Checkbox

    I wouldn't even know where to start and what you mean by "server-side scripting" much less starting a javascript program. " true, the word beginner isn't in that sentence - but i thought anyone reading that would understand. but I get your point, kath.
  20. cfinitialize

    Need Help - Checking Select Checkbox

    nevermind. i forgot i commented the line to call the script. but when I click the link to run the script, nothing happens. no alerts, but no errors either.

Part and Inventory Search

Back
Top