Ver Mensaje Individual
  #3 (permalink)  
Antiguo 13/10/2009, 18:15
Avatar de mc_quake
mc_quake
 
Fecha de Ingreso: enero-2006
Ubicación: www.ecocargo.cl
Mensajes: 683
Antigüedad: 19 años, 3 meses
Puntos: 8
Respuesta: MsgBox para notificar que datos no se encuentran en BD

Estima do Cosertel yo hice algo asi espero que te sirva

esto va sobre el html cuando se cumpla o no la condicion que determines

Código ASP:
Ver original
  1. NOTIFY = NOTIFY & "<table width=""100%"" border=""0"" cellpadding=""0"" cellspacing=""0"">"
  2.         NOTIFY = NOTIFY & "<form name=""form1"" method=""post"" action="""">"
  3.         NOTIFY = NOTIFY & "  <tr>"
  4.         NOTIFY = NOTIFY & "    <td height=""35"" valign=""middle"" bgcolor=""#FFFF99"" style=""color:#FF0000; font-size:16px; font-weight:bold; padding-left:10px;"">Notificacion de InmoWeb</td>"
  5.         NOTIFY = NOTIFY & "    <td height=""35"" align=""right"" valign=""middle"" bgcolor=""#FFFF99"" style=""color:#FF0000; font-size:16px; font-weight:bold; padding-right:10px;;""><input type=""image"" name=""imageField"" src=""../../inmoweb/_imag/_sitio/close.gif"" style=""background-color:transparent;""></td>"
  6.         NOTIFY = NOTIFY & "  </tr>"
  7.         NOTIFY = NOTIFY & "  <tr>"
  8.         NOTIFY = NOTIFY & "    <td colspan=""2"" bgcolor=""#FFFF99"" style=""padding-left:30px; color:#000000;""><b>Han ocurrido algunos errores en el ingreso de la información solicitada</b></td>"
  9.         NOTIFY = NOTIFY & "  </tr>"
  10.         NOTIFY = NOTIFY & "  <tr>"
  11.         NOTIFY = NOTIFY & "    <td colspan=""2"" bgcolor=""#FFFF99"" style=""padding-left:50px; color:#FF0000;""><br>"& Errores &"<br></td>"
  12.         NOTIFY = NOTIFY & "  </tr>"
  13.         NOTIFY = NOTIFY & "<input name=""ocultar"" type=""hidden"" value=""1"">  "
  14.         NOTIFY = NOTIFY & "</form>"
  15.         NOTIFY = NOTIFY & "</table>"

luego en el Head

Código HTML:
Ver original
  1. <style type="text/css">
  2.  
  3.       body {
  4.         onload
  5.       }
  6.  
  7.     </style>
  8. <link rel="stylesheet" href="../_includes/mediabox/mediabox.css" type="text/css" media="screen" />

luego dentro del body

Código html + asp:
Ver original
  1. <% If errores <> "" and ocultar = 0 Then %>
  2. <script language="javascript">
  3. void(0)
  4. document.getElementById('light').style.display='block';document.getElementById('fade').style.display='block'
  5. </script>
  6. <% End If %>

codigo archivo mediabox.css

Código css:
Ver original
  1. * {
  2.         margin: 0;
  3.         padding: 0;
  4.     }
  5.    
  6.     body {
  7.         font-family: Georgia, "Times New Roman", Times, serif;
  8.         font-size: 2em;
  9.         background: #900;
  10.         color: #fff;
  11.     }
  12.    
  13.     a {
  14.         color: #F00;
  15.     }
  16.    
  17.     /* base semi-transparente */
  18.     .overlay{
  19.         display: none;
  20.         position: absolute;
  21.         top: 0;
  22.         left: 0;
  23.         width: 100%;
  24.         height: 100%;
  25.         background: #000;
  26.         z-index:1001;
  27.         opacity:.75;
  28.         -moz-opacity: 0.75;
  29.         filter: alpha(opacity=75);
  30.     }
  31.    
  32.     /* estilo para lo q este dentro de la ventana modal */
  33.     .modal {
  34.         display: none;
  35.         position: absolute;
  36.         top: 25%;
  37.         left: 25%;
  38.         width: 50%;
  39.         height: 50%;
  40.         padding: 16px;
  41.         background: #fff;
  42.         color: #333;
  43.         z-index:1002;
  44.         overflow: auto;
  45.     }

espero te sirva ami me va muy bien asi se evita de mandar a otra pagina a mostrar errores y cosas por el estilo probado en varios navegadores sin problemas
__________________
Mc_Quake

Para ayudar en lo que se pueda:Zzz: