I am new to using the Corvid API. The following code produced the correct result on my home computer, however does not work on my work computer, even though both use the latest versions of Chrome. I wonder if this is a code issue or a browser issue. Does the code look correct?
**The script is aimed at being able to click some text to display an image.
$w.onReady( function () {
//TODO: write your page related code here…
});
export function text19_click(event) {
$w(‘#image10’).show();
}
export function text20_click(event) {
$w(‘#image11’).show()
}
Thank you in advance to anyone who can help crack this.
When using your home computer, were you in the editor and then clicked on preview? And at work, were you going straight from your wix dashboard to preview? If this is the case, it may be some sort of permission issue.
Are you talking about through the Wix Editor and it’s emulated preview or are you talking about through the fully published website itself?
Either case, I would check what third party applications you have on your work’s version of the Chrome browser compared to your own home version of the Chrome browser.
The code should work on either home or work computer with the same version of Chrome, if it works on your own home computer and not on your work computer then your work computer must have a third party application or service that you don’t have on your own home pc that is blocking the event handler click action.
Simple things like third party adware or popup blockers or trackers for example, can cause your website to not be shown properly and can affect your website’s functionality.