Hello people, this has been really urgent for three days. I made this code to only show part of the texts in the homepage, and it was working but for three days it has stopped working and I have no idea what happened. Permissions are for everyone and sandbox / live are synchronized. The strangest thing is that everything is normal in preview, but not in the online version. PLEASE HELP MEEE!
$w.onReady( () => { $w( " #dataset1 " ).onReady( () => {
$w( " #repeater1 " ).onItemReady( ($item, itemData, index) => {
let theItem = itemData.description;
var shortDescription = theItem.substr( 0 , 25 );
$item( " #description " ).text = shortDescription + " . . . " ;
});
} );
} );
Please post the URL of your site and explain where and how to see this problem.
Some observations:
Your code has two page onReady() functions. Inside each of the page onReady() functions, you have a dataset onReady() with a Repeater onItemReady().
You should only have one page onReady(). Having multiple page onReady() functions might lead to unpredictable behavior.
You should only have one dataset onReady() function.
You should only have one Repeater onItemReady() function. Furthermore, the onItemReady() function should not be inside of the dataset onReady() function.
The second onItemReady() has errors flagged:
You will need to correct these issues before we can perform any further evaluation of your site.
OK I correct here is the current code
its still not walking
$w.onReady( () => {
$w( “#dataset1” ).onReady( () => {
$w( "#repeater1" ).onItemReady( ($item, itemData, index) => {
let theItem = itemData.description;
var shortDescription = theItem.substr( 0 , 15 );
$item( “#description” ).text = shortDescription + " . . . En Savoir Plus" ;
});
} );
} );
The issue appears to be related to a recent performance release. I’ve reconfigured your site and it should be working properly now.
ok thanks everything is working fine now