Ver Mensaje Individual
  #25 (permalink)  
Antiguo 18/10/2007, 12:13
Avatar de Gaby_Corr
Gaby_Corr
 
Fecha de Ingreso: junio-2005
Mensajes: 672
Antigüedad: 19 años, 10 meses
Puntos: 0
Re: por q me dice q no es una funcion???

bueno pues no hace el response.write en iexplorer:

if Err=0 then
if not rs.eof then

c2 = rs.fields("sistemas_nombre").value
c3 = rs.fields("sistemas_linea").value
response.Write("Nombre: " &c2& " , Linea: " &c3)

end if
end if


DUDA1: como puedo hacer para que esos valores (c2 y c3)se regresen a la pagina
y se me desplieguen en los campos de mi formulario??


---------------------------------------
ahora quiero hacer que funcione que al darle click en el boton de guardar
pues se haga la funcion Mtdos(), pero creo que hay un problema al hacer el submit
que no me hace esto:


Código:
<%
if Metodo = "POST" then
    select case funcion
        case "Guardar"
            'call grabar(sistema,nombre,linea)
			response.write("http://www.google.com")
    end select
else
%>

Código:
function Mtdos(idCapa)
{
alert("funcion metodo");
document.getElementById('metodo').value=idCapa.value;
document.form1.submit();
alert("funcion metodo3334343");
}
mi formulario:
Código:
<form method="post" action="sistemas.asp" id="form1" name="form1">
<table width="100%" cellpadding="0" cellspacing="0">		    
	<tr><td>Número de Sistema: <br /><span class="dtobligatorio"> * </span>
		<input name="sistemas" type="text" id="sistemas" value="" size="20" maxlength="20" onchange="mostrarbtnguardar()" onblur="Busqueda(this.id)" />
		<input name="ver" type="image" id="ver" value="ver" src="Images/20_VER1.jpg" />	</td></tr>
	<tr><td>Nombre del sistema: <br /><span class="dtobligatorio"> * </span>
	   <input name="nombre" type="text" id="nombre" value="" size="95" maxlength="30" />
	</td>
	</tr>
	<tr><td>Línea de sistemas:<br /><span class="dtobligatorio"> * </span>
	<input name="linea" type="text" id="linea" value="" size="95" maxlength="30"/>
	</td></tr>
	<tr><td>
	<input name="Guardar" type="image" id="Guardar" src="images/GUARDAR1.gif" style=" visibility: hidden;" onclick="Mtdos(this.id)" />				  
	<input name="Modificar" type="image" id="Modificar" src="images/modificar1.gif" style=" visibility:hidden;" />
	<input name="Borrar" type="image"  id="Borrar" src="Images/ELIMINAR1.gif" style=" visibility: hidden;" />
	<input  type="image" src="images/IMPRIMIR1.gif" name="Imprimir" id="Imprimir" style=" visibility: hidden;" />
	<input type="hidden" id="metodo" name="metodo" />
</td> </tr> 
	<div id="respuesta"></div>
</table>

</form>
__________________
" Recuerda , estas donde debes estar ..."