• Access to the Upload/Download Batch List from Javascript

    From High Spirit@VERT/DCBBS to All on Fri Jan 5 12:29:40 2018
    Is there any way of reading/writing the Upload/Download Queues from within Javascript? (eg: Synchronet C variables: batdn_total, batdn_dir, batdn_cdt, batdn_alt, batdn_size, batdn_offset). I am trying to customize my own batch file menu but it looks as though the queue is only stored in memory until the download is initiated.

    I am currently using the bbs.batch_add_list() command to add files to the download queue but it searches each file area for the filenames provided and I can forsee an issue if there are more than 1 file with the same name in different areas. A Javascript command straight to the C Source function addotbatdl() would be great as it checks all the user limits, requirements, etc before adding the file to the queue without searching the file areas.

    -- High Spirit Digital Realms Main - connect.digitalrealms.net 23
    Digital Realms C=64 - connect.digitalrealms.net 6400

    ---
    þ Synchronet þ Digital Creation BBS -- bbs.digitalcreationbbs.com:23
  • From Digital Man@VERT to High Spirit on Fri Jan 5 10:58:19 2018
    Re: Access to the Upload/Download Batch List from Javascript
    By: High Spirit to All on Fri Jan 05 2018 12:29 pm

    Is there any way of reading/writing the Upload/Download Queues from within Javascript? (eg: Synchronet C variables: batdn_total, batdn_dir, batdn_cdt, batdn_alt, batdn_size, batdn_offset).

    Sorry, they are not.

    I am trying to customize my own batch
    file menu but it looks as though the queue is only stored in memory until the download is initiated.

    I am currently using the bbs.batch_add_list() command to add files to the download queue but it searches each file area for the filenames provided and I can forsee an issue if there are more than 1 file with the same name in different areas. A Javascript command straight to the C Source function addotbatdl() would be great as it checks all the user limits, requirements, etc before adding the file to the queue without searching the file areas.

    I'll add it to the todo list. addtobatdl() requires a pre-filled file_t as an argument and I don't have any JS-methods to create or operate on file_t's. So it's a little more involved than just putting a JS wrapper around addtobatdl().

    digital man

    This Is Spinal Tap quote #35:
    Jeanine Pettibone: You don't do heavy metal in Dubly, you know.
    Norco, CA WX: 69.9øF, 55.0% humidity, 0 mph SSE wind, 0.00 inches rain/24hrs ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From High Spirit@VERT/DCBBS to Digital Man on Sat Jan 6 15:20:20 2018
    Re: RE: Access to the Upload/Download Batch List from Javascript
    By: Digital Man to High Spirit on Fri Jan 05 2018 10:58 am

    Is there any way of reading/writing the Upload/Download Queues from
    within Javascript? (eg: Synchronet C variables: batdn_total,
    batdn_dir, batdn_cdt, batdn_alt, batdn_size, batdn_offset).

    Sorry, they are not.

    Any chance they could be accessable in the future?

    I'll add it to the todo list. addtobatdl() requires a pre-filled file_t as an argument and I don't have any JS-methods to create or operate on file_t's. So it's a little more involved than just putting a JS wrapper around addtobatdl().

    Sounds good. I will work around it for the time being. :)

    -- High Spirit Digital Realms Main - connect.digitalrealms.net 23
    Digital Realms C=64 - connect.digitalrealms.net 6400

    ---
    þ Synchronet þ Digital Creation BBS -- bbs.digitalcreationbbs.com:23
  • From Digital Man@VERT to High Spirit on Sat Jan 6 15:10:04 2018
    Re: RE: Access to the Upload/Download Batch List from Javascript
    By: High Spirit to Digital Man on Sat Jan 06 2018 03:20 pm

    Re: RE: Access to the Upload/Download Batch List from Javascript
    By: Digital Man to High Spirit on Fri Jan 05 2018 10:58 am

    Is there any way of reading/writing the Upload/Download Queues from
    within Javascript? (eg: Synchronet C variables: batdn_total,
    batdn_dir, batdn_cdt, batdn_alt, batdn_size, batdn_offset).

    Sorry, they are not.

    Any chance they could be accessable in the future?

    Maybe. I the batch management via JS a lot of thought.

    I'll add it to the todo list. addtobatdl() requires a pre-filled file_t as an argument and I don't have any JS-methods to create or operate on file_t's. So it's a little more involved than just putting a JS wrapper around addtobatdl().

    Sounds good. I will work around it for the time being. :)

    Okay. It's on the todo list now at least.

    digital man

    This Is Spinal Tap quote #22:
    David St. Hubbins: Here lies David St. Hubbins... and why not?
    Norco, CA WX: 68.2øF, 63.0% humidity, 8 mph NE wind, 0.00 inches rain/24hrs
    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From High Spirit@VERT/DCBBS to Digital Man on Sat Jan 6 22:54:07 2018
    Re: RE: Access to the Upload/Download Batch List from Javascript
    By: Digital Man to High Spirit on Sat Jan 06 2018 03:10 pm

    Maybe. I the batch management via JS a lot of thought.

    Understood. ;)

    Having a Javascript engine in Synchronet is amazing to have. Bringing new technology (Javascript) to the old technology (BBS's). I see things moving over to JS (BBSLIST) and hope things continue in that direction in the future. Would be nice to have everything accessable via JS, but I know it takes time, patience and a reason with a need to move it over.

    -- High Spirit Digital Realms Main - connect.digitalrealms.net 23
    Digital Realms C=64 - connect.digitalrealms.net 6400

    ---
    þ Synchronet þ Digital Creation BBS -- bbs.digitalcreationbbs.com:23
  • From Digital Man@VERT to High Spirit on Sun Jan 7 00:27:22 2018
    Re: RE: Access to the Upload/Download Batch List from Javascript
    By: High Spirit to Digital Man on Sat Jan 06 2018 10:54 pm

    Re: RE: Access to the Upload/Download Batch List from Javascript
    By: Digital Man to High Spirit on Sat Jan 06 2018 03:10 pm

    Maybe. I the batch management via JS a lot of thought.

    Understood. ;)

    Having a Javascript engine in Synchronet is amazing to have. Bringing new technology (Javascript) to the old technology (BBS's). I see things moving over to JS (BBSLIST) and hope things continue in that direction in the future. Would be nice to have everything accessable via JS, but I know it takes time, patience and a reason with a need to move it over.

    Right. If it were written from scratch with the embedded JS engine, much more would already be scripted/scriptable. It's a work in progress. :-)

    digital man

    Synchronet "Real Fact" #24:
    1584 Synchronet BBS Software registrations were sold between 1992 and 1996. Norco, CA WX: 58.3øF, 87.0% humidity, 0 mph SW wind, 0.00 inches rain/24hrs
    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net