Subj : Getting started with Javascript and Sync, where to go?
To   : Sam Alexander
From : Nightfox
Date : Sun Apr 12 2015 08:55 am

 Re: Getting started with Javascript and Sync, where to go?
 By: Sam Alexander to All on Sun Apr 12 2015 08:28:17

SA> I'm just starting to get more into some Javascript programming at work,
SA> and I'd like to start using some of this to write Sync add-ins. Problem
SA> though is I'm not sure where to start. Most of the javascript I write at
SA> work is for web, so are there any tutorials or simple examples showing how
SA> to write basic menus or screens for Sync? Like showing a list, arrowing
SA> down or selecting the item by letter, then refreshing the screen with new
SA> content, that kind of stuff.

I was the same way, I wanted to learn JavaScript (since it's a commonly-used
language), and writing some JavaScript mods for Synchronet helped me understand
the language better.
I haven't seen specific tutorials on Synchronet JavaScript, but I think it can
be good to look at existing Sync JS mods as an example.  If you want an example
of item selection from a list & using arrow keys to go up & down, as you
mentioned, one of my mods is a couple of file & message area choosers that use
a lightbar interface:
ftp://www.digitaldistortionbbs.com/bbs/SYNC_JS/ddac_107.zip

Other than looing at other Sync mods, if you've done some programming already,
I think a good place to start is to learn about the language and then try
making some simple things with it (in a sort of "sandbox" project) for
practice.  There are lots of JavaScript tutorials online - Almost all are
geared toward a web environment though, but they still can be useful in getting
to know the language.  Once you start to get familiar with JavaScript, there's
some good documentation on Synchronet's JavaScript object model, which lists
all the objects & functions that Synchronet provides to JavaScript for
interacting with Synchronet:
http://www.synchro.net/docs/jsobjs.html

SA> Also is it easy to save data back to however Sync stores data? I have a
SA> few ideas of add-ins I'd like towrite, but most will require saving user
SA> data and pulling data from the user's profile.

That Synchronet JavaScript page I linked above describes everything Synchronet
makes available to JavaScript.

Nightfox

---
� Synchronet � Digital Distortion BBS - digitaldistortionbbs.com