RSS

A Message Board, Guestbook, or Poll hosted for your website.
Iron Speed Technical Forums

Register Login New Posts Chat
 
Iron Speed > Forums > Code Customizations V5.X > Javascript Checkbox Value
 
Username:  
Password:  
 
   
 


Thread Tools Search This Thread 
Reply
 
Author Comment
 
BC
Registered: 06/01/04
Posts: 23

    11/01/09 at 10:26 PMReply 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

    11/06/09 at 03:10 PMReply with quote#2

Nevermind. Stupid fix.

document.getElementsByName("StudentWrittenTransfer"); ->
document.getElementById("StudentWrittenTransfer");
Previous Thread | Next Thread
Reply

  Bookmarks  
Digg Diggdel.icio.us del.icio.usStumbleUpon StumbleUponGoogle Google

Download Iron Speed Designer

Privacy Statement