You are not logged in.

HSFighter

Administrator

  • "HSFighter" started this thread

Posts: 1,517

Location: Flensburg

Occupation: Industrieelektroniker

wcf.user.option.userOption53: Nein

  • Send private message

1

Thursday, October 11th 2007, 7:05pm

[html] Textarea mit Zeilenumbruch

Hallo Leute,

ist zwar html, aber ich versuche es hier trozdem mal.
Vieleicht hat ja schon mal jemand gleichen Erfahrungen damit gemacht?

Ich habe ein Textfeld und einen Text der 1 Zeile lang ist.

Source code

1
<textarea>Hallo, ich bin jetzt da!</textarea>
Nun möchte ich gerne einen Zeilenumbruch einbauen.
Aber egal was ich benutze es wird immer als text da gestellt.

Source code

1
<textarea>Hallo, \r\n ich bin jetzt da!</textarea>
Es kommt kein Zeilenumbruch sondern das "\r\n" wird mit angezeigt.
Gibt es eine Möglichkeit einen Zeilenumbruch in das Textfeld ein zu fügen? keinahn
p.s. <br> geht auch nicht! :(

MfG HSFighter



-
Anti Cheat: www.smacbans.com
Kein direkter Support per PM (nur auf Anforderung)

Isias

Intermediate

Posts: 460

Occupation: Student

  • Send private message

2

Thursday, October 11th 2007, 8:21pm

Re: [html] Textarea mit Zeilenumbruch

Sollte sein

Source code

1
hallo,<br>ich bin jetzt da
Wenn du mit HTML nicht so fit bist, verwende NVU Composer als graphisches Frontend, der HTML Editor ist eigentlich recht sauber. Ansonsten gibt es noch SELFHTML.org als Referenz.

Chrisber

Administrator

Posts: 1,030

Location: localhost

wcf.user.option.userOption53: Ja

  • Send private message

3

Friday, October 12th 2007, 10:54am

Re: [html] Textarea mit Zeilenumbruch

Wie wärs einfach mal mit Enter drücken big-lol ?

Source code

1
2
3
<textarea rows="3">Hallo,

ich bin jetzt da!</textarea>
Und das letzte, was gesagt wird, wenn die Welt untergeht, ist: das ist technisch unmöglich.

HSFighter

Administrator

  • "HSFighter" started this thread

Posts: 1,517

Location: Flensburg

Occupation: Industrieelektroniker

wcf.user.option.userOption53: Nein

  • Send private message

4

Monday, October 15th 2007, 2:24pm

Re: [html] Textarea mit Zeilenumbruch

Quoted from ""Chrisber""

Wie wärs einfach mal mit Enter drücken big-lol ?

Source code

1
2
3
<textarea rows="3">Hallo,

ich bin jetzt da!</textarea>

Geht nicht das der Text eine Variable ist.

Habe eine lösung gefunden ^^

Source code

1
2
$br = '
';


Thx, HSFighter



-
Anti Cheat: www.smacbans.com
Kein direkter Support per PM (nur auf Anforderung)

Chrisber

Administrator

Posts: 1,030

Location: localhost

wcf.user.option.userOption53: Ja

  • Send private message

5

Monday, October 15th 2007, 2:30pm

Re: [html] Textarea mit Zeilenumbruch

Source code

1
$br = "\n";


So long, Chris
Und das letzte, was gesagt wird, wenn die Welt untergeht, ist: das ist technisch unmöglich.