Foros del Web » Programando para Internet » Javascript »

Mostrar pop up sin el boton cerrar (X)

Estas en el tema de Mostrar pop up sin el boton cerrar (X) en el foro de Javascript en Foros del Web. Buenas, Hay alguna manera de hacer que salga el pop up sin el botoncito del titlebar, el close (X). asi lanzo el pop up lanzarVentanaModalTituloIE(sURL,"", ...
  #1 (permalink)  
Antiguo 18/12/2008, 10:43
 
Fecha de Ingreso: noviembre-2008
Mensajes: 36
Antigüedad: 15 años, 5 meses
Puntos: 0
Exclamación Mostrar pop up sin el boton cerrar (X)

Buenas,

Hay alguna manera de hacer que salga el pop up sin el botoncito del titlebar, el close (X).

asi lanzo el pop up

lanzarVentanaModalTituloIE(sURL,"", "dialogWidth:500px;dialogHeight:200px;help:no; maxi mize:no;minimize:no;scrollbars:no;status:off;menub ar=no;unadorned=on;titlebar=0;", "RENUNCIA");

alguna funcion java por alli

thanks
  #2 (permalink)  
Antiguo 18/12/2008, 10:55
Avatar de JavierB
Colaborador
 
Fecha de Ingreso: febrero-2002
Ubicación: Madrid
Mensajes: 25.052
Antigüedad: 22 años, 2 meses
Puntos: 772
Respuesta: Mostrar pop up sin el boton cerrar (X)

Hola Khaos

No se puede quitar el botón cerrar de las ventanas. Tendrías "crear" la ventana con capas.

http://www.brainjar.com/dhtml/windows/

Saludos,
  #3 (permalink)  
Antiguo 18/12/2008, 11:04
Avatar de buzu  
Fecha de Ingreso: octubre-2006
Ubicación: San Francisco, CA
Mensajes: 2.168
Antigüedad: 17 años, 6 meses
Puntos: 122
Respuesta: Mostrar pop up sin el boton cerrar (X)

Claro, si no imagínate la de líos que se armarían por los desarrolladores maliciosos o irresponsables.
__________________
twitter: @imbuzu
  #4 (permalink)  
Antiguo 18/12/2008, 11:20
 
Fecha de Ingreso: noviembre-2008
Mensajes: 36
Antigüedad: 15 años, 5 meses
Puntos: 0
Respuesta: Mostrar pop up sin el boton cerrar (X)

Muchas gracias por el enlace, pero la ventana ya la tengo construida, y tengo 2 botones aceptar y cancelar, y cada uno lanza un evento, ahora mi pregunta es si se puede asociar al cerrar(X) el mismo evento que el Cancelar.


un saludo
  #5 (permalink)  
Antiguo 18/12/2008, 11:24
Avatar de buzu  
Fecha de Ingreso: octubre-2006
Ubicación: San Francisco, CA
Mensajes: 2.168
Antigüedad: 17 años, 6 meses
Puntos: 122
Respuesta: Mostrar pop up sin el boton cerrar (X)

Mijo' tienes que poner tu codigo para que te podamos decir como los puedes asociar, de otra manera como lo sabemos?

(Mijo' = hijo mio)
__________________
twitter: @imbuzu
  #6 (permalink)  
Antiguo 18/12/2008, 11:53
 
Fecha de Ingreso: noviembre-2008
Mensajes: 36
Antigüedad: 15 años, 5 meses
Puntos: 0
Respuesta: Mostrar pop up sin el boton cerrar (X)

Eres andaluz?

Bueno a ver como lo pongo:

un boton llama a una funcion

Cita:
<inputbutton><input name="BTRenuncia" type="submit"
class="Boton" value="Renuncia" onclick="PopUpRenuncia()" /></inputbutton>
aqui la funcion

Cita:
function PopUpRenuncia(){

alert('ENTRAMOS EN POPUP');

var r = null;
var cadena = "|";


var sURL = "https://*****";


var valorRetorno = lanzarVentanaModalTituloIE(sURL,"", "dialogWidth:500px;dialogHeight:200px;help:no;maxi mize:no;minimize:no;scrollbars:no;status:off;menub ar=no;unadorned=on;titlebar=0;", "RENUNCIA");
y aqui la jsp del pop up

sURL lanza un flujo que me lanza el pop up

Cita:
<html>
<head>

<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<%@ include file="/***/funciones.jsp"%>
<SCRIPT LANGUAGE="javascript" src="*****utils.js"></SCRIPT>


<script>

function Aceptar() {
var strTexto = "";


strTexto += "Aceptar|";

window.returnValue = strTexto;
window.close();
}


function Cancelar(){

TVN*****4.evento.value="0X*****01";

}

</script>




<% if(!utils.isInternetExplorer()) { %>
<link rel="stylesheet" href="/pub/estilos/1024v02.css" type="text/css">
<% } else { %>
<link rel="stylesheet" href="/pub/estilos/1024v02.css" type="text/css">
<% } %>
</head>



<body onload="controlSesion();<% if (utils.getPaginaModoMensaje() != getCteServicioOK()) {%> mostrarMensajes(tipoMensajes,paramMensajes)<%}%>" bgcolor="#FFFFFF">
<customform>
<form name="TV****7" action="<%=utils.getDestinoFormulario()%>" method="POST" target="" ayudarapida="Formulario" onSubmit="javascript:if(!isEnviarFormulario()) return false;">
<input type="hidden" name="evento">
<input type="hidden" name="flujo" value="<%=utils.getFlujoID()%>">
<input type="hidden" name="ventana" value="<%=utils.getVentana()%>">
</input>

<table width="30%" border="0">
<tbody>
<tr>
<td colspan="3"><font size="2" color="#000000" face="Arial"></font></td>
<td width="393"></td>

</tr>
<tr>
<td></td>

<td width="79" align="right">Motivo:</td>
<td width="195"><inputtextarea><textarea
name="areaTexto0" cols="50" rows="5" class="FondoAbi"><%=utils.getValorContexto("")%></textarea></inputtextarea></td>
<td width="393"></td>
</tr>
<tr>
<td></td>
<td width="393"></td>
<td width="400" align="right"><inputbutton><input name="accionador1" type="submit"
class="Boton" value="Aceptar"
onclick="Aceptar()" align="right" /></inputbutton><inputbutton><input
name="accionador3" type="submit" class="Boton" value="Cancelar"
onclick="document.forms[0].evento.value=''" align="right" /></inputbutton></td>
<td width="47"></td>

</tr>

</tbody>
</table>



</form>
</customform>
</body>
</html>
un saludo

Última edición por Khaos; 18/12/2008 a las 12:00
  #7 (permalink)  
Antiguo 18/12/2008, 12:16
Avatar de buzu  
Fecha de Ingreso: octubre-2006
Ubicación: San Francisco, CA
Mensajes: 2.168
Antigüedad: 17 años, 6 meses
Puntos: 122
Respuesta: Mostrar pop up sin el boton cerrar (X)

No pues me quede igual. Imagino que a lo que te refieres es a cerrar la ventana si es asi, agrega a tu boton

onclick="window.close()"
__________________
twitter: @imbuzu
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 10:17.