
01/09/2004, 09:55
|
| | Fecha de Ingreso: noviembre-2003 Ubicación: En uno de los países mas lindos: CHILE
Mensajes: 70
Antigüedad: 21 años, 6 meses Puntos: 0 | |
Duda este es el codigo k estoy trabajando
<%@LANGUAGE="JScript" %>
<html>
<head>
<title>JavaScript</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><style type="text/css">
<!--
body .Estilo13 { font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
font-size: 12pt;
color: #000099;
}
.Estilo14 {color: #000099}
.Estilo15 {font-weight: bold}
.Estilo16 {
color: #0000F;
font-size: 9px;
}
.Estilo17 {
color: #0000FF;
font-style: italic;
}
.Estilo18 {color: #990000}
.Estilo19 {font-size: 9px}
.Estilo20 {font-weight: bold; font-size: 9px; }
.Estilo22 {font-size: 9}
.Estilo23 {font-weight: bold; color: #000099; font-family: Arial, Helvetica, sans-serif;}
-->
</style></head>
<form name="registro" method="post">
<script language="javascript">
var idDoc;
/************************************************** ***********************/
function busca()
{
var frm = document.forms('registro');
var vProyecto = frm.elements.proyecto.options[frm.proyecto.selectedIndex];
var vFase = frm.elements.fase.options[frm.fase.selectedIndex];
var vTipo = frm.elements.tipo.options[frm.tipo.selectedIndex];
var vArea = frm.elements.area.options[frm.area.selectedIndex];
var vEspecialidad = frm.elements.especialidad.options[frm.especialidad.selectedIndex];
var vCorrelativo = frm.elements.correlativo.options[frm.correlativo.selectedIndex];
alert('vProyecto = ' + vProyecto.text);
alert('vFase = ' + vFase.text);
alert('vTipo = ' + vTipo.text);
alert('vArea = ' + vArea.text);
alert('vEspecialidad = ' + vEspecialidad.text);
alert('vCorrelativo = ' + vCorrelativo.text);
alert('Ultimo Mensaje = ' + vProyecto.text + vFase.text + vTipo.text + vArea.text + vEspecialidad.text + vCorrelativo.text); ESTE VALOR
idDoc(vProyecto.text+vFase.text+vTipo.text+vArea.text+v Especialidad.text+vCorrelativo.text);
frm.txt_Desc.value = 'Tercera Descripcion'
frm.txt_ptoOriginal.value = '40'
alert ('num-completo='+idDoc);
document.registro.txt_ID.value = idDoc;
}
/************************************************** ***********************/
</script>
<body>
<!--#INCLUDE File="ADOJAVAS.inc"-->
<%
Ob_Conn=new ActiveXObject("ADODB.Connection")
Ob_Conn.Open("bD")
%>
<% ob_RSProy=Ob_Conn.Execute ("SELECT DISTINCT proy FROM LISTOTAL")%>
<table width="99%">
<tr>
<td width="315" height="112"></td>
<td width="635">
<p align="right" class="Estilo1 Estilo18"><strong><em></em></strong></p>
<div align="right" class="Estilo1 Estilo15">
<p class="Estilo17">titulo</p>
</div>
</div> </td>
</tr>
</table></table>
<p></p>
<table width="961" border="1" bordercolor="#FFCC99">
<tr>
<td height="74" colspan="16"><div align="center"><span class="Estilo13">REGISTRO </span></div></td>
</tr>
<tr>
<td colspan="3"><div align="center"><span class="Estilo12"><span class="Estilo13"><span class="Estilo13"><span class="Estilo14"><span class="Estilo15"></span></span></span></span></span></div></td>
<td width="35"><div align="center"><span class="Estilo12"><span class="Estilo13"><span class="Estilo13"><span class="Estilo14"><span class="Estilo15"></span></span></span></span></span></div></td>
<td colspan="4"><div align="center" class="Estilo15">
<div align="center" class="Estilo19">NUMERO</div>
</div></td>
<td colspan="8"><div align="center" class="Estilo15">
<div align="center" class="Estilo19">DESCRIPCION</div>
</div></td>
</tr>
<tr>
<td colspan="3"><div align="center" class="Estilo20">
<div align="center">Nº PROYECTO</div>
</div></td>
<td><div align="center" class="Estilo20">
<div align="center">FASE</div>
</div></td>
<td><div align="center" class="Estilo20">
<div align="center">TIPO</div>
</div></td> UN POCO MAS ABAJO
<td><div align="center" class="Estilo20">
<div align="center">AREA</div>
</div></td>
<td><div align="center" class="Estilo20">
<div align="center">ESP</div>
</div></td>
<td><div align="center" class="Estilo20">
<div align="center">CORR</div>
</div></td>
<td colspan="8"><div align="center"> <span class="Estilo5"><span class="Estilo6"><span class="Estilo7"><span class="Estilo12"><span class="Estilo13"><span class="Estilo14"><span class="Estilo15">
</span></span></span></span></span></span></span> <span class="Estilo5"><span class="Estilo6"><span class="Estilo7"><span class="Estilo12"><span class="Estilo13"><span class="Estilo14"><span class="Estilo15">
<input name="txt_ID" type="text" id="txt_ID">
</span></span></span></span></span></span></span><span class="Estilo5"><span class="Estilo6"><span class="Estilo7"><span class="Estilo12"><span class="Estilo13"><span class="Estilo13"><span class="Estilo14"><span class="Estilo15">
</span></span></span></span></span></span></span></span></div></td>
</tr>
<tr>
<td colspan="3"> <center><select name="proyecto" class="Estilo20" id="proyecto" >
<option value="">
<% while (!ob_RSProy.Eof)
{%>
<option> <%=ob_RSProy("Proy")%></option>
<%ob_RSProy.MoveNext()
}
%>
</select></center></td><%ob_RS=Ob_Conn.Execute("SELECT DISTINCT SITEM FROM LISTOTAL ")%>
<td>
<center>
<select name="fase" class="Estilo20" size="" id="fase" >
<br>
<option value="" selected>
<% while (!ob_RS.Eof) {%>
<option><%=ob_RS("sitem")%></option>
<%ob_RS.MoveNext() }%>
</select>
</center></td>
<td width="41"><div align="center" class="Estilo15">
<div align="center">
<select name="Tipo" class="Estilo20" id="tipo">
<%ob_RS=Ob_Conn.Execute("SELECT DISTINCT TIPDOC FROM LISTOTAL ")%>
<option value="">
<% while (!ob_RS.Eof)
{%>
<option> <%=ob_RS("tipdoc")%></option>
<%ob_RS.MoveNext()
}
%>
</select>
</div>
</div></td>
<%ob_RS=Ob_Conn.Execute("SELECT DISTINCT area FROM LISTOTAL ")%>
<td width="35"><select name="area" class="Estilo20" id="area">
<option value="" selected>
<% while (!ob_RS.Eof) {%>
<option><%=ob_RS("area")%></option>
<%ob_RS.MoveNext() }%>
</select></td>
<td width="53"><div align="center" class="Estilo15">
<div align="center">
<select name="esp" class="Estilo20" id="especialidad">
<%ob_RS=Ob_Conn.Execute("SELECT DISTINCT esp FROM LISTOTAL ")%>
<option value="">
<% while (!ob_RS.Eof) {%>
<option> <%=ob_RS("esp")%></option>
<%ob_RS.MoveNext() }%>
</select>
</div>
</div></td>
<td width="50"><select name="correlativo" class="Estilo20" id="select" onChange="busca()">
<%ob_RS=Ob_Conn.Execute("SELECT DISTINCT corr FROM LISTOTAL ")%>
<option value="">
<% while (!ob_RS.Eof) {%>
<option><%=ob_RS("corr")%></option>
<%ob_RS.MoveNext() }%>
</select></td>
<td colspan="7"><div align="center" class="Estilo15">
<div><span class="Estilo5"><span class="Estilo6"><span class="Estilo7"><span class="Estilo12"><span class="Estilo13"><span class="Estilo14"> TIENE K MANTENER EL VALOR PARA PODER COMPARAR AKI <%ob_RSReg=Ob_Conn.Execute("SELECT Descripcion FROM LISTOTAL WHERE Numcompleto='"&IDdOC&"'")%>
<textarea name="txt_Desc" cols="75" class="Estilo15" id="textarea3"></textarea>
</span></span></span></span></span></span>
.
.
.
.
.
</body>
</form>
</html> ESA ES MI DUDA, SE K TENGO LA VARIABLE DEFINIDA PARA JSCRIP Y NO PARA ASP, COPMO HAGO ESO SIENDO K TRABAJO EN UNA SOLA PAGINA.GRACIAS |