hi all,
i have an asp page that produces dynamic checklists.
i am trying to implement ajax technology into it and so far this has been accomplished. my problem now is i am trying to concatenate a "key" comprised of database/form values. this key is passed to ajax function(get) and requested/split(_) on another asp page.
i am left with one var to concatenate and cannot figure out the syntax for it.
rules:
there are 3 radio buttons per checklist item(question)
i simply used a database value for the name(unique numerical name for 3 radios per question) the radios are Y N NA - values are simply Y N NA.
i am assumming i need to iterate through the radios to get what was checked on the unique radio(group) name per question.
sendTextareaData is the ajax function
the following is the HTML OUTPUT of the asp
note: a "switch" function simply toggles a table row
textarea (show/hide)
note: apologies for inline css...will clean out later...not a web guru..so i tend to go with the flow...any help is greatly appreciated!
i have an asp page that produces dynamic checklists.
i am trying to implement ajax technology into it and so far this has been accomplished. my problem now is i am trying to concatenate a "key" comprised of database/form values. this key is passed to ajax function(get) and requested/split(_) on another asp page.
i am left with one var to concatenate and cannot figure out the syntax for it.
rules:
there are 3 radio buttons per checklist item(question)
i simply used a database value for the name(unique numerical name for 3 radios per question) the radios are Y N NA - values are simply Y N NA.
i am assumming i need to iterate through the radios to get what was checked on the unique radio(group) name per question.
sendTextareaData is the ajax function
the following is the HTML OUTPUT of the asp
note: a "switch" function simply toggles a table row
textarea (show/hide)
note: apologies for inline css...will clean out later...not a web guru..so i tend to go with the flow...any help is greatly appreciated!
Code:
<textarea onblur="sendTextareaData(this.value+'_1_52._75_')+foo(document.frm_checklist.radio_name.value);" style="width:648px;"></textarea>
<tr>
<td valign="top" style="border-color:black;border-style: solid;border-width: 1px 1px 0px 0px;
width:30px;text-align:left;">52.-75.</td>
<td valign="top" style="border-color:black;border-style: solid;border-width: 1px 0px 0px 0px;
width:395px;text-align:left;">Has a training plan been established?</td>
<td style="border-color:black;border-style: solid;border-width: 1px 0px 0px 1px;
width:150px;text-align:left;">REF 31-401, Paragraph 8.13</td>
<td style="border-color:black;border-style: solid;border-width: 1px 0px 0px 1px;
width:25px;text-align:center;"><input type="radio" name="75" value="Y" onclick="switchMenu('var_2');"></td>
<td style="border-color:black;border-style: solid;border-width: 1px 0px 0px 1px;
width:25px;text-align:center;"><input type="radio" name="75" value="N" onclick="switchMenu('var_2');"></td>
<td style="border-color:black;border-style: solid;border-width: 1px 0px 0px 1px;
width:25px;text-align:center;"><input type="radio" name="75" value="NA" onclick="switchMenu('var_2');"></td>
</tr>
<tr id="var_2" style="display:none">
<td colspan="6" style="padding:0px;width:650px;border-color:black;border-style: solid;border-width: 1px 0px 0px 0px;">
<textarea onblur="sendTextareaData(this.value+'_1_52._75_')+foo(document.frm_checklist.radio_name.value);" style="width:648px;"></textarea>
</td>
</tr>