WebSite X5Help Center

 
Ionescu C.
Ionescu C.
User

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

Autor: Ionescu C.
Besucht 827, Followers 1, Geteilt 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

Gepostet am
1 ANTWORTEN - 1 KORREKT
Ionescu C.
Ionescu C.
User
Autor

Ok, I figger it out in the end.

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

Regards, 

Cristi

Mehr lesen
Gepostet am von Ionescu C.