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.
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]...
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 =...
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++) {...
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"...
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.
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 =...
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.