Very nice demo. I suspect Ian is particularly interested in safari so he
will have to dig into that. My guess is that the BroadcastChannel is a
fairly simple thing built on top of the underlying localstorage mechanism
and I know that works in safari.
On Thu, Sep 7, 2017 at 1:45 AM, gmj
Thanks to Ian and Eric for an interesting question and direction.
Following Eric's lead I found (in all but Safari)
a built-in object BroadcastChannel which is what it claims to be. The
following 2 scripts illustrate its use in the
jhs context to perform what Ian requested. Perhaps there are
Ian,
By resources, I meant google. The phrase that will get you started is
'javascript shared local storage'. A search of the JHS scripts will show a
few simple places where it is currently used. But there is no current use
of the very interesting event triggers.
On Tue, Sep 5, 2017 at 11:35 PM,
@Eric
This could be useful. But my Javascript is so poor I can't really say until
I've tried it.
> One page setting shared memory can trigger an event in the javascript of the
other page. Is this of interest?
Yes. When I first started thinking about my requirements, this was just the
sort of
Ian (your JHS question),
There is a facility in javascript in the browser called shared memory. JHS
uses this in a very limited way, but I have always wanted to revisit it to
see what else could be done.
One page setting shared memory can trigger an event in the javascript of
the other page. Is
@Raul,
Refresh: 3
…works a treat. Besides giving a conspicuous indication in the Safari
toolbar that the "animated" window is alive and kicking.
All no doubt horribly inefficient. But good enough in the short term for my
experiments.
Mac:Activity Monitor does show the resource usage of both
and see if the Meta Refresh tag is good enough.
> >>
> >> Good luck!
> >> --
> >> Stefano
> >>
> >> -----Original Message-
> >> From: Programming [mailto:programming-boun...@forums.jsoftware.com] On
> Behalf Of Raul Miller
>
e complex, I would try and see if the Meta
>> Refresh tag is good enough.
>>
>> Good luck!
>> --
>> Stefano
>>
>> -Original Message-
>> From: Programming [mailto:programming-boun...@forums.jsoftware.com] On
>> Behalf Of Raul Miller
>> Sent: m
t; Of Raul Miller
> Sent: martedì 5 settembre 2017 14:54
> To: Programming forum <programm...@jsoftware.com>
> Subject: Re: [Jprogramming] How can I auto-refresh a JHS app page?
>
> That's pretty much it. The browser is in control here, and jijx is only
> indirectly in contr
To: Programming forum <programm...@jsoftware.com>
> Subject: Re: [Jprogramming] How can I auto-refresh a JHS app page?
>
> That's pretty much it. The browser is in control here, and jijx is only
> indirectly in control as a result.
>
> Probably the simplest would be to
-Original Message-
From: Programming [mailto:programming-boun...@forums.jsoftware.com] On Behalf
Of Raul Miller
Sent: martedì 5 settembre 2017 14:54
To: Programming forum <programm...@jsoftware.com>
Subject: Re: [Jprogramming] How can I auto-refresh a JHS app page?
That's prett
That's pretty much it. The browser is in control here, and jijx is
only indirectly in control as a result.
Probably the simplest would be to put something like Refresh: 3 in the
http headers in your MYTEMPLATE (before the first blank line). But I
haven't tested that - I probably need to upgrade
Currently I'm hacking it by using Keyboard Maestro to execute a timer which
reloads the message URL every 3 seconds.
I guess much the same thing could be done using Javascript embedded in
message.ijs? – if I knew any Javascript.
Another expedient is to write out the message display to a textfile
Suppose I am a JHS coder, working with the J session (the jijx page), and
have written an app called "message" (say). This generates a page of data
in response to the URL:
http://localhost:65001/message
which I choose to display in a separate browser window. Let's call it the
message window.
If
14 matches
Mail list logo