V7.01 - Function.js loads relative to sub-directory position

5 replies · opened Mar 15, 2023

LLogicWizeMar 15, 2023

In v7.01, the js/function.js function loads the other functions relative to the directory the associated page is called from, not relative to the root where the js/function.js is located [and thus all the functions are located.

Can you let the function.js load the necessary functions from the root//js directory and not the sub-directory from which it is called.

This is a critical error!

SSemicolon WebSTAFFMar 16, 2023

Hello,

We have already fixed this issue and the update will be available shortly for download. We will send you an email notifying about the update. Thanks for your Patience.

Meanwhile, do let us know if we can help you with anything else or if you find any further issues with Canvas.

LLogicWizeMar 16, 2023

Hi, I have updated the files with the version 7.02 update, there is a small change indeed in the function.js file, I changed the jsFolder location from

jsFolder: "js/"

to
jsFolder: "https://dev.i-trvl.com/js/"
or
jsFolder: "//js/"

and made some other attempts to figure out what change would actually work... but none seem to be working. The PLUGINS are still loaded from the js/ sub-directory location relative from the sub-directory it was called from.

SSemicolon WebSTAFFMar 16, 2023

Hello,

Yes, we confirm this is a bug. Allow us some time and we will provide you with the Files along with updating the Package shortly. Apologies for the Inconveniences on this, we are still fine-tuning this based on exact user requirements. Thanks for your Kind Patience.

Meanwhile, do let us know if we can help you with anything else or if you find any further issues with Canvas.

LLogicWizeMar 19, 2023

This has now been sorted in v7.03. Set the function.js variables as follows:

jsFolder: 'https://'+ document.location.hostname + "/js/",
cssFolder:'https://'+ document.location.hostname + "/css/"

And then it seems to be picking it up.

SSemicolon WebSTAFFMar 19, 2023

Super Glad that the issues were resolved. :)

Please do let us know if we can help you with anything else or if you find any further issues with Canvas.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard