• Getting started with Javascript and Sync, where to go?

    From Sam Alexander@VERT to All on Sun Apr 12 08:28:17 2015
    Hi all,ããI'm just starting to get more into some Javascript programming at work, and I'dãlike to start using some of this to write Sync add-ins. Problem though is I'mãnot sure where to start. Most of the javascript I write at work is for web, soãare there any tutorials or simple examples showing how to write basic menus orãscreens for Sync? Like showing a list, arrowing down or selecting the item byãletter, then refreshing the screen with new content, that kind of stuff.ããAlso is it easy to save data back to however Sync stores data? I have a fewãideas of add-ins I'd like towrite, but most will require saving user data andãpulling data from the user's profile.ããThanks for any suggestions or ideas. Take care.ãSamãã---ã þ Synchronet þ 2400 Baud BBS - Waco, Tx - telnet://2400baud.netã
  • From Nightfox@VERT/DIGDIST to Sam Alexander on Sun Apr 12 08:55:44 2015
    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ã
  • From Sam Alexander@VERT to Nightfox on Sun Apr 12 12:53:52 2015
    Re: Getting started with Javascript and Sync, where to go?ã By: Nightfox to Sam Alexander on Sun Apr 12 2015 08:55 amãã Ni> Re: Getting started with Javascript and Sync, where to go?ã Ni> By: Sam Alexander to All on Sun Apr 12 2015 08:28:17ã Ni> ftp://www.digitaldistortionbbs.com/bbs/SYNC_JS/ddac_107.zipã Ni> That Synchronet JavaScript page I linked above describes everythingã Ni> Synchronet makes available to JavaScript.ããI was hoping you'd reply, I just started reading through some of your JS appsãlast night, and I even installed SlyEdit on the board I just setup this weekendãto see how it works. It's an example of the types of Sync apps I really wantãto learn how to write. I read through some of your scripts, but I didn't checkãout the Area Chooser you linked to -- downloading it now.ããThanks --ãSamãã---ã þ Synchronet þ 2400 Baud BBS - Waco, Tx - telnet://2400baud.netã
  • From Deuce@VERT/SYNCNIX to Sam Alexander on Tue Apr 14 12:10:47 2015
    Re: Getting started with Javascript and Sync, where to go?ã By: Sam Alexander to All on Sun Apr 12 2015 08:28 amãã > Also is it easy to save data back to however Sync stores data? I have a fewã > ideas of add-ins I'd like towrite, but most will require saving user dataã > and pulling data from the user's profile.ããThere's a few ways of varying degrees of "easy".ããSimplest for some stuff is the ini*() methods of the File class. More complex
    is the basic file I/O stuff.ããThen there's the recordfile stuff... looks like it's not documented though, so
    I wouldn't reccomend it unless you need to store data in a binary format.ããNext up would be using the File class and JSON object to read/write JSON files.ããAfter that would be the JSON DB stuff from mcmlxxix. Quite nice, but has some
    configuration requirements and a couple gotchas.ãã---ãhttp://DuckDuckGo.com/ a better search engine that respects your privacy.ã þ Synchronet þ My Brand-New BBS (All the cool SysOps run STOCK!)ã