Pagina 1 di 2 1 2 ultimoultimo
Visualizzazione dei risultati da 1 a 10 su 12
  1. #1

    database con frontpage 03

    ciao a tutti.
    Io ho realizzato un sito interamente con front page 03. Ho creato un guestbook con il modulo dove vengono scritti i messaggi collegato ad un database . Per estrarre i risultati ho creato un area risultati database. Il problema è che non riesco a fare in modo che il testo visualizzato comprenda gli spazi e vada a capo dopo un punto o l'invio con riga sottostante. Praticamente non riesco a visualizzare un post scritto in questo modo:
    es. tizio
    via nazionale
    roma

    ma lo visualizzaro così:
    es.tizio via nazionale roma

    Non essendo ancora molto pratico vorrei qualche consiglio su come risolvere il problema. Se volete dare un occhio per capire meglio così da potermi aiutare.

    ciao e grazie

  2. #2
    Vediamo la riga di codice con la quale scrivi il testo nella pagina?

  3. #3
    allora, il testo viene scritto dagli utenti. Io ho impostato una pagina con un modulo e una pagina dove visualizzano i loro post. Il tutto passa per un database che è quello che riesci a creare in automatico con frontpage.

    questo è il codice del modulo:

    nick name <!--webbot bot="Validation"
    b-value-required="TRUE" --><input type="text" name="nick" size="20"></font></p>
    <p align="center"><font face="Verdana"
    color="#429940">oggetto
    <!--webbot bot="Validation"
    b-value-required="TRUE" --><input type="text" name="oggetto" size="20"></font></p>
    <p align="center"><font face="Verdana"
    color="#429940">scrivi <!--webbot bot="Validation"
    b-value-required="TRUE" --><textarea rows="8" name="scivi" cols="26"></textarea></font></p>
    <p align="center"><font face="Verdana"
    color="#429940"><input type="submit" value="Invia" name="B1"
    style="color: #FFFFFF; font-family: Verdana; font-weight: bold; background-color: #429940">
    <input type="reset" value="Cancella" name="B2"
    style="color: #FFFFFF; font-family: Verdana; font-weight: bold; background-color: #429940">

    mentre questo il codice dell'area dei risultati:

    <!--webbot bot="DatabaseRegionStart"
    s-columnnames="ID,data,oggetto,inviata,notizia,Nome_ computer_remoto,Nome_utente,Tipo_browser,Data_e_or a,sport,T1,oggetto_notizia"
    s-columntypes="3,202,202,202,203,202,202,202,135,202 ,202,202"
    s-dataconnection="ar.pv" b-tableformat="FALSE" b-menuformat="FALSE"
    s-menuchoice s-menuvalue b-tableborder="FALSE" b-tableexpand="TRUE"
    b-tableheader="TRUE" b-listlabels="FALSE" b-listseparator="FALSE"
    i-listformat="0" b-makeform="FALSE" s-recordsource="Risultati"
    s-displaycolumns="data,sport,oggetto_notizia,notizia ,inviata" s-criteria
    s-order="[Data_e_ora] -"
    s-sql="SELECT * FROM Risultati ORDER BY Data_e_ora DESC" b-procedure="FALSE"
    clientside suggestedext="asp" s-defaultfields
    s-norecordsfound="Nessun record restituito." i-maxrecords="256" i-groupsize="1"
    botid="0" u-dblib="_fpclass/fpdblib.inc" u-dbrgn1="_fpclass/fpdbrgn1.inc"
    u-dbrgn2="_fpclass/fpdbrgn2.inc" tag="BODY"
    preview="&lt;table border=0 width=&quot;100%&quot;&gt;&lt;tr&gt;&lt;td bgcolor=&quot;#FFFF00&quot;&gt;&lt;font color=&quot;#000000&quot;&gt;Inizio dell'area risultati database.&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;"
    startspan -->
    <% if 0 then %>
    <SCRIPT Language="JavaScript">
    document.write("<div style='background: yellow; color: black;'>Impossibile visualizzare il contenuto del database nel componente Risultati database della pagina corrente. Il nome file della pagina deve avere estensione '.asp' e il sito Web deve trovarsi in un server che supporta Active Server Pages.</div>");
    </SCRIPT>
    <% end if %>
    <%
    fp_sQry="SELECT * FROM Risultati ORDER BY Data_e_ora DESC"
    fp_sDefault=""
    fp_sNoRecords="Nessun record restituito."
    fp_sDataConn="ar.pv"
    fp_iMaxRecords=256
    fp_iCommandType=1
    fp_iPageSize=1
    fp_fTableFormat=False
    fp_fMenuFormat=False
    fp_sMenuChoice=""
    fp_sMenuValue=""
    fp_sColTypes="&ID=3&data=202&oggetto=202&inviata=2 02&notizia=203&Nome_computer_remoto=202&Nome_utent e=202&Tipo_browser=202&Data_e_ora=135&sport=202&T1 =202&oggetto_notizia=202&"
    fp_iDisplayCols=5
    fp_fCustomQuery=False
    BOTID=0
    fp_iRegion=BOTID
    %>




    <!--webbot bot="DatabaseResultColumn"
    s-columnnames="ID,data,oggetto,inviata,notizia,Nome_ computer_remoto,Nome_utente,Tipo_browser,Data_e_or a,sport,T1,oggetto_notizia"
    s-column="data" b-tableformat="FALSE" b-hashtml="FALSE" b-makelink="FALSE"
    clientside b-MenuFormat
    preview="&lt;font size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;data&lt;font size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;"
    startspan --><%=FP_FieldVal(fp_rs,"data")%><!--webbot
    bot="DatabaseResultColumn" endspan i-checksum="5307" --></p>


    <!--webbot bot="DatabaseResultColumn"
    s-columnnames="ID,data,oggetto,inviata,notizia,Nome_ computer_remoto,Nome_utente,Tipo_browser,Data_e_or a,sport,T1,oggetto_notizia"
    s-column="sport" b-tableformat="FALSE" b-hashtml="FALSE" b-makelink="FALSE"
    clientside b-MenuFormat
    preview="&lt;font size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;sport&lt;font size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;"
    startspan --><%=FP_FieldVal(fp_rs,"sport")%><!--webbot
    bot="DatabaseResultColumn" endspan i-checksum="11720" --></p>


    <!--webbot bot="DatabaseResultColumn"
    s-columnnames="ID,data,oggetto,inviata,notizia,Nome_ computer_remoto,Nome_utente,Tipo_browser,Data_e_or a,sport,T1,oggetto_notizia"
    s-column="oggetto_notizia" b-tableformat="FALSE" b-hashtml="FALSE"
    b-makelink="FALSE" clientside b-MenuFormat
    preview="&lt;font size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;oggetto_notizia&lt;font size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;"
    startspan --><%=FP_FieldVal(fp_rs,"oggetto_notizia")%><!--webbot
    bot="DatabaseResultColumn" endspan i-checksum="42906" --></p>


    <!--webbot bot="DatabaseResultColumn"
    s-columnnames="ID,data,oggetto,inviata,notizia,Nome_ computer_remoto,Nome_utente,Tipo_browser,Data_e_or a,sport,T1,oggetto_notizia"
    s-column="notizia" b-tableformat="FALSE" b-hashtml="FALSE" b-makelink="FALSE"
    clientside b-MenuFormat
    preview="&lt;font size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;notizia&lt;font size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;"
    startspan --><%=FP_FieldVal(fp_rs,"notizia")%><!--webbot
    bot="DatabaseResultColumn" endspan i-checksum="16105" --></p>


    <!--webbot bot="DatabaseResultColumn"
    s-columnnames="ID,data,oggetto,inviata,notizia,Nome_ computer_remoto,Nome_utente,Tipo_browser,Data_e_or a,sport,T1,oggetto_notizia"
    s-column="inviata" b-tableformat="FALSE" b-hashtml="FALSE" b-makelink="FALSE"
    clientside b-MenuFormat
    preview="&lt;font size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;inviata&lt;font size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;"
    startspan --><%=FP_FieldVal(fp_rs,"inviata")%><!--webbot
    bot="DatabaseResultColumn" endspan i-checksum="15647" --></p>
    <!--webbot bot="DatabaseRegionEnd" b-tableformat="FALSE" b-menuformat="FALSE"
    u-dbrgn2="_fpclass/fpdbrgn2.inc" i-groupsize="1" clientside tag="BODY"
    preview="&lt;table border=0 width=&quot;100%&quot;&gt;&lt;tr&gt;&lt;td bgcolor=&quot;#FFFF00&quot;&gt;&lt;font color=&quot;#000000&quot;&gt;Fine dell'area risultati database.&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;TR&gt;&lt;TD VALIGN=MIDDLE&gt;&lt;NOBR&gt;&lt;INPUT TYPE=Button VALUE=&quot; |&lt; &quot;&gt;&lt;INPUT TYPE=Button VALUE=&quot; &lt; &quot;&gt;&lt;INPUT TYPE=Button VALUE=&quot; &gt; &quot;&gt;&lt;INPUT TYPE=Button VALUE=&quot; &gt;| &quot;&gt; [1/1]&lt;/NOBR&gt;&lt;BR&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;"
    startspan -->

  4. #4
    Utente di HTML.it L'avatar di Lak3d
    Registrato dal
    Aug 2006
    Messaggi
    1,031
    con Frontpage hai creato un database? :master:
    comunque se quello è il codice che genera Frontpage direi che è meglio se usi il vecchio e sano notepad...

  5. #5
    Originariamente inviato da Lak3d
    con Frontpage hai creato un database? :master:
    comunque se quello è il codice che genera Frontpage direi che è meglio se usi il vecchio e sano notepad...
    So. con FP si può.

  6. #6
    Originariamente inviato da pitman
    allora, il testo viene scritto dagli utenti. Io ho impostato una pagina con un modulo e una pagina dove visualizzano i loro post. Il tutto passa per un database che è quello che riesci a creare in automatico con frontpage.

    questo è il codice del modulo:

    nick name <!--webbot bot="Validation"
    b-value-required="TRUE" --><input type="text" name="nick" size="20"></font></p>
    <p align="center"><font face="Verdana"
    color="#429940">oggetto
    <!--webbot bot="Validation"
    b-value-required="TRUE" --><input type="text" name="oggetto" size="20"></font></p>
    <p align="center"><font face="Verdana"
    color="#429940">scrivi <!--webbot bot="Validation"
    b-value-required="TRUE" --><textarea rows="8" name="scivi" cols="26"></textarea></font></p>
    <p align="center"><font face="Verdana"
    color="#429940"><input type="submit" value="Invia" name="B1"
    style="color: #FFFFFF; font-family: Verdana; font-weight: bold; background-color: #429940">
    <input type="reset" value="Cancella" name="B2"
    style="color: #FFFFFF; font-family: Verdana; font-weight: bold; background-color: #429940">

    mentre questo il codice dell'area dei risultati:

    <!--webbot bot="DatabaseRegionStart"
    s-columnnames="ID,data,oggetto,inviata,notizia,Nome_ computer_remoto,Nome_utente,Tipo_browser,Data_e_or a,sport,T1,oggetto_notizia"
    s-columntypes="3,202,202,202,203,202,202,202,135,202 ,202,202"
    s-dataconnection="ar.pv" b-tableformat="FALSE" b-menuformat="FALSE"
    s-menuchoice s-menuvalue b-tableborder="FALSE" b-tableexpand="TRUE"
    b-tableheader="TRUE" b-listlabels="FALSE" b-listseparator="FALSE"
    i-listformat="0" b-makeform="FALSE" s-recordsource="Risultati"
    s-displaycolumns="data,sport,oggetto_notizia,notizia ,inviata" s-criteria
    s-order="[Data_e_ora] -"
    s-sql="SELECT * FROM Risultati ORDER BY Data_e_ora DESC" b-procedure="FALSE"
    clientside suggestedext="asp" s-defaultfields
    s-norecordsfound="Nessun record restituito." i-maxrecords="256" i-groupsize="1"
    botid="0" u-dblib="_fpclass/fpdblib.inc" u-dbrgn1="_fpclass/fpdbrgn1.inc"
    u-dbrgn2="_fpclass/fpdbrgn2.inc" tag="BODY"
    preview="&lt;table border=0 width=&quot;100%&quot;&gt;&lt;tr&gt;&lt;td bgcolor=&quot;#FFFF00&quot;&gt;&lt;font color=&quot;#000000&quot;&gt;Inizio dell'area risultati database.&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;"
    startspan -->
    <% if 0 then %>
    <SCRIPT Language="JavaScript">
    document.write("<div style='background: yellow; color: black;'>Impossibile visualizzare il contenuto del database nel componente Risultati database della pagina corrente. Il nome file della pagina deve avere estensione '.asp' e il sito Web deve trovarsi in un server che supporta Active Server Pages.</div>");
    </SCRIPT>
    <% end if %>
    <%
    fp_sQry="SELECT * FROM Risultati ORDER BY Data_e_ora DESC"
    fp_sDefault=""
    fp_sNoRecords="Nessun record restituito."
    fp_sDataConn="ar.pv"
    fp_iMaxRecords=256
    fp_iCommandType=1
    fp_iPageSize=1
    fp_fTableFormat=False
    fp_fMenuFormat=False
    fp_sMenuChoice=""
    fp_sMenuValue=""
    fp_sColTypes="&ID=3&data=202&oggetto=202&inviata=2 02&notizia=203&Nome_computer_remoto=202&Nome_utent e=202&Tipo_browser=202&Data_e_ora=135&sport=202&T1 =202&oggetto_notizia=202&"
    fp_iDisplayCols=5
    fp_fCustomQuery=False
    BOTID=0
    fp_iRegion=BOTID
    %>




    <!--webbot bot="DatabaseResultColumn"
    s-columnnames="ID,data,oggetto,inviata,notizia,Nome_ computer_remoto,Nome_utente,Tipo_browser,Data_e_or a,sport,T1,oggetto_notizia"
    s-column="data" b-tableformat="FALSE" b-hashtml="FALSE" b-makelink="FALSE"
    clientside b-MenuFormat
    preview="&lt;font size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;data&lt;font size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;"
    startspan --><%=FP_FieldVal(fp_rs,"data")%><!--webbot
    bot="DatabaseResultColumn" endspan i-checksum="5307" --></p>


    <!--webbot bot="DatabaseResultColumn"
    s-columnnames="ID,data,oggetto,inviata,notizia,Nome_ computer_remoto,Nome_utente,Tipo_browser,Data_e_or a,sport,T1,oggetto_notizia"
    s-column="sport" b-tableformat="FALSE" b-hashtml="FALSE" b-makelink="FALSE"
    clientside b-MenuFormat
    preview="&lt;font size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;sport&lt;font size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;"
    startspan --><%=FP_FieldVal(fp_rs,"sport")%><!--webbot
    bot="DatabaseResultColumn" endspan i-checksum="11720" --></p>


    <!--webbot bot="DatabaseResultColumn"
    s-columnnames="ID,data,oggetto,inviata,notizia,Nome_ computer_remoto,Nome_utente,Tipo_browser,Data_e_or a,sport,T1,oggetto_notizia"
    s-column="oggetto_notizia" b-tableformat="FALSE" b-hashtml="FALSE"
    b-makelink="FALSE" clientside b-MenuFormat
    preview="&lt;font size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;oggetto_notizia&lt;font size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;"
    startspan --><%=FP_FieldVal(fp_rs,"oggetto_notizia")%><!--webbot
    bot="DatabaseResultColumn" endspan i-checksum="42906" --></p>


    <!--webbot bot="DatabaseResultColumn"
    s-columnnames="ID,data,oggetto,inviata,notizia,Nome_ computer_remoto,Nome_utente,Tipo_browser,Data_e_or a,sport,T1,oggetto_notizia"
    s-column="notizia" b-tableformat="FALSE" b-hashtml="FALSE" b-makelink="FALSE"
    clientside b-MenuFormat
    preview="&lt;font size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;notizia&lt;font size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;"
    startspan --><%=FP_FieldVal(fp_rs,"notizia")%><!--webbot
    bot="DatabaseResultColumn" endspan i-checksum="16105" --></p>


    <!--webbot bot="DatabaseResultColumn"
    s-columnnames="ID,data,oggetto,inviata,notizia,Nome_ computer_remoto,Nome_utente,Tipo_browser,Data_e_or a,sport,T1,oggetto_notizia"
    s-column="inviata" b-tableformat="FALSE" b-hashtml="FALSE" b-makelink="FALSE"
    clientside b-MenuFormat
    preview="&lt;font size=&quot;-1&quot;&gt;&amp;lt;&amp;lt;&lt;/font&gt;inviata&lt;font size=&quot;-1&quot;&gt;&amp;gt;&amp;gt;&lt;/font&gt;"
    startspan --><%=FP_FieldVal(fp_rs,"inviata")%><!--webbot
    bot="DatabaseResultColumn" endspan i-checksum="15647" --></p>
    <!--webbot bot="DatabaseRegionEnd" b-tableformat="FALSE" b-menuformat="FALSE"
    u-dbrgn2="_fpclass/fpdbrgn2.inc" i-groupsize="1" clientside tag="BODY"
    preview="&lt;table border=0 width=&quot;100%&quot;&gt;&lt;tr&gt;&lt;td bgcolor=&quot;#FFFF00&quot;&gt;&lt;font color=&quot;#000000&quot;&gt;Fine dell'area risultati database.&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;&lt;TR&gt;&lt;TD VALIGN=MIDDLE&gt;&lt;NOBR&gt;&lt;INPUT TYPE=Button VALUE=&quot; |&lt; &quot;&gt;&lt;INPUT TYPE=Button VALUE=&quot; &lt; &quot;&gt;&lt;INPUT TYPE=Button VALUE=&quot; &gt; &quot;&gt;&lt;INPUT TYPE=Button VALUE=&quot; &gt;| &quot;&gt; [1/1]&lt;/NOBR&gt;&lt;BR&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;"
    startspan -->
    Mi dispiace, ma quello è codice proprietario di Microsoft e del suo Front Page e non capisco dove mettere mani. Non è Classic ASP, insomma.
    Quello che ti serve fare è una Replace sulla variabile che contiene il testo del messaggio da visualizzare, sostituendo il carattere vbCrLF (Visual Basic Carrier Return Line Feed) con il tag Break
    HTML.
    Eccoti un esempio:
    codice:
    testo = recordset("campoTestoDaDB")
    testo = replace(testo,vbCrLf,"
    ")
    response.write testo

  7. #7
    grazie. Però così dovrei modificare tutti i messaggi che il database rilascia nell'area dei risultati? Se vuoi dare un occhio questo è il link praticamente in questa area vengono estratti i post che vengono inviati al database. Come puoi notare non c'è testo a capo ma continua tutto sulla stessa riga. Io sono alle prime armi quindi di codice ne capisco ben poco.

  8. #8
    Utente di HTML.it L'avatar di Lak3d
    Registrato dal
    Aug 2006
    Messaggi
    1,031
    Originariamente inviato da Mems
    So. con FP si può.
    eh?

  9. #9
    Originariamente inviato da Lak3d
    eh?
    Front Page permette di creare db Access con tabelle e campi, tutto in un wizard.

  10. #10
    Utente di HTML.it L'avatar di Lak3d
    Registrato dal
    Aug 2006
    Messaggi
    1,031
    VVoVe:

    ma non ha già Access una semplicissima interfaccia grafica?

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.