Subj : js script?
To : Bill McGarrity
From : echicken
Date : Mon Apr 02 2018 10:11 pm
Re: js script?
By: Bill McGarrity to All on Mon Apr 02 2018 20:55:37
BM> Was wondering if there was a src or js script that will requst a raw ansi
BM> file over http and then do a console.printfile within an external program
BM> or to display a hotlink?
It's doable. I host an ANSI archive on my BBS, which is viewable remotely via
the ansiview external program. The files are fetched via HTTP.
There's no simple script just to fetch and display a .ans file that I'm aware
of, but it would be easy to do. I can make it for you, but I might need a few
more details.
One gotcha is that if the file is hosted on a Synchronet webserver, the server
might convert it to an HTML rendering of the graphic before sending it to the
client. (See ctrl/web_handler.ini, and whether asc_handler.js is set up to
serve .ans files.) There are ways around that, starting with just giving the
file something other than a .ans extension.