Ver Mensaje Individual
  #6 (permalink)  
Antiguo 21/08/2008, 08:47
Avatar de cosuroca
cosuroca
 
Fecha de Ingreso: septiembre-2005
Mensajes: 25
Antigüedad: 19 años, 6 meses
Puntos: 0
Respuesta: [VB6]Ayuda en el Submit

Ea muchas gracias, el formulario de la web lo recorte de tal modo solo este la cajita y bueno no es que sea reservado, pero es que no me gustaria que alguien me adelante en el trabajo que estoy realizando :D

Código:
<script language="javascript">
function doSubmit()
{
	var frm=document.securefrm;
	var securcode=frm.securitycode.value;
	var securecode1=frm.securecode.value;
	if(securcode=="")
	{
		alert("Escribe el código de seguridad");
		frm.securitycode.focus();
		return false;		
	}
   else if(securcode!="" && securcode!=securecode1)
     {
	   alert("Escribe un código de seguridad válido");
	    frm.securitycode.value="";
	   frm.securitycode.focus();
	   return false;
	 }
  frm.Keyword.value='Ok';
  return true;
  
}
function viewAd300()
{   
            var i = Math.round(2*Math.random());		  
			var url="banner300.php?num="+i;							
   			xmlHttpad300=GetXmlHttpObject(adHandler300);
			xmlHttpad300.open("GET",url,true);
			xmlHttpad300.send(null);
			var b=setTimeout("viewAd300()",30000);
}
function adHandler300()
{
	if(xmlHttpad300.readyState==4)
	{
	document.getElementById("viewads300").innerHTML=xmlHttpad300.responseText;
	}
}
</script>	
<tr>

	<td valign="top">
							
	<table border="0" width="372" height="122" cellspacing="0" cellpadding="0" class="border3sideblue">
	<!-- MSTableType="nolayout" -->
	<tr>
		<td align="center">			
		<table border="0" height="116" cellspacing="0" cellpadding="0" width="357">
		
		<form name="securefrm" action="/downloadfile.php" method="post" onSubmit="return doSubmit()" style="margin:0; display:inline;" >	
		<!-- MSTableType="nolayout" -->

		<tr>
			<td width="36%" align="right" height="25"><span class="tahoma12">Nombre de archivo :</span></td>
			<td width="2%" height="25">&nbsp;</td>
			<td width="32%" height="25" colspan="2" valign="center">
			<span class="tahoma12"><b>MSWINSCK.zip</b></span></td>
		</tr>

		<tr>
		  	<td align="right" height="25"><span class="tahoma12">Tamaño de archivo :</span></td>
		  	<td height="25">&nbsp;</td>
			<td height="25" colspan="2" valign="center"><span class="tahoma12"><b>53.37 KB</b></span></td>
		</tr>
								
		<tr>
			<td width="36%" align="right" height="30"><span class="tahoma12">Código de verificación: :</span>					</td>
			<td width="2%" height="30"></td>
			<td width="32%" height="30">
				<input type="hidden" name="fid" id="fid" value="1872212">
				<input type="hidden" name="tid" id="tid" value="MjAwOC0wOC0wOA==">
				<input name="securitycode" type="text" id="securitycode" size="10"/>
				<input type="hidden" name="fname" id="fname" value="MSWINSCK.zip">					</td>
				
				<td width="30%" height="30">
					<input type="hidden" name="securecode" id="securecode" value="26s9nk">
						<img src="/png.php?number=26s9nk" align="absmiddle"></td>
		</tr>
		
		<tr>
			<td width="36%" height="36" rowspan="2">&nbsp;</td>
			<td width="2%" height="36" rowspan="2">&nbsp;</td>
			<td width="32%">
				<input type="hidden" name="Keyword">
	    			<input type="submit" name="submit" value="Descargar"></td>
			<td width="30%" valign="top">&nbsp;</td>
		</tr>
		
		</form>
		</table>
		</td>
	</tr>
	</table>
	</td>
</tr>
Bueno e intentando de todo pero no logro que automaticamente me de la descarga, bueno, es decir, logro leer el codigo que me aparece y logro enviar el codigo en la cajita asignada, pero ahora para dar el ultimo paso el del submit no logro eso.

Gracias por tu ayuda.