WebSite X5Help Center

 
Ionescu C.
Ionescu C.
User

Script stop working after update to the last version of app  en

Author: Ionescu C.
Visited 644, Followers 1, Shared 0  

Hello, 

I have a script on the webpage (made with the help of KolAsim)

Until now everything worked as expected.

The scrips is:

<script>
var day_15_2 = "question text? <br> This is the description section which I wanted to show underneath.";
// var day_ etc. etc.
dateK = new Date();
dayK = dateK.getDate();
monthK = dateK.getMonth() + 1;
K = "day_"+ dayK + '_' + monthK;
document.write( eval(K)); //<by K>;
</script>

and it shoould show each day different text

I updated to the last version of the app and now the text is not being displayed.

Link to the mentioned section

How it is now:

How it should be:

Populated with text.

Any ideas what changed?

Regards,

Cristi

Posted on the
1 ANSWERS - 1 CORRECT
Ionescu C.
Ionescu C.
User
Author

Ok, I figger it out in the end.

Due to a missplaced ENTER in the script it would not work.

Regards, 

Cristi

Read more
Posted on the from Ionescu C.