JS9 Demo: JS9 in an iframe

If your Web site has been configured to allow postMessages to JS9, you can load JS9 into an iframe and communicate via the JS9 PostMessage module. All of the Public API routines are available (the gets require a callback). You also can send a postMessage directly by passing an object with a cmd property (the name of the Public API call) and an args property (an array of call arguments):

        ctx = window.document.getElementById("js9iframe").contentWindow; ctx.postMessage({cmd: "SetColormap", args: ["cool"]}, "*");
    

The startling fact that JS9 light windows can be moved beyond the JS9 display is a CSS trick: the large iframe utilizes a transparent background, so you can move light windows anywhere below the top of the image display (but you cannot interact with the main page). Not sure how all this can be used but ...

The Solitary Reaper, William Wordsworth

Behold her, single in the field,
Yon solitary Highland Lass!
Reaping and singing by herself;
Stop here, or gently pass!
Alone she cuts and binds the grain,
And sings a melancholy strain;
O listen! for the Vale profound
Is overflowing with the sound.

No Nightingale did ever chaunt
More welcome notes to weary bands
Of travellers in some shady haunt,
Among Arabian sands:
A voice so thrilling ne'er was heard
In spring-time from the Cuckoo-bird,
Breaking the silence of the seas
Among the farthest Hebrides.

Will no one tell me what she sings?—
Perhaps the plaintive numbers flow
For old, unhappy, far-off things,
And battles long ago:
Or is it some more humble lay,
Familiar matter of to-day?
Some natural sorrow, loss, or pain,
That has been, and may be again?

Whate'er the theme, the Maiden sang
As if her song could have no ending;
I saw her singing at her work,
And o'er the sickle bending;—
I listened, motionless and still;
And, as I mounted up the hill,
The music in my heart I bore,
Long after it was heard no more.

                  Load an image:          casa.png    snr.fits    coma.fits (via proxy)
                  Pick a colormap:       cool    heat    grey