Ver Mensaje Individual
  #3 (permalink)  
Antiguo 28/09/2007, 17:53
Avatar de Gaby_Corr
Gaby_Corr
 
Fecha de Ingreso: junio-2005
Mensajes: 672
Antigüedad: 19 años, 10 meses
Puntos: 0
Re: problema con div que no refresca mi pagina

Cita:
Iniciado por Gaby_Corr Ver Mensaje
oh dios, lo hice de otra forma y no se puede, me pasa exactamente lo mismo =(
si es con div o con iframe o con server.execute =S
Código:
<%

dim PathFTP1, PathFTP2
dim urlFTP1, urlFTP2

PathFTP1 = "C:\Inetpub\wwwroot\sitiodistribuidores\Comercial\Basico\ListadePrecios\Licenciamiento"
PathFTP2 = "C:\Inetpub\wwwroot\sitiodistribuidores\Comercial\Basico\ListadePrecios\Servicios"

urlFTP1 = "./comercial/Basico/ListadePrecios/Licenciamiento/"
urlFTP2 = "./comercial/Basico/ListadePrecios/Servicios/"

Function LeerFolder(PathFTP, urlFTP)

Dim fso 
Set fso = CreateObject("Scripting.FileSystemObject")

	dim tmpArchivos, file, Contador, urlfile, directo, folderUsuario, ArchivosUsuario

	Set folderUsuario = fso.GetFolder(PathFTP)
	Set	ArchivosUsuario =  FolderUsuario.files

	tmpArchivos = ""
	Contador = 1
	For Each file in ArchivosUsuario 
	urlfile = urlFTP & File.name
		
		    tmpArchivos = tmpArchivos & "    <tr>"
			tmpArchivos = tmpArchivos & "    <td><ul><li class=""doc""><a href=""" & urlfile & """><b>" & File.name  &  "</a></b></li></td></tr>"
			tmpArchivos = tmpArchivos & "    <tr><td><div style="" margin-left: 30px;"">Fecha: " & File.datecreated & "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Tamaño: "
			tmpArchivos = tmpArchivos &  Formatnumber(File.Size / 1048576, 2) & " MB</div></td></tr>"
			tmpArchivos = tmpArchivos & "  </tr>"
			Contador = Contador + 1
    next
	
	if tmpArchivos = "" then
		tmpArchivos = "<tr><td colspan=4 align=center><b><br>Carpeta vacia<br><br></b></td></tr>"
	end if
	leerfolder = tmpArchivos
	
end function


%>	

<script language="javascript" type="text/javascript">
function show_contenido(){
   document.getElementById("contenidolistap").style.display = "block";
      document.getElementById("contenido2").style.display = "none";
}
function show_contenido2(){
   document.getElementById("contenido2").style.display = "block";
      document.getElementById("contenidolistap").style.display = "none";
}
</script>
<table border="0" cellpadding="0" cellspacing="0">
	<tr>
	<td>
		<table cellpadding="0" cellspacing="0" width="262">
		<tr><td>
			<ul>
			  <li class="doc"><a href="javascript: show_contenido();" target="_self">Licenciamiento</a></li>
			  <li class="doc"><a href="javascript: show_contenido2()" target="_self">Servicios</a></li>
			 <!-- <li class="doc"><a href="blpreser.asp" target="contenidolistap">Servicios</a></li> 'con el iframe-->
			 <!--<li class="doc"><a href="#" target="_self">Desarrollo</a></li>-->
		   </ul>
		</td></tr></table>	
	</td>
	<td>
	   <!--<iframe src="texto.asp" frameborder="0" width="455" name="contenidolistap" id="contenidolistap"></iframe>	 	-->
	   <div id="contenidolistap" style="display: none;">
	    <table><% = LeerFolder(PathFTP2, urlFTP2) %></table>
	   </div>
	   <div id="contenido2" style="display: none;">
	    <table><% = LeerFolder(PathFTP1, urlFTP1) %></table>
	   </div>
	</td>
	</tr>		
</table>
__________________
" Recuerda , estas donde debes estar ..."