Categories | Question details Back To List | ||
onclick event with custom lightbox Is there a way to do onclick or onchange events with your custom lighbox features? current code looks like this; scheduler.config.lightbox.sections=[ {name:"time", height:72, type:"time", map_to:"auto"}, {name:"customerid", height:21, type:"select", map_to:"customerid", options:[ <?$i=1; while ($row = $db->nextRecord($cust_res)){ $addcomma=','; if($i==$custcount){ $addcomma=""; }?> {key:"<?=$row['customerid'];?>", label:"<?=$row['firstname'] . " " . $row['lastname'];?>"}<?=$addcomma;?> <? $i++; }?> ]}, {name:"service", height:21, type:"select", map_to:"serviceid", options:[ <?$j=1; while ($row_service = $db->nextRecord($serv_res)){ $addcomma=','; if($j==$servcount){ $addcomma=""; }?> {key:"<?=$row_service['serviceid'];?>", label:"<?=$row_service['descript'];?>"}<?=$addcomma;?> <? $j++; }?> ]} ]; I want to be able to change the end time based on which service is selected. I can probably do it during the insert but I was just wondering if we can do it client side. The service table has a duration for each service. Thanks in advance. -John Answer posted by Alex (support) on Nov 05, 2009 01:17 Hello, Please, have a look at the following posts: index.php?s=normal&q=12274 Here the similar issue was discussed. |