#1
|
|||
|
|||
![]()
Can I add a newline in alert()?
Please, How? |
#2
|
||||
|
||||
![]()
@Tedolly: wait for next core update, then use simple new line, eg
Code:
alert("Test1\nTest2"); Code:
alert("<html>Test1<br>Test2</html>");
__________________
JD-Dev & Server-Admin Last edited by Jiaz; 15.04.2025 at 08:18. |
#3
|
||||
|
||||
![]()
@Tedolly: Update is live
__________________
JD-Dev & Server-Admin |
#4
|
|||
|
|||
![]()
VERY hilfreich, thx Jiaz!
Nur aus Interesse: Ist \n neu oder eine Korrektur? Weil, hier sehe ich überrascht ein Script, das \n verwendet: https://board.jdownloader.org/showpo...&postcount=782 Ich hatte alle Möglichkeiten, die ich kannte, ausprobiert, natürlich auch \n. Alles ohne Erfolg. Last edited by Tedolly; 20.04.2025 at 02:38. |
#5
|
|||
|
|||
![]()
\n is the new line character which used to work fine in alert method in the past (not sure when it broke).
|
#6
|
||||
|
||||
![]()
@mgpai: yes, it broke with an update that allowed support for more complex objects to json representation
@Tedolly: \n = newline ging in der Vergangenheit, ging aber durch einen Umbau verloren. Und durch deine Meldung behoben und zusätzlich eben auch *einfaches* html dazu. Vor dem Update ging kein Newline mehr.
__________________
JD-Dev & Server-Admin |
![]() |
Thread Tools | |
Display Modes | |
|
|