Pagina 1 di 2 1 2 ultimoultimo
Visualizzazione dei risultati da 1 a 10 su 15

Discussione: visualizzare tabella

  1. #1

    visualizzare tabella

    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

  2. #2
    Moderatore di Annunci siti web, Offro lavoro/collaborazione, Cerco lavoro L'avatar di cavicchiandrea
    Registrato dal
    Aug 2001
    Messaggi
    26,133
    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

  3. #3
    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

  4. #4
    Moderatore di Annunci siti web, Offro lavoro/collaborazione, Cerco lavoro L'avatar di cavicchiandrea
    Registrato dal
    Aug 2001
    Messaggi
    26,133
    Ma qual'è il problema non funziona? Non ti piace? Non lo puoi usare?

    P.S. Non l'ho scritto, perché ritenevo l'operazione ovvia,
    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""")%>
    il controllo va inserito in tutte le tabelle, t'ho consigliato questa soluzione perché ritengo sia la più pratica, in javascript sarebbe più complicato.
    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

  5. #5
    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>

  6. #6
    Moderatore di Annunci siti web, Offro lavoro/collaborazione, Cerco lavoro L'avatar di cavicchiandrea
    Registrato dal
    Aug 2001
    Messaggi
    26,133
    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

  7. #7
    <%@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

  8. #8
    cosa devo aggiungere per fare nascondere la tabella?

    <%if Request("tabella") <> 1 Then Respose.write("style=""display:none""")%>

    per piacere ciao

  9. #9
    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
    che c'è alle linee che ti danno errore?
    IP-PBX management: http://www.easypbx.it

    Old account: 2126 messages
    Oldest account: 3559 messages

  10. #10
    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""")%>>

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.