[tw] Re: What coding can make TW render a "local" {{imagefile}} substitute image when OFFLINE one won't deliver?

2016-09-29 Thread BJ
here is a fiddle that shows the logic of a possible solution, it should be straight forward to put this kind of logic into a widget http://codepen.io/jmperez/pen/yYjPER all the best BJ On Thursday, September 29, 2016 at 4:45:29 AM UTC+1, John Newell wrote: > > Hi Tobias / Mario > > I may not

Re: [tw] Re: What coding can make TW render a "local" {{imagefile}} substitute image when OFFLINE one won't deliver?

2016-09-29 Thread 'Mark S.' via TiddlyWiki
I've noticed this with other apps. You can be connected to your local wifi, and apps will attempt to connect to the net. But if the wifi isn't connected to the net, the app will time out. It seems to me that it's better to leave it up to the user. Only the user can determine if the connection

Re: [tw] Re: What coding can make TW render a "local" {{imagefile}} substitute image when OFFLINE one won't deliver?

2016-09-29 Thread Thomas Elmiger
This seems not to be totally save. I noticed a hint on http://caniuse.com/#feat=online-status that states: <<< "online" does not always mean connection to the internet, it can also just mean connection to some network <<< Maybe Tobi Beer has a better solution? Good luck! Thomas -- You

[tw] Re: What coding can make TW render a "local" {{imagefile}} substitute image when OFFLINE one won't deliver?

2016-09-29 Thread 'Mark S.' via TiddlyWiki
You have expressed a great deal of enthusiasm for TW as an ebook replacement and now as an app replacement. I'm learning app programming now, and can vouch that it's ridiculously complicated. But I wonder how most publishers would view TW in terms of DRM and IP protection. There really isn't

[tw] Re: What coding can make TW render a "local" {{imagefile}} substitute image when OFFLINE one won't deliver?

2016-09-29 Thread BJ
I think there should be some system tiddler that are updated with these type of state changes - this would allow widget to listen for changes through the refresh mechanism. On Thursday, September 29, 2016 at 9:34:50 AM UTC+1, PMario wrote: > > On Thursday, September 29, 2016 at 5:45:29 AM

[tw] Re: What coding can make TW render a "local" {{imagefile}} substitute image when OFFLINE one won't deliver?

2016-09-29 Thread PMario
On Thursday, September 29, 2016 at 5:45:29 AM UTC+2, John Newell wrote: > > I may not have communicated this objective clearly - for which I apologise > - but the solution provided by Mario works perfectly. > That's cool. > The issue is not whether TW needs to detect online connection - as

[tw] Re: What coding can make TW render a "local" {{imagefile}} substitute image when OFFLINE one won't deliver?

2016-09-28 Thread John Newell
Hi Tobias / Mario I may not have communicated this objective clearly - for which I apologise - but the solution provided by Mario works perfectly. The issue is not whether TW needs to detect online connection - as the TWebook will have on probably its FIRST SCREEN the option of online /

Re: [tw] Re: What coding can make TW render a "local" {{imagefile}} substitute image when OFFLINE one won't deliver?

2016-09-28 Thread PMario
On Wednesday, September 28, 2016 at 4:25:17 PM UTC+2, Jeremy Ruston wrote: > > Unfortunately, I don't know a possibility to auto-detect online offline > mode. So the user needs to set it. > > > We could add a tiny bit of code to mirror the offline/online status in a > browser status tiddler: > >

[tw] Re: What coding can make TW render a "local" {{imagefile}} substitute image when OFFLINE one won't deliver?

2016-09-28 Thread Tobias Beer
Hi Mario / John, Unfortunately, I don't know a possibility to auto-detect online offline > mode. So the user needs to set it. > tobibeer/sysinfo provides some means to detect the kind of environment you're in, i.e. offline (local) vs. online

Re: [tw] Re: What coding can make TW render a "local" {{imagefile}} substitute image when OFFLINE one won't deliver?

2016-09-28 Thread John Newell
Hi Jeremy Mario ( see recent Comms ) gave me the solution, which aligns with your point : a SWITCH / CHOICE via button selection for online or offline status - which the reader would know anyway and simply select to update Excellent. Will post you a copy link to download when ready. If

[tw] Re: What coding can make TW render a "local" {{imagefile}} substitute image when OFFLINE one won't deliver?

2016-09-28 Thread John Newell
Mario - you are a genius ( at least from where I sit ) in a monster storm without power and happy as Seeing my problem now being a positive solution!!! Kudos and thanks - it works a treat !!! I will just "tart up" the button icons. and place them appropriately - and I am one BIG STEP

Re: [tw] Re: What coding can make TW render a "local" {{imagefile}} substitute image when OFFLINE one won't deliver?

2016-09-28 Thread Jeremy Ruston
> Unfortunately, I don't know a possibility to auto-detect online offline mode. > So the user needs to set it. We could add a tiny bit of code to mirror the offline/online status in a browser status tiddler: http://caniuse.com/#feat=online-status Best wishes Jeremy > -m > > -- > You

[tw] Re: What coding can make TW render a "local" {{imagefile}} substitute image when OFFLINE one won't deliver?

2016-09-28 Thread PMario
Unfortunately, I don't know a possibility to auto-detect online offline mode. So the user needs to set it. -m -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to

[tw] Re: What coding can make TW render a "local" {{imagefile}} substitute image when OFFLINE one won't deliver?

2016-09-28 Thread PMario
Hi John, My first thought is delivering smaller / lower res images that are saved as > tiddlers and can be delivered via {{tiddler-image-name}} usage. > try this: - define a tiddler eg: myImageMacro and tag it: $:/tags/Macro \define image(uri, tiddler, altOnline:"online image not found"