ciao a tutti ,
vorrei un aiuto,
esempio :
prova.asp?tabella=1 si deve visualizzare la tabella 1
prova.asp?tabella=2 si deve visualizzare la tabella 2
come posso fare?
ciao
ciao a tutti ,
vorrei un aiuto,
esempio :
prova.asp?tabella=1 si deve visualizzare la tabella 1
prova.asp?tabella=2 si deve visualizzare la tabella 2
come posso fare?
ciao
Una cosa del genere:
Codice PHP:<table id="tabella1" <%if Request("tabella") <> 1 Then Respobse.write("style=""display:none""")%>>
contenuto tabella.......................
</table>
![]()
Cavicchi Andrea
Problemi con javascript, jquery, ajax clicca qui
un'altro aiuto per piacere,
prova.asp?tabella=1 si deve visualizzare solo la tabella 1 , non si deve visualizzare la tabella 2
prova.asp?tabella=2 si deve visualizzare solo la tabella 2, non si deve visualizzare la tabella 1
come posso fare?
ciao
Ma qual'è il problema non funziona? Non ti piace? Non lo puoi usare?
P.S. Non l'ho scritto, perché ritenevo l'operazione ovvia,il controllo va inserito in tutte le tabelle, t'ho consigliato questa soluzione perché ritengo sia la più pratica, in javascript sarebbe più complicato.codice:<%if Request("tabella") <> 1 Then Respobse.write("style=""display:none""")%> <%if Request("tabella") <> 2<%if Request("tabella") <> 3 Then Respobse.write("style=""display:none""")%> Then Respobse.write("style=""display:none""")%>
Comunque liberissimo di non utilizza questa soluzione, e di attendere una soluzione che t'aggrada di più.
Ciao.
Cavicchi Andrea
Problemi con javascript, jquery, ajax clicca qui
non funziona,
esce questo errore
Tipo di errore:
Errore di compilazione di Microsoft VBScript (0x800A0408)
Carattere non valido
/prova.asp, line 9, column 27
if Request("tabella") <> 2<%if Request("tabella") <> 3 Then Respobse.write("style=""display:none""")
--------------------------^
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Documento senza titolo</title>
</head>
<body>
<table width="200" border="0" <%if Request("tabella") <> 1 Then Respobse.write("style=""display:none""")%> <%if Request("tabella") <> 2<%if Request("tabella") <> 3 Then Respobse.write("style=""display:none""")%> Then Respobse.write("style=""display:none""")%>>
<tr>
<td>Tabella 1</td>
</tr>
</table>
<table width="200" border="0" <%if Request("tabella") <> 1 Then Respobse.write("style=""display:none""")%> <%if Request("tabella") <> 2<%if Request("tabella") <> 3 Then Respobse.write("style=""display:none""")%> Then Respobse.write("style=""display:none""")%>>
<tr>
<td>Tabella 2</td>
</tr>
</table>
</body>
</html>
Copia e incolla questa
codice:<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Documento senza titolo</title> </head> <body> <table width="200" border="0" <%if Request("tabella") <> 1 Then Respose.write("style=""display:none""")%>> <tr> <td>Tabella 1</td> </tr> </table> <table width="200" border="0" <%if Request("tabella") <> 2 Then Respose.write("style=""display:none""")%>> <tr> <td>Tabella 2</td> </tr> </table> </body> </html>![]()
P.S. Consiglio: quando non si ha dimestichezza con linguaggi di programmazione, sarebbe meglio specificarlo cosi non perdiamo tempo in due.
Cavicchi Andrea
Problemi con javascript, jquery, ajax clicca qui
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Documento senza titolo</title>
</head>
<body>
<table width="200" border="0" <%if Request("tabella") <> 1 Then Respose.write("style=""display:none""")%>>
<tr>
<td>Tabella 1</td>
</tr>
</table>
<table width="200" border="0" <%if Request("tabella") <> 2 Then Respose.write("style=""display:none""")%>>
<tr>
<td>Tabella 2</td>
</tr>
</table>
</body>
</html>
prova.asp?tabella=1 esce errore sulla seconda tabella
Tipo di errore:
Errore di run-time di Microsoft VBScript (0x800A01A8)
Necessario oggetto: ''
/prova.asp, line 14
prova.asp?tabella=2 esce errore sulla prima tabella
Tipo di errore:
Errore di run-time di Microsoft VBScript (0x800A01A8)
Necessario oggetto: ''
/prova.asp, line 9
cosa devo aggiungere per fare nascondere la tabella?
<%if Request("tabella") <> 1 Then Respose.write("style=""display:none""")%>
per piacere ciao
che c'è alle linee che ti danno errore?Tipo di errore:
Errore di run-time di Microsoft VBScript (0x800A01A8)
Necessario oggetto: ''
/prova.asp, line 14
prova.asp?tabella=2 esce errore sulla prima tabella
Tipo di errore:
Errore di run-time di Microsoft VBScript (0x800A01A8)
Necessario oggetto: ''
/prova.asp, line 9
IP-PBX management: http://www.easypbx.it
Old account: 2126 messages
Oldest account: 3559 messages
line 9
<table width="200" border="0" <%if Request("tabella") <> 1 Then Respose.write("style=""display:none""")%>>
line 14
<table width="200" border="0" <%if Request("tabella") <> 2 Then Respose.write("style=""display:none""")%>>