• Going back to an older thread, Klaus talked about this below....
    ============================


    <action name="my_hidden_js_functions" type="Javascript" autorun="preinit"><![DATA[

    window.do_something = function()
    {
    ...
    }

    window.do_something_else = function()
    {
    ...
    }

    ]]></action>


    ============================


    I was wondering about the syntax for passing parameters in

    window.do_something = function()
    {
    ...
    }

    Thanks.

  • I guess that should be CDATA and not DATA??

    Supplementary question:

    As I have a javascript function in KRpano which works fine - as soon as I encrypt the XML errors are triggered, e.g.:

    Code
    jQuery.Deferred exception: myjsfunction is not defined ReferenceError: myjsfunction is not defined

    and

    Code
    Uncaught ReferenceError: myjsfunction is not defined

Participate now!

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