Entradas

Convertir List<String> a String[] List < String > listaNombres = new ArrayList < String >(); list . add ( "jorge" ); list . add ( "christian" ); String [] ar rayNombres = listaNombres . toArray ( new String [ listaNombres . size ()]);
MAXLENGHT DE TEXTAREA HTML <textarea property="sMensaje" styleId="sMensaje" styleClass="text1" cols="100" rows="3"></textarea> JAVASCRIPT $(function(){                 maxLength = 140;                 $("#sMensaje").after("<div><span id='remainingLengthTempId'>" + maxLength + "</span> caracteres</div>");                 $("#sMensaje").bind("keyup change", function(){checkMaxLength(this.id,  maxLength); } )             }); function checkMaxLength(textareaID, maxLength){     currentLengthInTextarea = $("#" + textareaID).val().length;     $(remainingLengthTempId).text(parseInt(maxLength) - parseInt(currentLengthInTextarea));     if (currentLengthInTextarea > (maxLength)){         $("#" + textareaID).val($("#" + textareaID).val().sli...
Abrir Dialog JAVASCRIPT $(function(){             //No se muestra al inciar            $("#actoresLocales").dialog({                     autoOpen: false,                     modal: true,                     height: 200,                     width: 500,                     show: {                         effect: "blind",                         duration: 1000                     },                     hide: {             ...

Utilizando BlockUI

BLOCKUI Html <div id="mensajitos2" style="display:none"> <br> <table border="0">  <tr>   <td>&nbsp;</td>   <td rowspan=2 valign="top"><div id='mostrar_imagen2'></div></td>   <td width="10px">&nbsp;</td>   <td height="20px" valign="bottom"><b><div id="contenido2"></div></b></td>  </tr>  <tr>   <td>&nbsp;</td>   <td align="center" colspan="3"><input type='button' id='Aceptar' value='Aceptar'></td>  </tr> </table> <br> </div> Javascript $("#contenido2").html("El proceso se realizó satisfactoriamente."); $("#mostrar_imagen2").html("<img src='../images/correcto.png'>");  $.blockUI({             messa...
DateTime Picker <script language="javascript" src="${pageContext.request.contextPath}/js/jquery/jquery-ui-timepicker-addon.js"></script> var myControl=  {                     create: function(tp_inst, obj, unit, val, min, max, step){                             $('<input class="ui-timepicker-input" value="'+val+'" style="width:50%">')                                     .appendTo(obj)                                     .spinner({                                             min: min,                    ...
Boton HTML sin Marco <html> <head> <style> /*BOTON SIN MARCO*/ .boton { background:none; border:0; margin:0; padding:0; outline:0 none; } </style> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script> <script> function mostrarAlerta(){ alert("Boton presionado.."); } </script> </head> <body>               <button  type='button' class='boton' onclick="mostrarAlerta();">Presionar</button> </body> </html>
Obtener Atributo en JAVASCRIPT JAVA - Declarando Variable session.setAttribute("oAccion", "SALUDOS"); JAVASCRIPT - Obteniendo Variable var accion = '<%= session.getAttribute("oAccion")%>';