marz Posted August 16, 2006 Report Share Posted August 16, 2006 lieta tāda. ar js uztaisu textarea, lietotājs saraksta kkādu informāciju, tiek izmantots 'enter' lai nokļūtu jaunā rindā. ar ajax savācot informāciju no formas, man vajag, lai kkādā veidā redzu, kur ir izmantots 'enter'. nu tad jautājums skaidrs, kā to izdarīt? + kad selects no db tad jāattēlo teksts ar atrastajiem enteriem. Link to comment Share on other sites More sharing options...
Delfins Posted August 16, 2006 Report Share Posted August 16, 2006 nafig tur kaut ko redzēt? bliez pataisno ar visiem enteriem un miers Link to comment Share on other sites More sharing options...
Grey_Wolf Posted August 16, 2006 Report Share Posted August 16, 2006 marz --> RTFM .... HTML tags <pre> un </pre> Link to comment Share on other sites More sharing options...
Blitz Posted August 16, 2006 Report Share Posted August 16, 2006 tadu baze vins saglabaa liekas ar visiem "\n", un pie izvilksanas vaig tikai nl2br(). Link to comment Share on other sites More sharing options...
marz Posted August 17, 2006 Author Report Share Posted August 17, 2006 (edited) iespejamaks man liekas <pre></pre>, jo tomer darbojoties ar ajax datus padodu pa augshu, un tada gadijuma, Delfins-->blieshana pa taisno nestrada. vel pameginashu. paldies. Edited August 17, 2006 by marz Link to comment Share on other sites More sharing options...
Grey_Wolf Posted August 17, 2006 Report Share Posted August 17, 2006 Delfins-->blieshana pa taisno nestrada. vel pameginashu. paldies. Ja tu vinjus njem no DB tad kas tev liedz vinjus apstraadaat? Vel labaak, aatraak, ir apstraadaat PIRMS ievietoshanas DB... Link to comment Share on other sites More sharing options...
goldy Posted August 17, 2006 Report Share Posted August 17, 2006 nez kāds tam sakars vēl ar ajax? pirms liec iekšā datus DB repleiso visus enterus ar <br /> un visas tavas problēmas būs atrisinātas. kā jau Grey_Wolf rakstīja. Link to comment Share on other sites More sharing options...
Recommended Posts