Working in Preview, not in Live

Hi,

After a few months that I revisited this part of my site , I realized that the horizontal bar of letters stopped working, the alphabet letters are no more clickable (chrome and firefox).

The thing is, I see no problem in the code, it actually used to work in the past and I also haven’t messed with it as I said, for some time now.

//alpha letter
$w("#text394").onClick( (event) => {
    $w("#table1").show("fade");
$w("#input1").value = $w("#text394").text;

$w("#dataset1").setFilter(wixData.filter()
		.eq("firstLetter", $w("#input1").value)); 
}) //alpha letter

In Preview, everything works fine.

So could you please check if this is some sort of new changes/rollout problem of the wix platform? The site in the editor is “Civilitas”.

Thanks.

Hi George,

Your code looks fine to me, and there are no errors logged, please report this to Wix Customer Care so they can investigate the issue.

In the meantime, please make sure all the IDs are correct and exist in the workspace.

Hi George,

1.Try save and Publish for twice
2. Open in New tab or Incognito Tab (May be Hard Reload Helps)
3. Make Sure you are logged in With Admin credential in Published Site
4. Check Database Permissions

https://support.wix.com/en/article/working-with-dataset-connector-modes-and-collection-permissions

This May helps .

The problem is with the onClick( ) event handlers themselves, otherwise, everything looks alright.

@ahmadnasriya I’d say that the actual problem is that OnClick() works in Preview and not in Live. Thanks for your time.

@gemats understood

If you go into Chrome and then debug it you’ll see a bunch of errors happening on the on-click. Its a bit too geeky for me to understand it, but its not right. I’ve often wondered what happens when one re-publishes a site? Does that help? My mouse changes to a hand when I hover over the letters, so it is expecting something.

I’m going to close this thread now. Please reach out to Wix Customer Care.