Bien, me gustaria saber si pueden ayudarme respecto a lo siguiente.
Estoy utilizando una funcion que se activa con un select, cual es la siguiente:
Código PHP:
<script>
function activar(Tipoprog){
if(document.formularioCARGA.Tipoprog.value=='Trigger'){
document.formularioCARGA.INSERTX.disabled=!document.formularioCARGA.INSERTX.disabled;
document.formularioCARGA.StoreProcedure1.disabled=!document.formularioCARGA.StoreProcedure1.disabled;
document.formularioCARGA.afterbefore.disabled=!document.formularioCARGA.afterbefore.disabled;
}else{
}
}
</script>
Código PHP:
<form name='formularioCARGA' action='/pbusers/generar.php?accion=grabartarea&data=segunda' method='post'>
<input type='hidden' name='Nombre2' id='Nombre2' value='ARIEL ALE'/>
<input type='hidden' name='Fechacumplido' id='Fechacumplido' value='2006-07-27'/>
<input type='hidden' name='graveyard' id='graveyard' value='u_incompletas'/>
<input type='hidden' name='id' id='id' value='686'/>
<table width='700' border='0' align='center' cellpadding='0' cellspacing='0'>
<tr>
<td width='75'> </td>
<td width='550'><table width='580' border='1' align='center' cellpadding='3' cellspacing='0' bordercolor='#CCCCCC'>
<tr>
<td colspan='4' bgcolor='#004A6F'><table width='100%' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td><div align='center'><font face='Verdana, Arial, Helvetica, sans-serif' size='1'><b><font color='#FFFFFF'>.:
Carga de Tareas de Programación:.</font></b></font></div>
<div align='center'><font face='Verdana, Arial, Helvetica, sans-serif' size='1'><b><font color='#FFFFFF'><a href='/pbusers/generar.php?tabla=u_incompletas&id=686'></a></font></b></font></div></td>
</tr>
</table></td>
</tr>
<tr>
<td width='100' align="right" bgcolor='#76AEC9'><strong><span class='style9 style1 style2'>Nombre:</span></strong></td>
<td colspan="3" bgcolor='#C2DBE7'><span class="style9 style1 style2">ARIEL ALE</span></td>
</tr>
<tr>
<td width="100" align="right" bgcolor='#76AEC9'><strong><span class='style9 style1 style2'>Tipo
de programación:</span></strong></td>
<td width="190" bgcolor='#C2DBE7'><font face='Arial, Helvetica, sans-serif'>
<select name='Tipoprog' id='Tipoprog' class='style9 style1 style2' onclick='javascript:activar()'>
<option>No especificada</option>
<option value="Clase">Clase</option>
<option value="Tabla">Tabla</option>
<option value="Form">Form</option>
<option value="Función">Función</option>
<option value="Reporte">Reporte</option>
<option value="Programa">Programa</option>
<option value="Store">Store</option>
<option value="Trigger">Trigger</option>
<option value="Menu">Menú</option>
</select>
</font></td>
<td width="80" align="right" bgcolor='#76AEC9'><strong><span class='style9 style1 style2'> Programa:</span></strong></td>
<td width="210" bgcolor='#C2DBE7'><font face='Arial, Helvetica, sans-serif'>
<input name="Nombreprog" type="text" class="style9 style1 style2" id="Nombreprog" value="" size="30" />
</font></td>
</tr>
<tr>
<td align="right" valign="middle" bgcolor='#76AEC9'><strong><span class='style9 style1 style2'>(Trigger)
Tipo:</span></strong></td>
<td align="left" bgcolor='#C2DBE7'><table width="100%" border="0" align="left" cellpadding="0" cellspacing="0">
<tr>
<td width="15%" align="right"><span class="style9 style1 style2">INSERT</span></td>
<td width="18%" align="center"><input name="INSERTX" type="checkbox" disabled="disabled" value="1" /></td>
</tr>
</table></td>
<td align="right" bgcolor='#76AEC9'><strong><span class="style9 style1 style2">Store Procedure: </span></strong></td>
<td align="left" bgcolor='#C2DBE7'><font face='Arial, Helvetica, sans-serif'>
<input name="StoreProcedure1" type="text" class="style9 style1 style2" id="StoreProcedure1" value="" disabled="disabled" size="30" />
</font></td>
</tr>
<tr>
<td align="right" valign="middle" bgcolor='#76AEC9'><strong><span class='style9 style1 style2'>(Trigger)
Tipo:</span></strong></td>
<td align="left" bgcolor='#C2DBE7'><table width="100%" border="0" align="left" cellpadding="0" cellspacing="0">
<tr>
<td width="15%" align="right"><span class="style9 style1 style2">UPDATE</span></td>
<td width="18%" align="center"><input name="UPDATEX" type="checkbox" disabled="disabled" value="1" /></td>
</tr>
</table></td>
<td align="right" bgcolor='#76AEC9'><strong><span class="style9 style1 style2">Store Procedure: </span></strong></td>
<td align="left" bgcolor='#C2DBE7'><font face='Arial, Helvetica, sans-serif'>
<input name="StoreProcedure2" type="text" class="style9 style1 style2" id="StoreProcedure2" value="" disabled="disabled" size="30" />
</font></td>
</tr>
<tr>
<td align="right" valign="middle" bgcolor='#76AEC9'><strong><span class='style9 style1 style2'>(Trigger)
Tipo:</span></strong></td>
<td align="left" bgcolor='#C2DBE7'><table width="100%" border="0" align="left" cellpadding="0" cellspacing="0">
<tr>
<td width="15%" align="right"><span class="style9 style1 style2">DELETE</span></td>
<td width="18%" align="center"><input type="checkbox" name="DELETEX" value="1" disabled="disabled" /></td>
</tr>
</table></td>
<td align="right" bgcolor='#76AEC9'><strong><span class="style9 style1 style2">Store Procedure: </span></strong></td>
<td align="left" bgcolor='#C2DBE7'><font face='Arial, Helvetica, sans-serif'>
<input name="StoreProcedure3" type="text" class="style9 style1 style2" id="StoreProcedure3" value="" disabled="disabled" size="30" />
</font></td>
</tr>
<tr>
<td align="right" valign="middle" bgcolor='#76AEC9'> </td>
<td colspan="3" align="left" bgcolor='#C2DBE7'><table width="40%" border="0" align="left" cellpadding="0" cellspacing="0">
<tr>
<td width="50%" align="left" valign="middle"><input name="afterbefore" type="radio" value="after" disabled="disabled"/>
<span class="style9 style1 style2">After</span></td>
<td width="50%" align="left" valign="middle"><input name="afterbefore" type="radio" value="before" disabled="disabled"/>
<span class="style9 style1 style2">Before</span></td>
</tr>
</table></td>
</tr>
<tr>
<td colspan='4' align="left" bgcolor='#76AEC9'><strong><span class='style9 style1 style2'>Descripción
de Programación:</span></strong></td>
</tr>
<tr>
<td colspan='4' align="left" valign="top" bgcolor='#C2DBE7'><font face='Arial, Helvetica, sans-serif'>
<textarea name='Descripprog' cols='110' rows='6' id='Descripprog' class='style9 style1 style2'></textarea>
</font></td>
</tr>
<tr>
<td colspan='4' align="left" valign="top" bgcolor='#76AEC9'><strong><span class='style9 style1 style2'>Causa:</span></strong></td>
</tr>
<tr>
<td colspan='4' align="left" valign="top" bgcolor='#C2DBE7'><font face='Arial, Helvetica, sans-serif'>
<textarea name='Causaprog' cols='110' rows='3' id='Causaprog' class='style9 style1 style2'></textarea>
</font></td>
</tr>
<tr>
<td height='48' colspan='4'><table width='500' height="40" border='0' align='center' cellpadding='0' cellspacing='0'>
<tr>
<td width="110" align="center" valign="middle"><input name='Grabar' type='submit' class='botones' value='Grabar' /></td>
<td width="280" align="center" valign="middle">
<input name='Grabar' type='submit' class='botones' value='Grabar y Cargar Nuevo' /> </td>
<td width="110" align="center" valign="middle">
<a href="/pbusers/generar.php?tabla=u_incompletas&id=686"><img src="images/botoncancelar.jpg" width="80" height="19" border="0"/></a></td>
</tr>
</table></td>
</tr>
</table></td>
<td width='75'> </td>
</tr>
</table>
</form>
Atte.
Muchisimas gracias desde ya!
Ale Ariel.-
=)