Dsy Network www | forum | my | didattica | howto | wiki | el goog | stats | blog | dona | rappresentanti
Homepage
 Register   Calendar   Members  Faq   Search  Logout 
.dsy:it. : Powered by vBulletin version 2.3.1 .dsy:it. > Community > Tech > [PHP E XML] Guestbook
  Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
JaM
######

User info:
Registered: Jun 2002
Posts: 3604 (0.42 al dì)
Location: everywhere, anywhere, elsewhere...
Corso: ComDig
Anno: dott.??
Time Online: 62 Days, 16:55:46 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
[PHP E XML] Guestbook

Sto facendo un guestbook con php e xml e mi sono imbattuto in un paio di problemi che non ho capito come risolvere...

1- Ho un javascript che mi aggiunge nella textarea del messaggio il codice per le faccine, solo che quando clicco su una di esse tutte le animazioni delle gif nell'elenco si interrompono. Non e' un prolema serio ma e' piuttosto fastidioso esteticamente...
suggerimenti?

2- Quando scrivo il messaggio nella textarea se vado a capo nell'xm mi compaiono dei & # 13 ; che pero' non riesco a far interpretare al parser che crea i tag html. Ho provato a usare anche la funzione str_replace sulla stringa prima di inserirla nell'xml per sostituirli con dei [br] che verranno parsati in seguito, ma non li legge. C'e' qualche carattere speciale da usare per farglieli capire?

gracias :)

17-04-2004 10:35
Click Here to See the Profile for JaM Click Here to See the Blog of JaM Click here to Send JaM a Private Message Visit JaM's homepage! Find more posts by JaM Add JaM to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Flavia
Regina degli avatar

User info:
Registered: Sep 2002
Posts: 3228 (0.38 al dì)
Location: Bergamo
Corso: TI.COM
Anno: Finito! :D
Time Online: 25 Days, 9:12:10 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Chiedi a Joker..
:asd:

__________________
I ragazzi che si amano si baciano in piedi contro le porte della notte, e la gente che passa li punta con il dito, ma i ragazzi che si amano non ci sono per nessuno ed è la loro ombra soltanto che trema nella notte.
Stimolando la rabbia dei passanti, la loro rabbia il loro disprezzo le risa la loro invidia.
I ragazzi che si amano non ci sono per nessuno.
Essi sono altrove, molto più lontano della notte, molto più in alto del giorno, nell'abbagliante splendore del loro amore.

:date:

17-04-2004 10:42
Click Here to See the Profile for Flavia Click Here to See the Blog of Flavia Click here to Send Flavia a Private Message Find more posts by Flavia Add Flavia to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
ripe
- up in the mountains -

User info:
Registered: Jun 2002
Posts: 9469 (1.10 al dì)
Location: Cinisellooo
Corso: TICO TICO
Anno: Primo
Time Online: 61 Days, 2:33:39 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Ci avevo provato anche io, con Asp e Xml (pur non rilevando il tuo problema). Il difetti vero di questa configurazione è che quando il file che ospita i commenti del tuo libro diventerà abbastanza grosso, ci metterà una vita a leggere le informazioni all'interno, o almeno a me andava così! :/

__________________
«And if you ever smell christian blood up in the mountains, then get your axe and chop them down!»

17-04-2004 12:18
Click Here to See the Profile for ripe Click Here to See the Blog of ripe Click here to Send ripe a Private Message Find more posts by ripe Add ripe to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
DeepBlue
tired guy

User info:
Registered: Sep 2003
Posts: 4258 (0.52 al dì)
Location: CSN
Corso: Info tlc
Anno:
Time Online: 52 Days, 8:40:31 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
Re: [PHP E XML] Guestbook

Originally posted by JaM
Sto facendo un guestbook con php e xml e mi sono imbattuto in un paio di problemi che non ho capito come risolvere...

1- Ho un javascript che mi aggiunge nella textarea del messaggio il codice per le faccine, solo che quando clicco su una di esse tutte le animazioni delle gif nell'elenco si interrompono. Non e' un prolema serio ma e' piuttosto fastidioso esteticamente...
suggerimenti?

Questo succede sotto Explorer vero? Credo che non ci sia rimedio :(

2- Quando scrivo il messaggio nella textarea se vado a capo nell'xm mi compaiono dei & # 13 ; che pero' non riesco a far interpretare al parser che crea i tag html. Ho provato a usare anche la funzione str_replace sulla stringa prima di inserirla nell'xml per sostituirli con dei [br] che verranno parsati in seguito, ma non li legge. C'e' qualche carattere speciale da usare per farglieli capire?

Mmmm....perché non usi la funzione nl2br di php ? Ti converte automaticamente tutti i new line in <br />
http://www.php.net/manual/en/function.nl2br.php

__________________
~ get Debian! ~ get FreeBSD! ~ get OpenBSD! ~

Last edited by DeepBlue on 17-04-2004 at 13:54

17-04-2004 13:52
Click Here to See the Profile for DeepBlue Click Here to See the Blog of DeepBlue Click here to Send DeepBlue a Private Message Find more posts by DeepBlue Add DeepBlue to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
JaM
######

User info:
Registered: Jun 2002
Posts: 3604 (0.42 al dì)
Location: everywhere, anywhere, elsewhere...
Corso: ComDig
Anno: dott.??
Time Online: 62 Days, 16:55:46 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
Re: Re: [PHP E XML] Guestbook

Originally posted by DeepBlue
Questo succede sotto Explorer vero? Credo che non ci sia rimedio :(

si explorer... :(

Mmmm....perché non usi la funzione nl2br di php ? Ti converte automaticamente tutti i new line in <br />
http://www.php.net/manual/en/function.nl2br.php

uh grazie... questa funzione mi era sfuggita
poi la provo.... :D

Originally posted by ripe
Ci avevo provato anche io, con Asp e Xml (pur non rilevando il tuo problema). Il difetti vero di questa configurazione è che quando il file che ospita i commenti del tuo libro diventerà abbastanza grosso, ci metterà una vita a leggere le informazioni all'interno, o almeno a me andava così! :/

eh lo so... pero' su altervista non posso ancora attivare il database :D
e poi no credo di avere questi grossi volumi di dati, al massimo in futuro splittero' l'xml del guestbook e quello delle news in file diversi, tanto li' dentro non c'e' da fare ricerche, si leggono e basta :D

17-04-2004 14:02
Click Here to See the Profile for JaM Click Here to See the Blog of JaM Click here to Send JaM a Private Message Visit JaM's homepage! Find more posts by JaM Add JaM to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
JaM
######

User info:
Registered: Jun 2002
Posts: 3604 (0.42 al dì)
Location: everywhere, anywhere, elsewhere...
Corso: ComDig
Anno: dott.??
Time Online: 62 Days, 16:55:46 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ancora meglio della nl2br (grazie ancora per lo spunto... non avevo pensato a far controllare con \r\n):
ho messo

code:
$testo = str_replace("\r\n", "[BR]", $testo);

mi mette direttamente i tag [BR] nell'xml che poi verranno sistemati in lettura

Last edited by JaM on 17-04-2004 at 14:20

17-04-2004 14:17
Click Here to See the Profile for JaM Click Here to See the Blog of JaM Click here to Send JaM a Private Message Visit JaM's homepage! Find more posts by JaM Add JaM to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
ripe
- up in the mountains -

User info:
Registered: Jun 2002
Posts: 9469 (1.10 al dì)
Location: Cinisellooo
Corso: TICO TICO
Anno: Primo
Time Online: 61 Days, 2:33:39 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
Re: Re: Re: [PHP E XML] Guestbook

Originally posted by JaM
tanto li' dentro non c'e' da fare ricerche, si leggono e basta :D


Vero, hai perfettamente ragione! :-D

__________________
«And if you ever smell christian blood up in the mountains, then get your axe and chop them down!»

17-04-2004 14:55
Click Here to See the Profile for ripe Click Here to See the Blog of ripe Click here to Send ripe a Private Message Find more posts by ripe Add ripe to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 17:58.    Post New Thread    Post A Reply
  Last Thread   Next Thread
Show Printable Version | Email this Page | Subscribe to this Thread | Add to Bookmarks

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is ON
 

Powered by: vBulletin v2.3.1 - Copyright ©2000 - 2002, Jelsoft Enterprises Limited
Mantained by dsy crew (email) | Collabora con noi | Segnalaci un bug | Archive | Regolamento | Licenze | Thanks | Syndacate
Pagina generata in 0.136 seconds (59.80% PHP - 40.20% MySQL) con 25 query.