Re: JS Formattingã By: DesotoFireflite to Digital Man on Sun Jul 10 2022 07:50 pmãã > Re: JS Formattingã > By: Digital Man to DesotoFireflite on Sun Jul 10 2022 02:40 pmã >ã > DM> Re: JS Formattingã > DM> By: DesotoFireflite to All on Sun Jul 10 2022 07:24 amã >ã > >> I added a message option to send me an email everytime a new user wasã > >> verified by the emailvar.js. It's working correctly, and I'm veryã > >> satisfied with my efforts to make it work. The message it send to myã > >> email is as follows:ã >ã > >> -+- Snipit ----ã > >> msgtxt = "New Member, Alias: " + user.alias + ", #: " +ã > >> String(user.number) + ", Joined " + system.name + " Today " + (newã > >> Date()); -+- Snipit ----ã >ã > >> expands as follows in the message:ã >ã > >> New Member, Alias: Tuff, #: 191, Joined Valhalla Home Services Todayã > >> Sun Jul 10 7:15:32ã >ã > >> I would rather it to be somewhat like this:ã >ã > >> New Member Joined Valhalla Home Services Today Sun Jul 10 7:15:32.ã >ã > >> Alias: Tuffã > >> Number: 191ã >ã > >> Is there a way to do this. For the like of me, I can't find a way toã > >> do this formatting. I'm successful in doing it in one line, but I'mã > >> trying to learn more. Thanks in advance.ã >ã > DM> msgtxt = "New Member Joined " + system.name + " Today " + new Date() +ã > DM> ".\r\n"; msgtxt += "\r\n Alias: " + user.alias;ã > DM> msgtxt += "\r\n Number: " + user.number;ã > DM> msgtxt += "\r\n";ã >ã > WOW, that was simple enough. I had no idea you could do it this way, butã > after looking at it, it makes perfect sense.ã >ã > I wish there was a tips and tricks info site on js, that I could explore.ããHere are some for this particular topic:ã
https://www.w3schools.com/js/js_strings.aspãhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Stringãã > Thanks again for the assist.ããNo problem.ã-- ã digital man (rob)ããSling Blade quote #8:ãKarl Childers: I don't reckon I got no reason to kill nobody.ãNorco, CA WX: 80.4øF, 49.0% humidity, 2 mph E wind, 0.00 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã