Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

Hash Cookie inside HTML

Questions related to using nuBuilder Forte.
Post Reply
marcus
Posts: 20
Joined: Mon Nov 29, 2021 10:16 am

Hash Cookie inside HTML

Unread post 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?
kev1n
nuBuilder Team
Posts: 4297
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 445 times
Contact:

Re: Hash Cookie inside HTML

Unread post 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?
Post Reply