It sounds like you're loading the JS code using a relative URL? When the document is saved the document is one more directory away from that "root".
New document is at /db.nsf/form?Open
Saved document is at /db.nsf/view/document?Open
So, if you're opening the JS as src="code.js" it will then be looking for /db.nsf/view/code.js which doesn't exist.
It works in my demo as I've set the BASE href tag in the Head. I'd suggest you use an absolute URL to load the JS file. Add a Computed Value in front of the current URL and add "/"+@WebDbName+"/" in it.
Hi Anne,
It sounds like you're loading the JS code using a relative URL? When the document is saved the document is one more directory away from that "root".
New document is at /db.nsf/form?Open
Saved document is at /db.nsf/view/document?Open
So, if you're opening the JS as src="code.js" it will then be looking for /db.nsf/view/code.js which doesn't exist.
It works in my demo as I've set the BASE href tag in the Head. I'd suggest you use an absolute URL to load the JS file. Add a Computed Value in front of the current URL and add "/"+@WebDbName+"/" in it.
HTH
Jake