1
I have a problem that I believe to be very unusual, within Sharepoint Online in the folder Site Pages I created a new and called Dashboard. In the Dashboard insert a webpart of content and put an html code and a call to a load a script that is in another folder on the same site.
The html works normal and when it is in page editing mode the script works, but when I leave it doesn’t work anymore. I’ve looked everywhere and I can’t find the reason, some help?
Check the code served by the page when it is not in edit mode. Is the Javascript code there? The reference (the path) is correct?
– Oralista de Sistemas
Yes the reference is correct. So much so that it works when in edit mode, it executes my calls and returns the content.
– Douglas Santos
And out of edit mode?
– Oralista de Sistemas
Outside when I click the button where he should press the function nothing happens. Already I even gave check-out and check-in on main.js to see if it could be something from the file but it did not help.
– Douglas Santos
Let me ask you another way... When it’s not in edit mode, is the script present on the page? It does not trigger any type of error on the console?
– Oralista de Sistemas
No. The script is in a . js file within Site Assets and I call it in html. It still worked normal without editing but is now no longer working again. On the console no error.
– Douglas Santos