Setting a preview image via a JavaScript call

  • Hi,

    I'm working on a application where Panos are being called through JS.

    call("loadpano(null,sphere=folder/SPHERE.jpg,keepbase,blend(1));");

    I want to set a preview image while the main pano loads. I know this can be done via XML, however due to constraints, I need to call it from JS.

    Is this possible?

    Many thanks,
    Michael

  • Hi,

    I have tried some about your request....
    It fact more than one parameters can be set at once:

    Code
    call("loadpano(null,preview=preview.jpg&sphere=pano.jpg,MERGE,blend(1));");

    Only for the little story *smile* ... At first I was not able to set the preview... so I used the possibility to set some actions for do a delayedcall to the pano.... like this:
    loadpano(xmlpath,parameters,flags,blend,more_actions)

    Code
    call("loadpano(null,sphere=preview.jpg,MERGE,blend(1));delayedcall(3, loadpano(null,sphere=pano.jpg,MERGE,blend(1)); );");

    SAlut.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!