[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

6.4

When i click checkbox and it would take associate value and put it into one variable

Asked by stmani2005 in JavaScript

When i click checkbox and it would take associate value and put it into one variable
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
145:
146:
147:
148:
149:
150:
151:
152:
153:
154:
155:
156:
157:
158:
159:
160:
161:
162:
163:
164:
165:
166:
167:
168:
169:
170:
171:
172:
173:
174:
175:
176:
177:
178:
179:
180:
181:
182:
183:
184:
185:
186:
187:
188:
189:
190:
191:
192:
193:
194:
195:
196:
197:
198:
199:
200:
201:
202:
203:
204:
205:
206:
207:
208:
209:
210:
211:
212:
213:
214:
215:
216:
217:
218:
219:
220:
221:
222:
223:
224:
225:
226:
227:
228:
229:
230:
231:
232:
233:
234:
235:
236:
237:
238:
239:
240:
241:
242:
243:
244:
245:
246:
247:
248:
249:
250:
251:
252:
253:
254:
255:
256:
257:
258:
259:
260:
261:
262:
263:
264:
265:
266:
267:
268:
269:
270:
271:
272:
273:
274:
275:
276:
277:
278:
279:
280:
281:
282:
283:
284:
285:
286:
287:
288:
289:
290:
291:
292:
293:
294:
295:
296:
297:
298:
299:
300:
301:
302:
303:
304:
305:
306:
307:
308:
309:
310:
311:
312:
313:
314:
315:
316:
317:
318:
319:
320:
321:
322:
323:
324:
325:
326:
327:
328:
329:
330:
331:
332:
333:
334:
335:
336:
337:
338:
339:
340:
341:
342:
343:
344:
345:
346:
347:
348:
349:
350:
351:
352:
353:
354:
355:
356:
357:
358:
359:
360:
361:
362:
363:
364:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>e-CIMS(Customer Information Management System)</TITLE>
<META NAME="Generator" CONTENT="e-CIMS(Customer Information Management System)">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
<link rel="stylesheet" href="style/style.css" type="text/css" />
<script> 
function fnMouseOver(id){
	document[id].height +=5;
	document[id].width +=5;
}
function fnMouseOut(id){
	document[id].height -=5;
	document[id].width -=5;
}
 
function fnAlphabet(alphabet){
alert(alphabet);
}
function fnMonths(months){
alert(months);
}
 
function fnSearch(){
	alert("fnSearch");
}
 
function fnView(nric){
	location.href="CustomerView.html";
}
 
function fnAdd(){
	location.href="CustomerAdd.html";
}
 
</script>
 
<script> 
 
function fnSwitchSearch(){
	document.all.CustSearchID.style.display = 'none';
	document.all.AdvSearchID.style.display = 'block';
}
function fnBackSearch(){
	document.all.AdvSearchID.style.display = 'none';
	document.all.CustSearchID.style.display = 'block';
}
 
function fnHideLogin(){
	document.all.LoginID.style.visibility='hidden';
}
 
</script>
 
 
</HEAD>
 
<body>
<br>
<div id="LoginID" style="visibility:hidden; position: absolute; left: 550px; top: 0px; ; width: 202px; height: 145px; z-index: 7; overflow: hidden;">
<table width="198" height="140" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFCB40" id="Table_01">
	<tr>
		<td colspan="5">
			<img src="images/Login_01.gif" alt="" width="198" height="63" border="0" usemap="#Map3"></td>
	</tr>
	<tr>
		<td colspan="2">
			<img src="images/Login_02.gif" width="13" height="19" alt=""></td>
		<td><input type="text" name="textfield" class="clsInputBox" size="15"></td>
		<td colspan="2">
			<img src="images/Login_04.gif" width="76" height="19" alt=""></td>
	</tr>
	<tr>
		<td>
			<img src="images/Login_05.gif" width="3" height="2" alt=""></td>
		<td colspan="2">
			<img src="images/Login_06.gif" width="119" height="2" alt=""></td>
		<td colspan="2">
			<img src="images/Login_07.gif" width="76" height="2" alt=""></td>
	</tr>
	<tr>
		<td colspan="2">
			<img src="images/Login_08.gif" width="13" height="19" alt=""></td>
		<td><input type="text" name="textfield2" class="clsInputBox" size="15"></td>
		<td>
			<img src="images/Login_10.gif" width="64" height="19" alt=""></td>
		<td>
			<img src="images/Login_11.gif" width="12" height="19" alt=""></td>
	</tr>
	<tr>
		<td colspan="5">
			<img src="images/Login_12.gif" width="198" height="36" alt=""></td>
	</tr>
	<tr>
		<td>
			<img src="images/spacer.gif" width="3" height="1" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="10" height="1" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="109" height="1" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="64" height="1" alt=""></td>
		<td>
			<img src="images/spacer.gif" width="12" height="1" alt=""></td>
	</tr>
</table>
<!-- End ImageReady Slices -->
<map name="Map3">
  <area shape="rect" coords="174,5,189,20" href="javascript:fnHideLogin();">
</map>
 
</div>
<TABLE width="100%" border=0 cellpadding=0 cellspacing=0>
<TR>
<TD valign="top" class="PageMargin">
<TABLE width="100%" border=0 cellpadding=0 cellspacing=0>
<TR>
	<td width="4%" valign="top">&nbsp;</td>
	<TD width="96%" valign="top">
 
	<!-- Right Content -->
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
	<tr>
	<td valign="top">
				<fieldset>
				<legend class="PageTitle">Maintain Customer</legend>
				<div id="CustSearchID" style="display:block">
				<fieldset>
					<legend class="tdblue">Customer Search</legend>
						<table width="100%" height="200" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td class="LabelsBtmBrdr"  width="20%">&nbsp;&nbsp;<span class="clsRed">*</span>Search By </td>
								<td class="LabelsBtmBrdr"  width="20%">
									<select name="cboSearchBy" class="txt">
									 <option value="" selected>-Select-</option>
									 <option value="Name">Name</option>
									 <option value="Month">Month</option>
									 <option value="Group">Alphabet</option>
								   </select>
								</td>
								<td class="LabelsBtmBrdr"  width="5%">&nbsp;</td>
								<td class="LabelsBtmBrdr"  width="20%">&nbsp;&nbsp;<span class="clsRed">*</span>Name </td>
								<td class="LabelsBtmBrdr"  width="35%"><input class="clsInputBox" type="text" name="txtName" size="20"></td>
								</tr>
								<tr>
								<td colspan=2>
										<table width="50%"  border="0" cellspacing="0" cellpadding="0">
										<tr>
										<td>
										    <!-- Sort by Alphabet -->
											<fieldset>
										    <legend class="tdblue">Sort By Alphabets</legend>
											<table width="100%"  border="0" cellspacing="0" cellpadding="0">
											<tr>
											<td align="center">
													<img src="images/Alphabets.gif" width="232" height="71" border="0" usemap="#Map">
													  <map name="Map">
														<area shape="rect" coords="173,49,189,66" href="javascript:fnAlphabet('M');">
														<area shape="rect" coords="151,49,167,66" href="javascript:fnAlphabet('N');">
														<area shape="rect" coords="128,49,144,66" href="javascript:fnAlphabet('B');">
														<area shape="rect" coords="106,49,122,66" href="javascript:fnAlphabet('V');">
														<area shape="rect" coords="82,49,101,67" href="javascript:fnAlphabet('C');">
														<area shape="rect" coords="61,49,79,67" href="javascript:fnAlphabet('X');">
														<area shape="rect" coords="39,49,57,67" href="javascript:fnAlphabet('Z');">
														<area shape="rect" coords="195,27,211,44" href="javascript:fnAlphabet('L');">
														<area shape="rect" coords="174,27,190,44" href="javascript:fnAlphabet('K');">
														<area shape="rect" coords="152,27,168,44" href="javascript:fnAlphabet('H');">
														<area shape="rect" coords="130,27,146,44" href="javascript:fnAlphabet('H');">
														<area shape="rect" coords="107,27,123,44" href="javascript:fnAlphabet('G');">
														<area shape="rect" coords="82,27,101,45" href="javascript:fnAlphabet('F');">
														<area shape="rect" coords="61,27,79,45" href="javascript:fnAlphabet('D');">
														<area shape="rect" coords="38,27,56,45" href="javascript:fnAlphabet('S');">
														<area shape="rect" coords="17,27,35,45" href="javascript:fnAlphabet('A');">
														<area shape="rect" coords="206,4,222,21" href="javascript:fnAlphabet('P');">
														<area shape="rect" coords="184,4,200,21" href="javascript:fnAlphabet('O');">
														<area shape="rect" coords="162,4,178,21" href="javascript:fnAlphabet('I');">
														<area shape="rect" coords="140,4,156,21" href="javascript:fnAlphabet('U');">
														<area shape="rect" coords="118,4,134,21" href="javascript:fnAlphabet('Y');">
														<area shape="rect" coords="95,4,111,21" href="javascript:fnAlphabet('T');">
														<area shape="rect" coords="71,4,90,22" href="javascript:fnAlphabet('R');">
														<area shape="rect" coords="50,4,68,22" href="javascript:fnAlphabet('E');">
														<area shape="rect" coords="28,4,46,22" href="javascript:fnAlphabet('W');">
														<area shape="rect" coords="7,4,25,22" href="javascript:fnAlphabet('A');">
													  </map>			
											</td>
											</tr>
										</table>
										</fieldset>
										</td>
										</tr>
									</table>
									</td>
									<td >&nbsp;</td>
									<td colspan="2">
											<table width="50%"  border="0" cellspacing="0" cellpadding="0">
											<tr>
											<td>
												<!-- Sort by Months -->
												<fieldset>
												<legend class="tdblue">Sort By Months</legend>
												<table width="100%"  border="0" cellspacing="0" cellpadding="0">
												<tr>
												<td align="center">
														<img src="images/Months.gif" width="188" height="73" border="0" usemap="#Map2">
														  <map name="Map2">
															<area shape="rect" coords="144,49,185,69" href="javascript:fnMonths('Dec');">
															<area shape="rect" coords="96,49,137,69" href="javascript:fnMonths('Sep');">
															<area shape="rect" coords="49,49,90,69" href="javascript:fnMonths('Jun');">
															<area shape="rect" coords="0,49,41,69" href="javascript:fnMonths('Mar');">
															<area shape="rect" coords="0,26,41,46" href="javascript:fnMonths('Feb');">
															<area shape="rect" coords="48,26,89,46" href="javascript:fnMonths('May');">
															<area shape="rect" coords="96,26,137,46" href="javascript:fnMonths('Aug');">
															<area shape="rect" coords="144,26,185,46" href="javascript:fnMonths('Nov');">
															<area shape="rect" coords="144,3,185,23" href="javascript:fnMonths('Oct');">
															<area shape="rect" coords="96,3,137,23" href="javascript:fnMonths('Jul');">
															<area shape="rect" coords="49,3,90,23" href="javascript:fnMonths('Apr');">
															<area shape="rect" coords="0,3,41,23" href="javascript:fnMonths('Jan');">
														  </map>  	
												</td>
												</tr>
											</table>
											</fieldset>
										</td>
										</tr>
										</table>
 
									</td>
 
							</tr>
							
							<tr>
							 <td colspan="5" align="right">
							 <input type="button" class="button"  value="Adv.Find" onclick="fnSwitchSearch()">&nbsp;
							 <input type="button" class="button"  value="Find" onclick="fnSearch()">
							 </td>
							 </tr>
						</table>
				</fieldset>
				</div>
				<!-- Advance Search -->
				<div id="AdvSearchID" style="display:none;">
				<fieldset>
					<legend class="tdblue">Advance Search</legend>
						<table width="100%" height="150" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td class="LabelsBtmBrdr"  width="20%">&nbsp;&nbsp;Family</td>
								<td class="LabelsBtmBrdr"  width="20%"><input class="clsInputBox" type="text" name="txtFamily" size="20"></td>
								<td class="LabelsBtmBrdr"  width="5%">&nbsp;</td>
								<td class="LabelsBtmBrdr"  width="20%">&nbsp;&nbsp;Name</td>
								<td class="LabelsBtmBrdr"  width="35%"><input class="clsInputBox" type="text" name="txtName" size="20"></td>
							</tr>
							<tr>
								<td class="LabelsBtmBrdr"  >&nbsp;&nbsp;NRIC</td>
								<td class="LabelsBtmBrdr"  ><input class="clsInputBox" type="text" name="txtNRIC" size="20"></td>
								<td class="LabelsBtmBrdr"  >&nbsp;</td>
								<td class="LabelsBtmBrdr"  >&nbsp;&nbsp;Company</td>
								<td class="LabelsBtmBrdr"  ><input class="clsInputBox" type="text" name="txtCompany" size="20"></td>
							</tr>
							<tr>
								<td class="LabelsNoBrdr"  >&nbsp;&nbsp;Email</td>
								<td class="LabelsNoBrdr" colspan="4" ><input class="clsInputBox" type="text" name="txtEmail" size="50"></td>
							</tr>						
							<tr>
							 <td colspan="5" align="right">
							 <input type="button" class="button"  value="Search" onclick="fnSearch();">&nbsp;
							 <input type="button" class="button"  value="Back" onclick="fnBackSearch();">&nbsp;
							 </td>
							 </tr>
						</table>
				</fieldset>
				</div>
 
				<br>
 
				<!-- Search List -->
						
<fieldset>
						<legend class="tdblue">Customer List</legend>
						<table width="100%"  border="0" cellspacing="5" cellpadding="0">
						<tr>
						<td>
 
							<div style="position:absolute;width: 641px; height: 20px; z-index: 4; overflow: hidden;visibility: visible" onload>
							<div id=divPledgeDataHeader style="width: 640px; overflow: hidden; visibility: visible" align=left>
								<table border="0" align="center" cellpadding="2" cellspacing="2" width="100%" bgcolor="#DDE8F6">
									<tr>
										<td width="5%"  class="Type1TdHeader"></td>
										<td width="15%" class="Type1TdHeader">NRIC</td>
										<td width="15%" class="Type1TdHeader">Name</td>
										<td width="20%" class="Type1TdHeader">DOB</td>
										<td width="25%" class="Type1TdHeader">Family</td>
										<td width="20%" class="Type1TdHeader">Address</td>
 
									</tr>
								
								</table>
							</div>
							</div>
							<div id="Layer2" style="width: 657px; height: 164px; z-index: 3; overflow: scroll; visibility: visible" onscroll="fnScroll(this,document.all.divPledgeDataHeader,document.all.divPledgeData)">
							<div id=divPledgeData style=" width: 640px;   overflow: hidden; visibility: visible" align="left">
							<table border="0" align="center" cellpadding="2" cellspacing="2" width="100%" bgcolor="#DDE8F6">
										<tr bgcolor="#ffffff">
											<td width="5%" class="Type2TdValuesBtmBrdr"><input type="checkbox" name="chkCust"></td>
											<td width="15%"  class="Type2TdValuesBtmBrdr"><a href="javascript:fnView('S23423434G');">S23423434G</a></td>
											<td width="15%" class="Type2TdValuesBtmBrdr">God is Great</td>
											<td width="20%" class="Type2TdValuesBtmBrdr">19-06-3434</td>	
											<td width="25%" class="Type2TdValuesBtmBrdr">God Family </td>
											<td width="20%" class="Type2TdValuesBtmBrdr">Tampines </td>
 
										</tr>
										<tr bgcolor="#ffffff">
											<td class="Type2TdValuesBtmBrdr"><input type="checkbox" name="chkCust"></td>
											<td class="Type2TdValuesBtmBrdr"><a href="javascript:fnView('S23423434G');">S23423434G</a></td>
											<td class="Type2TdValuesBtmBrdr">God is Great</td>
											<td class="Type2TdValuesBtmBrdr">19-06-3434</td>	
											<td class="Type2TdValuesBtmBrdr">God Family </td>
											<td class="Type2TdValuesBtmBrdr">Tampines </td>
 
										</tr>
										<tr bgcolor="#ffffff">
											<td class="Type2TdValuesBtmBrdr"><input type="checkbox" name="chkCust"></td>
											<td class="Type2TdValuesBtmBrdr"><a href="javascript:fnView('S23423434G');">S23423434G</a></td>
											<td class="Type2TdValuesBtmBrdr">God is Great</td>
											<td class="Type2TdValuesBtmBrdr">19-06-3434</td>	
											<td class="Type2TdValuesBtmBrdr">God Family </td>
											<td class="Type2TdValuesBtmBrdr">Tampines </td>
 
										</tr>
								</table>
								</div>
								</div>
						</td>
						<tr>
						</table>
						</fieldset>
				<!-- Search List -->
				</fieldset>
			</td>
			<tr>
			</table>
 
 
	
	<!-- Right Content -->
	
	</TD>
	</TR>
	<TR>
	<TD HEIGHT="20" COLSPAN="2">&nbsp;</TD>
	</TR>
 
	<TR>
	<TD>&nbsp;</TD>
	<TD ALIGN="CENTER"><input type="button" onClick="javascript:fnAdd();" class="button" value="Add Customer" ></TD>
	</TR>
	</TABLE>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>
[+][-]08/08/09 10:04 PM, ID: 25052916Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08/08/09 11:21 PM, ID: 25053040Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08/08/09 11:23 PM, ID: 25053048Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08/08/09 11:27 PM, ID: 25053062Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08/09/09 12:19 AM, ID: 25053151Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08/09/09 12:24 AM, ID: 25053156Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08/09/09 12:40 AM, ID: 25053186Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08/09/09 12:45 AM, ID: 25053192Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08/09/09 01:02 AM, ID: 25053216Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08/09/09 01:27 AM, ID: 25053266Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08/09/09 01:28 AM, ID: 25053270Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08/09/09 01:31 AM, ID: 25053281Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08/09/09 01:45 AM, ID: 25053323Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zone: JavaScript
Sign Up Now!
Solution Provided By: vignes_waran
Participating Experts: 3
Solution Grade: A
 
[+][-]08/09/09 03:37 AM, ID: 25053648Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08/09/09 03:39 AM, ID: 25053655Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091021-EE-VQP-81 - Hierarchy / EE_QW_EXPERT_20070906