Visualizzazione dei risultati da 1 a 9 su 9
  1. #1
    Utente di HTML.it L'avatar di Francis87
    Registrato dal
    Jun 2003
    Messaggi
    5,970

    larghezza celle.... :cry:

    ciauz

    creo più o meno dinamicamente una tabella... ma non mi prende le misure ke le do, anzi! ho provato con e senza px nel valore

    codice:
     <table width="390px">
      <tr>
       <td width="100%">
        <form name="mod" action="logsmod.asp" method="post">
        <table width="165px">
         <tr>
          <th width="10px">i</th>
          <th width="20px">data</th>
          <th width="25px">id</th>
          <th width="110px">descrizione</th>
         </tr>
        <%
         If Request.QueryString("act") = "modify" Then
          Set ObjConn = Server.CreateObject("ADODB.Connection")
          ObjConn.Open "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=" & server.mappath("actlog.mdb") 
    
          For i = 0 To ubound(s)
           str = "SELECT * FROM actlog WHERE contatore = " & s(i)
           Set ObjRS = ObjConn.Execute(str)
           Response.Write "<tr>" & chr(13)
           Response.Write "<td><input type=""text"" name=""cont"" class=""text"" value=" & ObjRS("contatore") & " disabled /></td>" & chr(13)
           Response.Write "<td><input type=""text"" name=""data"" class=""text"" value=" & ObjRS("data") & " /></td>" & chr(13)
           Response.Write "<td><input type=""text"" name=""id"" class=""text"" value=" & ObjRS("id") & " /></td>" & chr(13)
           Response.Write "<td><textarea name=""desc"">" & ObjRS("descrizione") & "</textarea></td>" & chr(13)
           Response.Write "</td></tr>" & chr(13)
          Next
           Response.Write "<tr><td colspan=""4"" align=""center""><input type=""submit"" name=""submit"" class=""button"" value=""update"" /><input type=""hidden"" name=""act"" value=""update"" /></td></tr>" & chr(13)
          ObjConn.Close
          Set ObjRS = Nothing  
         End If
        %>
        </table>
        </form>
       </td>
      </tr>
     </table>
    troppo stanco adesso x capire il mio errore....





    Heaven's closed. Hell sold out.

    Linux 2.6.26-2-amd64
    Debian squeeze

  2. #2
    Ma non devi scrivere 390px devi scrivere solo width="390".
    FEDERIX.IT - [Pillola] GRAFICA DEI FORM

    ...ho ancora quella forza che ti serve, quando dici "Si comincia!"

  3. #3
    Utente di HTML.it L'avatar di Francis87
    Registrato dal
    Jun 2003
    Messaggi
    5,970
    non cambia nulla

    Heaven's closed. Hell sold out.

    Linux 2.6.26-2-amd64
    Debian squeeze

  4. #4
    prova così:
    ____________________
    <table width="86">
    <tr>
    <td width="175">
    <form name="mod" action="logsmod.asp" method="post">
    <table width="165">
    <tr>
    <th width="10px" bgcolor="#FFFF00">i</th>
    <th width="20px" bgcolor="#FFFF00">data</th>
    <th width="25px" bgcolor="#FFFF00">id</th>
    <th width="110px" bgcolor="#FFFF00">descrizione</th>
    </tr>
    <%
    If Request.QueryString("act") = "modify" Then
    Set ObjConn = Server.CreateObject("ADODB.Connection")
    ObjConn.Open "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=" & server.mappath("actlog.mdb")

    For i = 0 To ubound(s)
    str = "SELECT * FROM actlog WHERE contatore = " & s(i)
    Set ObjRS = ObjConn.Execute(str)
    Response.Write "<tr>" & chr(13)
    Response.Write "<td><input type=""text"" name=""cont"" class=""text"" value=" & ObjRS("contatore") & " disabled /></td>" & chr(13)
    Response.Write "<td><input type=""text"" name=""data"" class=""text"" value=" & ObjRS("data") & " /></td>" & chr(13)
    Response.Write "<td><input type=""text"" name=""id"" class=""text"" value=" & ObjRS("id") & " /></td>" & chr(13)
    Response.Write "<td><textarea name=""desc"">" & ObjRS("descrizione") & "</textarea></td>" & chr(13)
    Response.Write "</td></tr>" & chr(13)
    Next
    Response.Write "<tr><td colspan=""4"" align=""center""><input type=""submit"" name=""submit"" class=""button"" value=""update"" /><input type=""hidden"" name=""act"" value=""update"" /></td></tr>" & chr(13)
    ObjConn.Close
    Set ObjRS = Nothing
    End If
    %>
    </table>
    </form>
    </td>
    </tr>
    </table>

    ciao

  5. #5
    Utente di HTML.it L'avatar di Francis87
    Registrato dal
    Jun 2003
    Messaggi
    5,970
    ti secca se non lo provo?

    codice:
    <table width="86">
    <tr>
    <td width="175">
    <form name="mod" action="logsmod.asp" method="post">
    <table width="165">
    <tr>
    <th width="10px">i</th>
    <th width="20px">data</th>
    <th width="25px">id</th>
    <th width="110px">descrizione</th>
    </tr>
    no posso creare una tabella di 86px e metterci dentro una cella più grande, non è giusto! al massimo potrei cambiare il 175 con l'86 e vice versa...

    Heaven's closed. Hell sold out.

    Linux 2.6.26-2-amd64
    Debian squeeze

  6. #6
    AtomSurfer
    Guest
    emh... a me le misure della tua tabella funzionano benissimo (se cancello il testo :gren: )
    il testo è più largo delle celle e ti scombussola tutto.
    prova a cancellarlo o ad allargare le celle e vedrai che funziona.

    :metallica :mavieni:

    ciau francis

  7. #7
    Utente di HTML.it L'avatar di Francis87
    Registrato dal
    Jun 2003
    Messaggi
    5,970
    Originariamente inviato da AtomSurfer
    emh... a me le misure della tua tabella funzionano benissimo (se cancello il testo :gren: )
    il testo è più largo delle celle e ti scombussola tutto.
    prova a cancellarlo o ad allargare le celle e vedrai che funziona.

    :metallica :mavieni:

    ciau francis
    non so.... io ho dei campi <input> pensavo ke si ridimensionassero automaticamente.... non lo fanno??
    Heaven's closed. Hell sold out.

    Linux 2.6.26-2-amd64
    Debian squeeze

  8. #8
    AtomSurfer
    Guest
    Originariamente inviato da Francis87
    non so.... io ho dei campi <input> pensavo ke si ridimensionassero automaticamente.... non lo fanno??
    non chiederlo a me!


  9. #9
    Utente di HTML.it L'avatar di Francis87
    Registrato dal
    Jun 2003
    Messaggi
    5,970
    Originariamente inviato da AtomSurfer
    non chiederlo a me!

    cmq ho deciso ke mi lascio i problemi di grafica alla fine....adesso mi occupo del codice in primis!





    grazie cmq a tutti!
    Heaven's closed. Hell sold out.

    Linux 2.6.26-2-amd64
    Debian squeeze

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.