Sie sind nicht angemeldet.

1

Freitag, 12. Juni 2020, 01:14

Encrypting JS

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.

2

Freitag, 12. Juni 2020, 16:26

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.:

Quellcode

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


and

Quellcode

1
Uncaught ReferenceError: myjsfunction is not defined

Ähnliche Themen