Visualizzazione dei risultati da 1 a 5 su 5

Discussione: risultato textarea

  1. #1

    risultato textarea

    Salve a tutti, ho un problema che mi affligge da giorni ormai. Ho una textarea associato ad un editor esterno (fckeditor). la textarea presenta gli strumenti di formattazione, e genera correttamente html, ma nella pagina dove leggo il risultato, invece di mostrarmi il testo formattato, mi stampa a video il codice html.... aiutatemi questa è la pagina:
    <html>

    <head>
    <title>NEWS</title>
    </head>
    <body>

    <%
    ID = Request("ID")
    If not ISNumeric(ID) or Len(ID) = 0 Then
    ID = 1
    End IF

    IF ID = 0 Then
    ID = 1
    End IF
    url_DB = "driver={Microsoft Access Driver (*.mdb)};dbq=" & server.mappath("/mdb-database/database.mdb")
    Set Conn = Server.CreateObject("ADODB.Connection")
    conn.Open url_DB
    Set RecSet = Server.CreateObject("ADODB.Recordset")

    SQL = "SELECT * FROM NEWS WHERE ID = " & ID &""
    RecSet.Open SQL, Conn, adOpenStatic, adLockOptimistic
    If RecSet.Eof = False Then

    %>


    <font face="Verdana" size="4">&gt; <%=RecSet("titolo")%> </font><font face="Verdana" size="2">di
    <%=RecSet("autore")%>
    - <%=RecSet("data")%></font></p>


    <font face="Verdana" size="2"><%=RecSet("contenuto")%></font></p>


    </p>
    <%
    End IF

    RecSet.Close
    Conn.Close
    Set Conn = Nothing
    Set RecSet = Nothing
    %>

    </body>

    </html>

  2. #2
    Utente di HTML.it L'avatar di willybit
    Registrato dal
    May 2001
    Messaggi
    4,367
    Ciao tanuccio1,

    come salvi il contenuto della textarea/fckeditor? Non è che magari fai un HTMLEncode?

  3. #3
    Originariamente inviato da willybit
    Ciao tanuccio1,

    come salvi il contenuto della textarea/fckeditor? Non è che magari fai un HTMLEncode?
    Grazie dell'interessamento willybit. No dove è presente la textarea non faccio un htmlencode. Questa sotto è la pagina dove c'è la textarea dacci uno sguardo.. aspetto fiducioso un tuo consiglio grazie!!!

    <%
    ' CONTROLLA SE SI E' IDENTIFICATI
    IF session("amministratore")<>true then
    Response.Redirect "index.asp"
    End IF
    %>
    <html>

    <head>
    <title>GESTIONE NEWS</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    </head>

    <body>



    <font face="Verdana" size="4">&gt; Aggiungi News</font></p>


    <form method="POST" action="News_DB.asp?tipo=aggiungi">

    <table border="0" cellpadding="0" cellspacing="0" width="100%">
    <tr>
    <td width="19%"><font face="Verdana" size="2">Titolo news:</font></td>
    <td width="81%"><font face="Verdana" size="2"><input type="text" name="titolo" size="20"></font></td>
    </tr>
    <tr>
    <td width="19%"><font face="Verdana" size="2">Contenuto news:</font></td>

    <script type="text/javascript" src="/FCKeditor/fckeditor.js"></script>
    <script type="text/javascript">
    window.onload = function()
    {
    var oFCKeditor = new FCKeditor( 'contenuto' ) ;
    oFCKeditor.BasePath = "/FCKeditor/" ;
    oFCKeditor.ReplaceTextarea() ;
    }
    </script>
    <td width="81%"><textarea rows="7" name="contenuto" cols="53"></textarea></td>
    </tr>
    <tr>
    <td width="19%"><font face="Verdana" size="2">Autore news:</font></td>
    <td width="81%"><font face="Verdana" size="2"><input type="text" name="autore" size="20"></font></td>
    </tr>
    <tr>
    <td width="100%" colspan="2"><font face="Verdana" size="2"><input type="submit" value="Aggiungi news" name="B1"><input type="reset" value="Reimposta" name="B2"></font></td>
    </tr>
    </table>
    </form>


    <a href="Gestione_news.asp"><font face="Verdana" size="2">Torna alla
    Gestione delle news
    </font></a></p>

    </body>

    </html>

  4. #4
    Originariamente inviato da willybit
    Ciao tanuccio1,

    come salvi il contenuto della textarea/fckeditor? Non è che magari fai un HTMLEncode?
    Cavolo hai ragione credo che il problema sia proprio quello che dici tu. nel file asp che aggiunge dati al database c'è un HTMLencode. ho provato ad eliminarlo ma il risultato è nessuna visualizzazione dei dati aggiunti. Come posso risolvere?

  5. #5
    Risolto grazie del suggerimento

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 © 2026 vBulletin Solutions, Inc. All rights reserved.