Subj : String functions? To : Sampsa From : Digital Man Date : Wed Jan 28 2015 05:20 pm Re: String functions? By: Sampsa to All on Wed Jan 28 2015 03:03 pm > I've been dabbling in Synchronet JS lately and noticed that the methods > that Syncro provides seem to be a subset of those in the standard. It appears you're running Synchronet v3.15b, which uses an older version of the Mozilla-JavaScript engine (SpiderMonkey). Upgrade to v3.16a (The currently development build) and you'll get a much newer JavaScript engine as well. > For example, there is no trim() method. There very well might be in the newer JavaScript engine. > My immediate question is - how do I trim whitespace from a string like > trim() does? > > Is there a separate string handling object or something? "String" is the standard JavaScript object for handling strings. Synchronet also includes some C-like global functions for string handling, like "truncsp" for truncating white-space off the end of a string: http://synchro.net/docs/jsobjs.html digital man Synchronet "Real Fact" #38: Synchronet first supported Windows NT v6.x (a.k.a. Vista/Win7) w/v3.14a (2006). Norco, CA WX: 67.6øF, 46.0% humidity, 8 mph WSW wind, 0.00 inches rain/24hrs .