Page 1 of 1

Hash Cookie inside HTML

Posted: Mon Feb 21, 2022 10:25 am
by marcus
Hi, I currently have a little problem i can't find a solution to:
I have a display object that contains a block of JavaScript that needs to be inserted into a HTML object via an Hash Cookie.

The hash cookies content looks like this:

Code: Select all

<script> var addressPoints = [[1.111,2.222,'1'],[3.333,4.444,'2']]; </script>
If copied and pasted into the HTML object everything works fine. If adding the hash cookie instead the containing code does not seem to be executed, even after refreshing the HTML object multiple times. Everthing else works just fine.

Does anybody see what I am missing here?

Re: Hash Cookie inside HTML

Posted: Mon Feb 21, 2022 3:06 pm
by kev1n
Does the JS have to be in a Display Object and why? Can't you use PHP BE to insert the variable addressPoints into the form?