JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 15.04.2025, 06:17
Tedolly Tedolly is offline
Bandwidth Beast
 
Join Date: Dec 2015
Posts: 144
Default Newline in alert()?

Can I add a newline in alert()?
Please, How?
Reply With Quote
  #2  
Old 15.04.2025, 08:13
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 82,271
Default

@Tedolly: wait for next core update, then use simple new line, eg
Code:
alert("Test1\nTest2");
alternativ
Code:
alert("<html>Test1<br>Test2</html>");
__________________
JD-Dev & Server-Admin

Last edited by Jiaz; 15.04.2025 at 08:18.
Reply With Quote
  #3  
Old 15.04.2025, 16:29
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 82,271
Default

@Tedolly: Update is live
__________________
JD-Dev & Server-Admin
Reply With Quote
  #4  
Old 20.04.2025, 00:53
Tedolly Tedolly is offline
Bandwidth Beast
 
Join Date: Dec 2015
Posts: 144
Default

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.
Reply With Quote
  #5  
Old 20.04.2025, 11:49
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,689
Default

\n is the new line character which used to work fine in alert method in the past (not sure when it broke).
Reply With Quote
  #6  
Old 20.04.2025, 20:38
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 82,271
Default

@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
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 17:30.
Provided By AppWork GmbH | Privacy | Imprint
Parts of the Design are used from Kirsch designed by Andrew & Austin
Powered by vBulletin® Version 3.8.10 Beta 1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.