este es el problema, he creado esta semi-funcion, donde en ves de utilizar el recordset para paginar, lo hago mediante arreglos
, los cuales generan las tablas que se usaran en vista de usuario
, ahora el detalle es que... pues la verdad no se casi absolutamente nada... por no querer decir que no se nada de nada
jajajja... de javascript, pudieran por favor, ayudarme a esconder las tablas??
segun a lo que he mirado aki en el foro, se puede hacer algo como esto
<script language="javascript">
function hab_des(cual)
document.getElementById('cual').disabled=true;
</script>
pero realmente no se como llamarlo
Aki esta el codigo
Código:
DIM matriz1()'Matriculas
DIM matriz2()'Indexs
DIM matriz3() 'periodos
set rec = cxn.execute("select count(*) from tablilla where activo=1;")
cuantos=rec(0)
response.write "Registros: "&cuantos&"<br/>"
REDIM matriz1(cuantos)'campo1
REDIM matriz2(cuantos)'campo2
REDIM matriz3(cuantos)'campo3
sql="SELECT campo1, campo2, campo3 FROM tablilla where activo=1;"
RS.Open sql, cxn
cont=0
while RS.EOF=FALSE
matriz1(cont)=RS("campo1").value
matriz2(cont)=RS("campo2").value
matriz3(cont)=RS("campo3").value
RS.movenext
cont=cont+1
wend
RS.close
'CREARA LAS PAGINAS QUE SE USARAN
%>
<table><tr>
<%
For lk=0 to CuantasPaginas
%>
<th><a onclick="hab_des()"><%=lk%></a></th>
<%
next
%>
</tr></table>
<%
'CREARA LAS TABLAS DE MUESTRAS
for kl=0 to CuantasPaginas%>
<div class="story">
<table id="tabla<%=kl%>">
<tr><th>#</th><th>Campo1</th><th>Campo2</th><th>Campo3</th><th>Cuanto Pagara</th></tr>
<%for kll=0 to CuantosDespliegue-1
if matriz1(klll)<>"" then
%>
<tr><th><%=consecutivo%></th><td><%=matriz1(klll)%></td><td><%=matriz2(klll)%></td><td><%=matriz3(klll)%></td><td><%=matriz3(klll)*2000%></td></tr>
<%
consecutivo=consecutivo+1
klll=klll+1
else
kll=CuantosDespliegue+1
kl=CuantasPaginas+1
end if
next%>
</table></div>
<%next
consecutivo=""