BC Registered: 06/01/04
Posts: 23
|
|
|
Reply with quote | #1 | I'm having problems getting the checkbox condition for the purpose of opening a different Large List Selector dependant on that condition. The code executes but I always get the first URL. I've reversed the logic and it uses the second URL. So I know the routine works it just not getting the current state of the StudentWrittenTransfer checkbox. function OpenVendorSelector(targetId, targetDesc)
{ var TransferCheckbox = document.getElementsByName("StudentWrittenTransfer");var url = '../dorLargeList.aspx?targetdesc=' + targetDesc + '&targetid=' + targetId;if(TransferCheckbox.checked == true) url = '../tionLargeList.aspx?targetdesc=' + targetDesc + '&targetid=' + targetId;window.open(url, '', 'width=700, height=400, resizable=yes, scrollbars=yes, modal=yes'); }
This is a master/detail page. The checkbox is tablebound and is in the master record and is defined below.
<td class="dfv"><GEN:FieldValue NAME="StudentWrittenTransfer" />td> Can't figure out why it's not seeing it. Thanks...bc |
| |
BC Registered: 06/01/04
Posts: 23
|
|
|
Reply with quote | #2 | Nevermind. Stupid fix.
document.getElementsByName("StudentWrittenTransfer"); -> document.getElementById("StudentWrittenTransfer"); |
| |